From 4abea84d561623e7e9ee4669c1529c0b69fa601a Mon Sep 17 00:00:00 2001 From: ras0219 <533828+ras0219@users.noreply.github.com> Date: Tue, 25 Aug 2020 18:41:56 -0700 Subject: [vcpkg_find_acquire_program] Cleanup and add CI testing (#12982) --- .../test_ports/vcpkg-find-acquire-program/CONTROL | 4 ++++ .../vcpkg-find-acquire-program/portfile.cmake | 21 +++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 scripts/test_ports/vcpkg-find-acquire-program/CONTROL create mode 100644 scripts/test_ports/vcpkg-find-acquire-program/portfile.cmake (limited to 'scripts/test_ports') 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() -- cgit v1.2.3