aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-04-28 18:22:11 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-04-28 18:22:11 +0300
commitcb93b6b3f03536ca833bde8d8d7a0018cf94927a (patch)
tree580233cfcd00e4018b906f04edffc9cfc93ddb8a
parent67ab77401f4b1c4580b7ce54a783843e31a55ebb (diff)
Make tests to pass
-rw-r--r--tests/common/hello/libhello-1.0.0.tar.gzbin2483 -> 2362 bytes
-rw-r--r--tests/common/libhello-1.0.0/buildfile7
-rw-r--r--tests/common/libhello-1.0.0/hello/buildfile6
-rw-r--r--tests/common/libhello-1.0.0/manifest2
-rw-r--r--tests/common/libhello-1.0.0/version1
-rw-r--r--tests/pkg-clean.test4
6 files changed, 10 insertions, 10 deletions
diff --git a/tests/common/hello/libhello-1.0.0.tar.gz b/tests/common/hello/libhello-1.0.0.tar.gz
index e9d9ff1..29341c7 100644
--- a/tests/common/hello/libhello-1.0.0.tar.gz
+++ b/tests/common/hello/libhello-1.0.0.tar.gz
Binary files differ
diff --git a/tests/common/libhello-1.0.0/buildfile b/tests/common/libhello-1.0.0/buildfile
index a416648..57e0f35 100644
--- a/tests/common/libhello-1.0.0/buildfile
+++ b/tests/common/libhello-1.0.0/buildfile
@@ -1,6 +1,7 @@
-d = hello/ tests/
-./: $d doc{INSTALL version} file{manifest}
-include $d
+./: hello/ tests/ doc{INSTALL version} file{manifest}
+
+doc{version}: file{manifest} # Generated by the version module.
+doc{version}: dist = true
# Don't install tests or the INSTALL file.
#
diff --git a/tests/common/libhello-1.0.0/hello/buildfile b/tests/common/libhello-1.0.0/hello/buildfile
index bff7fce..9af86cf 100644
--- a/tests/common/libhello-1.0.0/hello/buildfile
+++ b/tests/common/libhello-1.0.0/hello/buildfile
@@ -3,10 +3,10 @@ lib{hello}: {hxx cxx}{hello} hxx{export}
# For pre-releases use the complete version to make sure they cannot be used
# in place of another pre-release or the final version.
#
-if $abi_prerelease
- lib{hello}: bin.lib.version = @-$version
+if $version.pre_release
+ lib{hello}: bin.lib.version = @"-$version.project_id"
else
- lib{hello}: bin.lib.version = @-$abi_major.$abi_minor
+ lib{hello}: bin.lib.version = @"-$version.major.$version.minor"
cxx.poptions += "-I$src_root"
obja{*}: cxx.poptions += -DLIBHELLO_STATIC_BUILD
diff --git a/tests/common/libhello-1.0.0/manifest b/tests/common/libhello-1.0.0/manifest
index 75dc91b..d7d43a7 100644
--- a/tests/common/libhello-1.0.0/manifest
+++ b/tests/common/libhello-1.0.0/manifest
@@ -11,4 +11,4 @@ goal is to show a canonical build2/bpkg project/package.
url: http://www.example.org/libhello
email: hello-users@example.org
requires: c++11
-requires: build2 >= 0.4.0
+depends: * build2 >= 0.5.0-
diff --git a/tests/common/libhello-1.0.0/version b/tests/common/libhello-1.0.0/version
deleted file mode 100644
index 3eefcb9..0000000
--- a/tests/common/libhello-1.0.0/version
+++ /dev/null
@@ -1 +0,0 @@
-1.0.0
diff --git a/tests/pkg-clean.test b/tests/pkg-clean.test
index a853372..18c2a79 100644
--- a/tests/pkg-clean.test
+++ b/tests/pkg-clean.test
@@ -97,7 +97,7 @@ $* 2>>EOE != 0
$pkg_configure libhello && $pkg_update libhello;
$* libhello 2>>~%EOE%;
- %.{6}
+ %.{7}
cleaned libhello/1.0.0
EOE
@@ -119,7 +119,7 @@ $* 2>>EOE != 0
$pkg_configure libhello && $pkg_update libhello;
$* libhello 2>>~%EOE%;
- %.{8}
+ %.{9}
cleaned libhello/1.0.0
EOE