aboutsummaryrefslogtreecommitdiff
path: root/tests/pkg-build.testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-04-16 22:04:22 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-04-19 18:35:30 +0300
commitf0c4ddcc96ae4eea5e158359bc21f51c3261bdd2 (patch)
treef2d12cb67395a4be2053379958b94d8ec6d333d9 /tests/pkg-build.testscript
parente4c22fd4b9ba9782acd0c0a10866cbeaf8be694d (diff)
Match package spec local repository locations in pkg-build case-insensitively on Windows
Diffstat (limited to 'tests/pkg-build.testscript')
-rw-r--r--tests/pkg-build.testscript33
1 files changed, 32 insertions, 1 deletions
diff --git a/tests/pkg-build.testscript b/tests/pkg-build.testscript
index 6fe5eb9..50db679 100644
--- a/tests/pkg-build.testscript
+++ b/tests/pkg-build.testscript
@@ -159,6 +159,7 @@ pkg_unpack += -d cfg 2>!
rep_add += -d cfg 2>!
rep_remove += -d cfg 2>!
rep_fetch += -d cfg --auth all --trust-yes 2>!
+rep_list += -d cfg
# Let's disable the progress indication that complicates stderr output
# validation.
@@ -3757,7 +3758,7 @@ test.options += --no-progress
}
}
-: ignore-case
+: ignore-case-pkg
:
{
test.arguments += --yes --auth all --trust-yes
@@ -3792,6 +3793,36 @@ test.options += --no-progress
$pkg_drop libbar
}
+: ignore-case-rep
+:
+: Test that package spec local repository location is matched
+: case-insensitively on Windows.
+:
+if (!$remote && !$posix)
+{
+ $clone_cfg;
+
+ $* "libbar@$rep/t5" 2>>~%EOE%;
+ added pkg:build2.org/pkg-build/t5
+ fetching pkg:build2.org/pkg-build/t5
+ fetched libbar/1.2.0
+ unpacked libbar/1.2.0
+ configured libbar/1.2.0
+ %info: .+ is up to date%
+ updated libbar/1.2.0
+ EOE
+
+ $* "libbar@$rep/T5" 2>>~%EOE%;
+ fetching pkg:build2.org/pkg-build/t5
+ %info: .+ is up to date%
+ updated libbar/1.2.0
+ EOE
+
+ $rep_list >~'%pkg:build2\.org/pkg-build/t5 .+t5%';
+
+ $pkg_drop libbar
+}
+
: git-rep
:
if! $git_supported