aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/scripts/test_ports/rpath-test
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/scripts/test_ports/rpath-test
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/scripts/test_ports/rpath-test')
-rw-r--r--vcpkg/scripts/test_ports/rpath-test/portfile.cmake31
-rw-r--r--vcpkg/scripts/test_ports/rpath-test/vcpkg.json8
2 files changed, 39 insertions, 0 deletions
diff --git a/vcpkg/scripts/test_ports/rpath-test/portfile.cmake b/vcpkg/scripts/test_ports/rpath-test/portfile.cmake
new file mode 100644
index 0000000..481a935
--- /dev/null
+++ b/vcpkg/scripts/test_ports/rpath-test/portfile.cmake
@@ -0,0 +1,31 @@
+set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
+
+foreach(dir IN ITEMS tools/rpath-test-binaries manual-tools/rpath-test-binaries)
+ string(REPLACE "/" "_" logname "execute-rel-${dir}")
+ vcpkg_execute_required_process(
+ COMMAND "${CURRENT_INSTALLED_DIR}/${dir}/rpath-test-tool"
+ WORKING_DIRECTORY "${CURRENT_BUILDTREES_DIR}"
+ OUTPUT_VARIABLE output
+ OUTPUT_STRIP_TRAILING_WHITESPACE
+ LOGNAME "${logname}"
+ )
+ if(NOT output STREQUAL "release")
+ message(SEND_ERROR "${dir}: $Actual: '${output}', expected: 'release'")
+ endif()
+endforeach()
+
+if(NOT VCPKG_BUILD_TYPE)
+ foreach(dir IN ITEMS tools/rpath-test-binaries/debug manual-tools/rpath-test-binaries/debug debug/tools/rpath-test-binaries)
+ string(REPLACE "/" "_" logname "execute-dbg-${dir}")
+ vcpkg_execute_required_process(
+ COMMAND "${CURRENT_INSTALLED_DIR}/${dir}/rpath-test-tool"
+ WORKING_DIRECTORY "${CURRENT_BUILDTREES_DIR}"
+ OUTPUT_VARIABLE output
+ OUTPUT_STRIP_TRAILING_WHITESPACE
+ LOGNAME "${logname}"
+ )
+ if(NOT output STREQUAL "debug")
+ message(SEND_ERROR "${dir}: Actual: '${output}', expected: 'debug'")
+ endif()
+ endforeach()
+endif()
diff --git a/vcpkg/scripts/test_ports/rpath-test/vcpkg.json b/vcpkg/scripts/test_ports/rpath-test/vcpkg.json
new file mode 100644
index 0000000..7136d04
--- /dev/null
+++ b/vcpkg/scripts/test_ports/rpath-test/vcpkg.json
@@ -0,0 +1,8 @@
+{
+ "name": "rpath-test",
+ "version-string": "ci",
+ "description": "Test rpath fixup",
+ "dependencies": [
+ "rpath-test-binaries"
+ ]
+}