-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pass VERSION to cmake when building port (#717)
* pass PORT_VERSION to cmake when building port * Rename PORT_VERSION to VERSION * Add e2e tests
- Loading branch information
1 parent
8eec413
commit 3221bf0
Showing
10 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
azure-pipelines/e2e_ports/version-variable/version-date/portfile.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
if (NOT VERSION STREQUAL "2020-10-10") | ||
message(FATAL_ERROR "\${VERSION} should be '2020-10-10' but is '${VERSION}'") | ||
endif() | ||
set(VCPKG_POLICY_EMPTY_PACKAGE enabled) |
4 changes: 4 additions & 0 deletions
4
azure-pipelines/e2e_ports/version-variable/version-date/vcpkg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"name": "version-date", | ||
"version-date": "2020-10-10" | ||
} |
4 changes: 4 additions & 0 deletions
4
azure-pipelines/e2e_ports/version-variable/version-semver/portfile.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
if (NOT VERSION STREQUAL "1.0.0") | ||
message(FATAL_ERROR "\${VERSION} should be '1.0.0' but is '${VERSION}'") | ||
endif() | ||
set(VCPKG_POLICY_EMPTY_PACKAGE enabled) |
4 changes: 4 additions & 0 deletions
4
azure-pipelines/e2e_ports/version-variable/version-semver/vcpkg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"name": "version-semver", | ||
"version-semver": "1.0.0" | ||
} |
4 changes: 4 additions & 0 deletions
4
azure-pipelines/e2e_ports/version-variable/version-string/portfile.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
if (NOT VERSION STREQUAL "1.0.0") | ||
message(FATAL_ERROR "\${VERSION} should be '1.0.0' but is '${VERSION}'") | ||
endif() | ||
set(VCPKG_POLICY_EMPTY_PACKAGE enabled) |
4 changes: 4 additions & 0 deletions
4
azure-pipelines/e2e_ports/version-variable/version-string/vcpkg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"name": "version-string", | ||
"version-string": "1.0.0" | ||
} |
4 changes: 4 additions & 0 deletions
4
azure-pipelines/e2e_ports/version-variable/version/portfile.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
if (NOT VERSION STREQUAL "1.0.0") | ||
message(FATAL_ERROR "\${VERSION} should be '1.0.0' but is '${VERSION}'") | ||
endif() | ||
set(VCPKG_POLICY_EMPTY_PACKAGE enabled) |
4 changes: 4 additions & 0 deletions
4
azure-pipelines/e2e_ports/version-variable/version/vcpkg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"name": "version", | ||
"version": "1.0.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
. $PSScriptRoot/../end-to-end-tests-prelude.ps1 | ||
|
||
$portsPath = "$PSScriptRoot/../e2e_ports/version-variable" | ||
|
||
$CurrentTest = "version variable in portfile.cmake" | ||
Run-Vcpkg install @commonArgs ` | ||
"--x-builtin-ports-root=$portsPath" ` | ||
--binarysource=clear ` | ||
version version-string version-date version-semver | ||
Throw-IfFailed | ||
Refresh-TestRoot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters