aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-11-25 23:14:29 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-11-29 19:51:15 +0300
commit8fda78b90daac540a8c7ecc29127ee402a64081a (patch)
tree0af51b9f846577755f737103386c18ab648a274d /tests
parent3d7a378470edf0a3e97630c74bc327ad471c2f4f (diff)
Add support for publishing packages with non-standard version
Diffstat (limited to 'tests')
-rw-r--r--tests/publish.testscript22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/publish.testscript b/tests/publish.testscript
index d871e7d..add8418 100644
--- a/tests/publish.testscript
+++ b/tests/publish.testscript
@@ -128,6 +128,28 @@ g = git -C prj >! 2>!
error: package prj version 1.0.15-a.0.19700101000000 is a snapshot
EOE
}
+
+ : non-standard-version
+ :
+ : Test publishing a package with the non-standard version from a
+ : non-bdep-initialized project, using the forwarded build2 configuration.
+ :
+ {
+ $new --no-init --no-amalgamation prj 2>- &prj/***;
+ sed -i -e 's/^(version:) .*$/\1 12345/' prj/manifest;
+
+ sed -i \
+ -e 's/^(amalgamation =.*)$/\1\nversion = 12345\ndist.package = $project-$version/' \
+ -e 's/^using version$//' \
+ prj/build/bootstrap.build;
+
+ $build 'configure:' prj/@prj-cfg/,forward &prj/build/bootstrap/*** 2>!;
+
+ $* --no-progress --forward --section alpha 2>>~%EOE%
+ %package submission is queued(: .*prj/12345)?%
+ %reference: .{12}%
+ EOE
+ }
}
: multi-pkg