diff options
| author | ras0219 <533828+ras0219@users.noreply.github.com> | 2020-08-25 18:41:56 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-25 18:41:56 -0700 |
| commit | 4abea84d561623e7e9ee4669c1529c0b69fa601a (patch) | |
| tree | 7ec4c0a1057cc7c5ac86bd365d025d28331d2f14 /scripts/test_ports | |
| parent | 963bff03fa1b083ab7bc8e0b839cc0509bc42a9e (diff) | |
| download | vcpkg-4abea84d561623e7e9ee4669c1529c0b69fa601a.tar.gz vcpkg-4abea84d561623e7e9ee4669c1529c0b69fa601a.zip | |
[vcpkg_find_acquire_program] Cleanup and add CI testing (#12982)
Diffstat (limited to 'scripts/test_ports')
| -rw-r--r-- | scripts/test_ports/vcpkg-find-acquire-program/CONTROL | 4 | ||||
| -rw-r--r-- | scripts/test_ports/vcpkg-find-acquire-program/portfile.cmake | 21 |
2 files changed, 25 insertions, 0 deletions
diff --git a/scripts/test_ports/vcpkg-find-acquire-program/CONTROL b/scripts/test_ports/vcpkg-find-acquire-program/CONTROL new file mode 100644 index 000000000..6f248be58 --- /dev/null +++ b/scripts/test_ports/vcpkg-find-acquire-program/CONTROL @@ -0,0 +1,4 @@ +Source: vcpkg-find-acquire-program
+Version: 0
+Description: Test port to exercise vcpkg_find_acquire_program
+Supports: windows
diff --git a/scripts/test_ports/vcpkg-find-acquire-program/portfile.cmake b/scripts/test_ports/vcpkg-find-acquire-program/portfile.cmake new file mode 100644 index 000000000..88a4856c5 --- /dev/null +++ b/scripts/test_ports/vcpkg-find-acquire-program/portfile.cmake @@ -0,0 +1,21 @@ +set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
+
+if(CMAKE_HOST_WIN32)
+ foreach(PROG GO JOM NASM PERL YASM GIT PYTHON3 PYTHON2 RUBY 7Z NUGET FLEX BISON GPERF GASPREPROCESSOR DARK SCONS SWIG DOXYGEN ARIA2 PKGCONFIG)
+ vcpkg_find_acquire_program(${PROG})
+ foreach(SUBPROG IN LISTS ${PROG})
+ if(NOT EXISTS "${SUBPROG}")
+ message(FATAL_ERROR "Program ${SUBPROG} did not exist.")
+ endif()
+ endforeach()
+ endforeach()
+endif()
+
+foreach(PROG GN NINJA MESON BAZEL)
+ vcpkg_find_acquire_program(${PROG})
+ foreach(SUBPROG IN LISTS ${PROG})
+ if(NOT EXISTS "${SUBPROG}")
+ message(FATAL_ERROR "Program ${SUBPROG} did not exist.")
+ endif()
+ endforeach()
+endforeach()
|
