aboutsummaryrefslogtreecommitdiff
path: root/tests/publish.testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2024-09-02 17:11:47 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2024-09-04 13:16:51 +0300
commitf9df0e96ad414c70e87bc2d554095585b3b20721 (patch)
tree8b91c42b84f0b3044689561aa99bba57a6b1a0bf /tests/publish.testscript
parent1ac2b1310851b3da03318797231f3832f4804c79 (diff)
By default publish all project packages (GH issue #410)
Diffstat (limited to 'tests/publish.testscript')
-rw-r--r--tests/publish.testscript22
1 files changed, 21 insertions, 1 deletions
diff --git a/tests/publish.testscript b/tests/publish.testscript
index 688859d..b8b9541 100644
--- a/tests/publish.testscript
+++ b/tests/publish.testscript
@@ -33,7 +33,7 @@ g = [cmdline] git -C prj >! 2>!
# duplicate submissions. We will use unique version for each test,
# incrementing the patch version for 1.0.X.
#
-# Next version to use: 1.0.25
+# Next version to use: 1.0.27
#
# Normally we disable the progress indication that complicates stderr output
@@ -213,6 +213,7 @@ g = [cmdline] git -C prj >! 2>!
test.arguments = $regex.apply($test.arguments, '^--yes$', '');
$* libprj <'y' 2>>~"%EOE%"
+ warning: following project packages not being published: prj
publishing:
% to: $repository%
as: user <user@example.com>
@@ -274,11 +275,30 @@ g = [cmdline] git -C prj >! 2>!
test.arguments = $regex.apply($test.arguments, '^(prj)$', '\1/libprj');
$* 2>>~%EOE%
+ warning: following project packages not being published: prj
%package submission is queued(: \.*prj/1.0.3)?%d
%reference: .{12}%
EOE
}
+ : all
+ :
+ {
+ $clone_prj;
+ sed -i -e 's/^(version:) .*$/\1 1.0.25/' prj/prj/manifest;
+ sed -i -e 's/^(version:) .*$/\1 1.0.26/' prj/libprj/manifest;
+ $init -C @cfg &prj-cfg/***;
+
+ test.arguments = $regex.apply($test.arguments, '^(-d|prj)$', '');
+
+ env -c prj/libprj -- $* 2>>~%EOE%
+ %package submission is queued(: \.*libprj/1.0.26)?%d
+ %reference: .{12}%
+ %package submission is queued(: \.*prj/1.0.25)?%d
+ %reference: .{12}%
+ EOE
+ }
+
: prompt
:
{