From 8fda78b90daac540a8c7ecc29127ee402a64081a Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 25 Nov 2021 23:14:29 +0300 Subject: Add support for publishing packages with non-standard version --- tests/publish.testscript | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'tests') 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 -- cgit v1.1