diff options
| author | Francois Rivard <74623412+frivard-coveo@users.noreply.github.com> | 2020-12-04 18:34:04 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-04 15:34:04 -0800 |
| commit | e92fa3a56bb421c2226b289328c0ea74e1938aad (patch) | |
| tree | 757d06179114906ab281862f766464504c290b3e /toolsrc/src/vcpkg-test/binarycaching.cpp | |
| parent | 222f276c0b9fbf733ee1bcc328c3d8f248cdfddf (diff) | |
| download | vcpkg-e92fa3a56bb421c2226b289328c0ea74e1938aad.tar.gz vcpkg-e92fa3a56bb421c2226b289328c0ea74e1938aad.zip | |
Change Nuget binary cache pre-release info to always start with letters (#14857)
Diffstat (limited to 'toolsrc/src/vcpkg-test/binarycaching.cpp')
| -rw-r--r-- | toolsrc/src/vcpkg-test/binarycaching.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/toolsrc/src/vcpkg-test/binarycaching.cpp b/toolsrc/src/vcpkg-test/binarycaching.cpp index cb0d7cb99..eefe2a9c1 100644 --- a/toolsrc/src/vcpkg-test/binarycaching.cpp +++ b/toolsrc/src/vcpkg-test/binarycaching.cpp @@ -29,28 +29,28 @@ using namespace vcpkg; TEST_CASE ("reformat_version semver-ish", "[reformat_version]") { - REQUIRE(reformat_version("0.0.0", "abitag") == "0.0.0-abitag"); - REQUIRE(reformat_version("1.0.1", "abitag") == "1.0.1-abitag"); - REQUIRE(reformat_version("1.01.000", "abitag") == "1.1.0-abitag"); - REQUIRE(reformat_version("1.2", "abitag") == "1.2.0-abitag"); - REQUIRE(reformat_version("v52", "abitag") == "52.0.0-abitag"); - REQUIRE(reformat_version("v09.01.02", "abitag") == "9.1.2-abitag"); - REQUIRE(reformat_version("1.1.1q", "abitag") == "1.1.1-abitag"); - REQUIRE(reformat_version("1", "abitag") == "1.0.0-abitag"); + REQUIRE(reformat_version("0.0.0", "abitag") == "0.0.0-vcpkgabitag"); + REQUIRE(reformat_version("1.0.1", "abitag") == "1.0.1-vcpkgabitag"); + REQUIRE(reformat_version("1.01.000", "abitag") == "1.1.0-vcpkgabitag"); + REQUIRE(reformat_version("1.2", "abitag") == "1.2.0-vcpkgabitag"); + REQUIRE(reformat_version("v52", "abitag") == "52.0.0-vcpkgabitag"); + REQUIRE(reformat_version("v09.01.02", "abitag") == "9.1.2-vcpkgabitag"); + REQUIRE(reformat_version("1.1.1q", "abitag") == "1.1.1-vcpkgabitag"); + REQUIRE(reformat_version("1", "abitag") == "1.0.0-vcpkgabitag"); } TEST_CASE ("reformat_version date", "[reformat_version]") { - REQUIRE(reformat_version("2020-06-26", "abitag") == "2020.6.26-abitag"); - REQUIRE(reformat_version("20-06-26", "abitag") == "0.0.0-abitag"); - REQUIRE(reformat_version("2020-06-26-release", "abitag") == "2020.6.26-abitag"); - REQUIRE(reformat_version("2020-06-26000", "abitag") == "2020.6.26-abitag"); + REQUIRE(reformat_version("2020-06-26", "abitag") == "2020.6.26-vcpkgabitag"); + REQUIRE(reformat_version("20-06-26", "abitag") == "0.0.0-vcpkgabitag"); + REQUIRE(reformat_version("2020-06-26-release", "abitag") == "2020.6.26-vcpkgabitag"); + REQUIRE(reformat_version("2020-06-26000", "abitag") == "2020.6.26-vcpkgabitag"); } TEST_CASE ("reformat_version generic", "[reformat_version]") { - REQUIRE(reformat_version("apr", "abitag") == "0.0.0-abitag"); - REQUIRE(reformat_version("", "abitag") == "0.0.0-abitag"); + REQUIRE(reformat_version("apr", "abitag") == "0.0.0-vcpkgabitag"); + REQUIRE(reformat_version("", "abitag") == "0.0.0-vcpkgabitag"); } TEST_CASE ("generate_nuspec", "[generate_nuspec]") @@ -96,7 +96,7 @@ Build-Depends: bzip NugetReference ref(ipa); - REQUIRE(ref.nupkg_filename() == "zlib2_x64-windows.1.5.0-packageabi.nupkg"); + REQUIRE(ref.nupkg_filename() == "zlib2_x64-windows.1.5.0-vcpkgpackageabi.nupkg"); { auto nuspec = generate_nuspec(paths, ipa, ref, {}); @@ -108,7 +108,7 @@ Build-Depends: bzip std::string expected = R"(<package> <metadata> <id>zlib2_x64-windows</id> - <version>1.5.0-packageabi</version> + <version>1.5.0-vcpkgpackageabi</version> <authors>vcpkg</authors> <description>NOT FOR DIRECT USE. Automatically generated cache package. @@ -140,7 +140,7 @@ Dependencies: std::string expected = R"(<package> <metadata> <id>zlib2_x64-windows</id> - <version>1.5.0-packageabi</version> + <version>1.5.0-vcpkgpackageabi</version> <authors>vcpkg</authors> <description>NOT FOR DIRECT USE. Automatically generated cache package. @@ -172,7 +172,7 @@ Dependencies: std::string expected = R"(<package> <metadata> <id>zlib2_x64-windows</id> - <version>1.5.0-packageabi</version> + <version>1.5.0-vcpkgpackageabi</version> <authors>vcpkg</authors> <description>NOT FOR DIRECT USE. Automatically generated cache package. @@ -267,7 +267,7 @@ Description: a spiffy compression library wrapper packageconfig = generate_nuget_packages_config(plan); REQUIRE(packageconfig == R"(<?xml version="1.0" encoding="utf-8"?> <packages> - <package id="zlib_x64-android" version="1.5.0-packageabi"/> + <package id="zlib_x64-android" version="1.5.0-vcpkgpackageabi"/> </packages> )"); @@ -290,8 +290,8 @@ Description: a spiffy compression library wrapper packageconfig = generate_nuget_packages_config(plan); REQUIRE(packageconfig == R"(<?xml version="1.0" encoding="utf-8"?> <packages> - <package id="zlib_x64-android" version="1.5.0-packageabi"/> - <package id="zlib2_x64-android" version="1.52.0-packageabi2"/> + <package id="zlib_x64-android" version="1.5.0-vcpkgpackageabi"/> + <package id="zlib2_x64-android" version="1.52.0-vcpkgpackageabi2"/> </packages> )"); } |
