aboutsummaryrefslogtreecommitdiff
path: root/tests/ci.testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-11-26 18:40:23 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-11-29 19:51:15 +0300
commit1d85dec79e6b5dab3b1a7988f95603a8918e2993 (patch)
treee370389db7865de90eb672ca9ff51af3bb0b1bc9 /tests/ci.testscript
parent8fda78b90daac540a8c7ecc29127ee402a64081a (diff)
Add support for submitting for CI packages with non-standard version
Diffstat (limited to 'tests/ci.testscript')
-rw-r--r--tests/ci.testscript31
1 files changed, 30 insertions, 1 deletions
diff --git a/tests/ci.testscript b/tests/ci.testscript
index 2348cce..f048de0 100644
--- a/tests/ci.testscript
+++ b/tests/ci.testscript
@@ -40,7 +40,7 @@ g = git -C prj 2>! >&2
repository='http://example.com/prj.git'
test.arguments += --yes --repository "$repository" --server "$server" \
---simulate 'success'
+ --simulate 'success'
config_cxx = cc config.cxx=$quote($recall($cxx.path) $cxx.config.mode, true)
@@ -358,6 +358,35 @@ windows = ($cxx.target.class == 'windows')
EOE
}
}
+
+ : non-standard-version
+ :
+ : Test submitting a package with the non-standard version from a
+ : non-bdep-initialized project, using the forwarded build2 configuration.
+ :
+ {
+ cp --no-cleanup -pr ../../prj ./ &prj/***;
+ rm -r prj/.bdep/;
+
+ sed -i -e 's/^(version:) .*$/\1 12345/' prj/manifest;
+
+ sed -i \
+ -e 's/^(project =.*)$/\1\nversion = 12345/' \
+ -e 's/^using version$//' \
+ prj/build/bootstrap.build;
+
+ $g branch non-standard-version;
+ $g checkout non-standard-version;
+ $g -c core.safecrlf=false commit -a -m 'Change version';
+ $g push --set-upstream origin non-standard-version;
+
+ $build 'configure:' prj/@prj-cfg/,forward &prj/build/bootstrap/*** 2>!;
+
+ $* --no-progress --forward 2>>~%EOE%
+ %CI request is queued.*%
+ %reference: .+%
+ EOE
+ }
}
: multi-pkg