diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2024-07-11 21:16:08 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2024-08-12 12:53:05 +0300 |
commit | 1ac2b1310851b3da03318797231f3832f4804c79 (patch) | |
tree | ae06ffe5409b8230f930499463b694eb96c11f1f /tests/ci.testscript | |
parent | 6ecb087d239a19ccbc272a5f2333a16d4cfe9f59 (diff) |
Allow using package names in commands (GH issue #355)
Diffstat (limited to 'tests/ci.testscript')
-rw-r--r-- | tests/ci.testscript | 41 |
1 files changed, 39 insertions, 2 deletions
diff --git a/tests/ci.testscript b/tests/ci.testscript index 7f3e538..b051dfd 100644 --- a/tests/ci.testscript +++ b/tests/ci.testscript @@ -910,10 +910,26 @@ windows = ($cxx.target.class == 'windows') $build 'configure:' prj/@prj-cfg/,forward &prj/build/bootstrap/*** 2>!; - $* --no-progress --forward 2>>~%EOE% + $* --no-progress --forward 2>>~%EOE%; %CI request is queued.*% %reference: .+% EOE + + # While at it, test specifying a package name on the command line. + # + # Suppress the --yes option. + # + test.arguments = $regex.apply($test.arguments, '^--yes$', ''); + + $* --no-progress --forward prj <'y' 2>>~"%EOE%" + submitting: + to: $server + % in: $repository#non-standard-version@.{40}% + package: prj + version: 12345 + %continue\\?.+ CI request is queued.*% + %reference: .+% + EOE } } @@ -954,6 +970,27 @@ windows = ($cxx.target.class == 'windows') EOE } + : pkg-by-name + : + { + $clone_prj; + $init -C @cfg &prj-cfg/***; + + # Suppress the --yes option. + # + test.arguments = $regex.apply($test.arguments, '^--yes$', ''); + + $* libprj <'y' 2>>~"%EOE%" + submitting: + to: $server + % in: $repository#master@.{40}% + package: libprj + version: 1.0.1 + %continue\\?.+ CI request is queued.*% + %reference: .+% + EOE + } + : diff-configs : { @@ -1009,7 +1046,7 @@ windows = ($cxx.target.class == 'windows') # Suppress the --yes option. # - test.arguments = $regex.apply($test.arguments, '^(--yes)$', ''); + test.arguments = $regex.apply($test.arguments, '^--yes$', ''); $* <'y' 2>>~"%EOE%" submitting: |