aboutsummaryrefslogtreecommitdiff
path: root/scripts/e2e_ports
diff options
context:
space:
mode:
authorBilly O'Neal <bion@microsoft.com>2021-01-20 12:07:41 -0800
committerGitHub <noreply@github.com>2021-01-20 12:07:41 -0800
commit4d136ef25f4fab5b744c7ae6acfa04d44f254f2b (patch)
treec6d0b0920106f03390e8d89c11bdf631cf1f28c7 /scripts/e2e_ports
parent45fc55825db2a5bcaffccff1e6afadc519d164ea (diff)
downloadvcpkg-4d136ef25f4fab5b744c7ae6acfa04d44f254f2b.tar.gz
vcpkg-4d136ef25f4fab5b744c7ae6acfa04d44f254f2b.zip
[vcpkg] Add vcpkg_minimum_required as a replacement for VERSION.txt. (#15638)
Diffstat (limited to 'scripts/e2e_ports')
-rw-r--r--scripts/e2e_ports/overlays/vcpkg-requires-current-date/portfile.cmake2
-rw-r--r--scripts/e2e_ports/overlays/vcpkg-requires-current-date/vcpkg.json6
-rw-r--r--scripts/e2e_ports/overlays/vcpkg-requires-future-date/portfile.cmake2
-rw-r--r--scripts/e2e_ports/overlays/vcpkg-requires-future-date/vcpkg.json6
-rw-r--r--scripts/e2e_ports/overlays/vcpkg-requires-old-date/portfile.cmake2
-rw-r--r--scripts/e2e_ports/overlays/vcpkg-requires-old-date/vcpkg.json6
6 files changed, 24 insertions, 0 deletions
diff --git a/scripts/e2e_ports/overlays/vcpkg-requires-current-date/portfile.cmake b/scripts/e2e_ports/overlays/vcpkg-requires-current-date/portfile.cmake
new file mode 100644
index 000000000..68dc779a8
--- /dev/null
+++ b/scripts/e2e_ports/overlays/vcpkg-requires-current-date/portfile.cmake
@@ -0,0 +1,2 @@
+vcpkg_minimum_required(VERSION ${VCPKG_BASE_VERSION})
+set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
diff --git a/scripts/e2e_ports/overlays/vcpkg-requires-current-date/vcpkg.json b/scripts/e2e_ports/overlays/vcpkg-requires-current-date/vcpkg.json
new file mode 100644
index 000000000..48debf1e7
--- /dev/null
+++ b/scripts/e2e_ports/overlays/vcpkg-requires-current-date/vcpkg.json
@@ -0,0 +1,6 @@
+{
+ "name": "vcpkg-requires-current-date",
+ "version-string": "1.0.0",
+ "description": "A test port that verifies that vcpkg_minimum_required is inclusive by using the current base version value.",
+ "homepage": ""
+}
diff --git a/scripts/e2e_ports/overlays/vcpkg-requires-future-date/portfile.cmake b/scripts/e2e_ports/overlays/vcpkg-requires-future-date/portfile.cmake
new file mode 100644
index 000000000..b68e53e95
--- /dev/null
+++ b/scripts/e2e_ports/overlays/vcpkg-requires-future-date/portfile.cmake
@@ -0,0 +1,2 @@
+vcpkg_minimum_required(VERSION 2999-12-31)
+set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
diff --git a/scripts/e2e_ports/overlays/vcpkg-requires-future-date/vcpkg.json b/scripts/e2e_ports/overlays/vcpkg-requires-future-date/vcpkg.json
new file mode 100644
index 000000000..f60901998
--- /dev/null
+++ b/scripts/e2e_ports/overlays/vcpkg-requires-future-date/vcpkg.json
@@ -0,0 +1,6 @@
+{
+ "name": "vcpkg-requires-future-date",
+ "version-string": "1.0.0",
+ "description": "A test port that requires a vcpkg version from an impossibly far future.",
+ "homepage": ""
+}
diff --git a/scripts/e2e_ports/overlays/vcpkg-requires-old-date/portfile.cmake b/scripts/e2e_ports/overlays/vcpkg-requires-old-date/portfile.cmake
new file mode 100644
index 000000000..5a4fbf421
--- /dev/null
+++ b/scripts/e2e_ports/overlays/vcpkg-requires-old-date/portfile.cmake
@@ -0,0 +1,2 @@
+vcpkg_minimum_required(VERSION 2020-01-12)
+set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
diff --git a/scripts/e2e_ports/overlays/vcpkg-requires-old-date/vcpkg.json b/scripts/e2e_ports/overlays/vcpkg-requires-old-date/vcpkg.json
new file mode 100644
index 000000000..31e6fb62f
--- /dev/null
+++ b/scripts/e2e_ports/overlays/vcpkg-requires-old-date/vcpkg.json
@@ -0,0 +1,6 @@
+{
+ "name": "vcpkg-requires-old-date",
+ "version-string": "1.0.0",
+ "description": "A test port that requires a vcpkg version from before vcpkg_minimum_required's introduction.",
+ "homepage": ""
+}