aboutsummaryrefslogtreecommitdiff
path: root/tests/pkg
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-09-04 15:29:53 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-09-04 15:29:53 +0200
commitf05b71bd468bac9358d9fae169b4ca147f0e97fb (patch)
treeca5d4fb260fd86b8c0a961994f05b4658de05ba6 /tests/pkg
parentf45372f06b077bb85886a48f03cf876941a20539 (diff)
Update libhello in tests
Diffstat (limited to 'tests/pkg')
-rw-r--r--tests/pkg/1/build2.org/common/hello/libhello-1.0.0+1.tar.gzbin2160 -> 0 bytes
-rw-r--r--tests/pkg/1/build2.org/common/hello/libhello-1.0.0.tar.gzbin0 -> 2424 bytes
-rw-r--r--tests/pkg/1/build2.org/common/libhello-1.0.0+1/buildfile3
-rw-r--r--tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello/buildfile14
-rw-r--r--tests/pkg/1/build2.org/common/libhello-1.0.0/INSTALL1
-rw-r--r--tests/pkg/1/build2.org/common/libhello-1.0.0/build/bootstrap.build (renamed from tests/pkg/1/build2.org/common/libhello-1.0.0+1/build/bootstrap.build)21
-rw-r--r--tests/pkg/1/build2.org/common/libhello-1.0.0/build/export.build (renamed from tests/pkg/1/build2.org/common/libhello-1.0.0+1/build/export.build)0
-rw-r--r--tests/pkg/1/build2.org/common/libhello-1.0.0/build/root.build (renamed from tests/pkg/1/build2.org/common/libhello-1.0.0+1/build/root.build)8
-rw-r--r--tests/pkg/1/build2.org/common/libhello-1.0.0/buildfile8
-rw-r--r--tests/pkg/1/build2.org/common/libhello-1.0.0/hello/buildfile21
-rw-r--r--tests/pkg/1/build2.org/common/libhello-1.0.0/hello/export (renamed from tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello/export)4
-rw-r--r--tests/pkg/1/build2.org/common/libhello-1.0.0/hello/hello (renamed from tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello/hello)0
-rw-r--r--tests/pkg/1/build2.org/common/libhello-1.0.0/hello/hello.cxx (renamed from tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello/hello.cxx)0
-rw-r--r--tests/pkg/1/build2.org/common/libhello-1.0.0/manifest (renamed from tests/pkg/1/build2.org/common/libhello-1.0.0+1/manifest)3
-rw-r--r--tests/pkg/1/build2.org/common/libhello-1.0.0/tests/build/bootstrap.build (renamed from tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/build/bootstrap.build)0
-rw-r--r--tests/pkg/1/build2.org/common/libhello-1.0.0/tests/build/root.build (renamed from tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/build/root.build)6
-rw-r--r--tests/pkg/1/build2.org/common/libhello-1.0.0/tests/buildfile (renamed from tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/buildfile)0
-rw-r--r--tests/pkg/1/build2.org/common/libhello-1.0.0/tests/test/buildfile (renamed from tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/test/buildfile)0
-rw-r--r--tests/pkg/1/build2.org/common/libhello-1.0.0/tests/test/driver.cxx (renamed from tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/test/driver.cxx)0
-rw-r--r--tests/pkg/1/build2.org/common/libhello-1.0.0/tests/test/test.out (renamed from tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/test/test.out)0
-rw-r--r--tests/pkg/1/build2.org/common/libhello-1.0.0/version (renamed from tests/pkg/1/build2.org/common/libhello-1.0.0+1/version)0
21 files changed, 53 insertions, 36 deletions
diff --git a/tests/pkg/1/build2.org/common/hello/libhello-1.0.0+1.tar.gz b/tests/pkg/1/build2.org/common/hello/libhello-1.0.0+1.tar.gz
deleted file mode 100644
index 5850e44..0000000
--- a/tests/pkg/1/build2.org/common/hello/libhello-1.0.0+1.tar.gz
+++ /dev/null
Binary files differ
diff --git a/tests/pkg/1/build2.org/common/hello/libhello-1.0.0.tar.gz b/tests/pkg/1/build2.org/common/hello/libhello-1.0.0.tar.gz
new file mode 100644
index 0000000..de9d167
--- /dev/null
+++ b/tests/pkg/1/build2.org/common/hello/libhello-1.0.0.tar.gz
Binary files differ
diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/buildfile b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/buildfile
deleted file mode 100644
index f846f89..0000000
--- a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/buildfile
+++ /dev/null
@@ -1,3 +0,0 @@
-d = hello/ tests/
-./: $d doc{version} file{manifest}
-include $d
diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello/buildfile b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello/buildfile
deleted file mode 100644
index ddd20d5..0000000
--- a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello/buildfile
+++ /dev/null
@@ -1,14 +0,0 @@
-lib{hello}: {hxx cxx}{hello}
-
-cxx.poptions += -I$src_root
-lib{hello}: cxx.export.poptions = -I$src_root
-
-liba{butl}: cxx.export.poptions += -DLIBHELLO_STATIC
-libs{butl}: cxx.export.poptions += -DLIBHELLO_SHARED
-
-obja{*}: cxx.poptions += -DLIBHELLO_STATIC_BUILD
-objs{*}: cxx.poptions += -DLIBHELLO_SHARED_BUILD
-
-# Install into the hello/ subdirectory of, say, /usr/include/.
-#
-install.include = $install.include/hello/
diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0/INSTALL b/tests/pkg/1/build2.org/common/libhello-1.0.0/INSTALL
new file mode 100644
index 0000000..485b10f
--- /dev/null
+++ b/tests/pkg/1/build2.org/common/libhello-1.0.0/INSTALL
@@ -0,0 +1 @@
+Just use build2, bro.
diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/build/bootstrap.build b/tests/pkg/1/build2.org/common/libhello-1.0.0/build/bootstrap.build
index c9bf24d..8d8db2b 100644
--- a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/build/bootstrap.build
+++ b/tests/pkg/1/build2.org/common/libhello-1.0.0/build/bootstrap.build
@@ -1,15 +1,22 @@
project = libhello
+
+using build@0.4.0-a1
+
version = 1.0.0
-revision = 1
-using config
-using dist
-using test
-using install
+abi_major = 1
+abi_minor = 0
+abi_patch = 0
+abi_prerelease = false
+
+revision = 0
dist.package = $project-$version
if ($revision != 0)
-{
dist.package += +$revision
-}
+
+using config
+using dist
+using test
+using install
diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/build/export.build b/tests/pkg/1/build2.org/common/libhello-1.0.0/build/export.build
index 1eb73b7..1eb73b7 100644
--- a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/build/export.build
+++ b/tests/pkg/1/build2.org/common/libhello-1.0.0/build/export.build
diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/build/root.build b/tests/pkg/1/build2.org/common/libhello-1.0.0/build/root.build
index d7f04c2..4f70114 100644
--- a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/build/root.build
+++ b/tests/pkg/1/build2.org/common/libhello-1.0.0/build/root.build
@@ -1,10 +1,6 @@
+cxx.std = 11
+
using cxx
hxx{*}: extension =
cxx{*}: extension = cxx
-
-cxx.std = 11
-
-# Don't install tests.
-#
-dir{tests/}: install = false
diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0/buildfile b/tests/pkg/1/build2.org/common/libhello-1.0.0/buildfile
new file mode 100644
index 0000000..a416648
--- /dev/null
+++ b/tests/pkg/1/build2.org/common/libhello-1.0.0/buildfile
@@ -0,0 +1,8 @@
+d = hello/ tests/
+./: $d doc{INSTALL version} file{manifest}
+include $d
+
+# Don't install tests or the INSTALL file.
+#
+dir{tests/}: install = false
+doc{INSTALL}@./: install = false
diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0/hello/buildfile b/tests/pkg/1/build2.org/common/libhello-1.0.0/hello/buildfile
new file mode 100644
index 0000000..8331a7b
--- /dev/null
+++ b/tests/pkg/1/build2.org/common/libhello-1.0.0/hello/buildfile
@@ -0,0 +1,21 @@
+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
+else
+ lib{hello}: bin.lib.version = @-$abi_major.$abi_minor
+
+cxx.poptions += -I$src_root
+obja{*}: cxx.poptions += -DLIBHELLO_STATIC_BUILD
+objs{*}: cxx.poptions += -DLIBHELLO_SHARED_BUILD
+
+lib{hello}: cxx.export.poptions = -I$src_root
+liba{hello}: cxx.export.poptions += -DLIBHELLO_STATIC
+libs{hello}: cxx.export.poptions += -DLIBHELLO_SHARED
+
+# Install into the hello/ subdirectory of, say, /usr/include/.
+#
+install.include = $install.include/hello/
diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello/export b/tests/pkg/1/build2.org/common/libhello-1.0.0/hello/export
index 2da8177..18f4968 100644
--- a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello/export
+++ b/tests/pkg/1/build2.org/common/libhello-1.0.0/hello/export
@@ -4,7 +4,7 @@
// Normally we don't export class templates (but do complete specializations),
// inline functions, and classes with only inline member functions. Exporting
-// classes that inherit from non-exported/import bases (e.g., std::string)
+// classes that inherit from non-exported/imported bases (e.g., std::string)
// will end up badly. The only known workarounds are to not inherit or to not
// export. Also, MinGW GCC doesn't like seeing non-exported function being
// used before their inline definition. The workaround is to reorder code. In
@@ -27,7 +27,7 @@
# define LIBHELLO_EXPORT
# endif
#else
-// If none of the above macros are defined, then we assume we are being using
+// If none of the above macros are defined, then we assume we are being used
// by some third-party build system that cannot/doesn't signal the library
// type. Note that this fallback works for both static and shared but in case
// of shared will be sub-optimal compared to having dllimport.
diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello/hello b/tests/pkg/1/build2.org/common/libhello-1.0.0/hello/hello
index 5fb7d9e..5fb7d9e 100644
--- a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello/hello
+++ b/tests/pkg/1/build2.org/common/libhello-1.0.0/hello/hello
diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello/hello.cxx b/tests/pkg/1/build2.org/common/libhello-1.0.0/hello/hello.cxx
index 65d0aa7..65d0aa7 100644
--- a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello/hello.cxx
+++ b/tests/pkg/1/build2.org/common/libhello-1.0.0/hello/hello.cxx
diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/manifest b/tests/pkg/1/build2.org/common/libhello-1.0.0/manifest
index 82d79c8..75dc91b 100644
--- a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/manifest
+++ b/tests/pkg/1/build2.org/common/libhello-1.0.0/manifest
@@ -1,6 +1,6 @@
: 1
name: libhello
-version: 1.0.0+1
+version: 1.0.0
summary: The "Hello World" example library
license: MIT
tags: c++, hello, world, example
@@ -11,3 +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
diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/build/bootstrap.build b/tests/pkg/1/build2.org/common/libhello-1.0.0/tests/build/bootstrap.build
index 2c2de24..2c2de24 100644
--- a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/build/bootstrap.build
+++ b/tests/pkg/1/build2.org/common/libhello-1.0.0/tests/build/bootstrap.build
diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/build/root.build b/tests/pkg/1/build2.org/common/libhello-1.0.0/tests/build/root.build
index 672eda8..1f7c350 100644
--- a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/build/root.build
+++ b/tests/pkg/1/build2.org/common/libhello-1.0.0/tests/build/root.build
@@ -1,10 +1,10 @@
+cxx.std = 11
+
using cxx
hxx{*}: extension =
cxx{*}: extension = cxx
-cxx.std = 11
-
# Every exe{} in this subproject is by default a test.
#
-test.exe = true
+exe{*}: test = true
diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/buildfile b/tests/pkg/1/build2.org/common/libhello-1.0.0/tests/buildfile
index 4dcbe2a..4dcbe2a 100644
--- a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/buildfile
+++ b/tests/pkg/1/build2.org/common/libhello-1.0.0/tests/buildfile
diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/test/buildfile b/tests/pkg/1/build2.org/common/libhello-1.0.0/tests/test/buildfile
index a46969d..a46969d 100644
--- a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/test/buildfile
+++ b/tests/pkg/1/build2.org/common/libhello-1.0.0/tests/test/buildfile
diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/test/driver.cxx b/tests/pkg/1/build2.org/common/libhello-1.0.0/tests/test/driver.cxx
index 59bfb2d..59bfb2d 100644
--- a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/test/driver.cxx
+++ b/tests/pkg/1/build2.org/common/libhello-1.0.0/tests/test/driver.cxx
diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/test/test.out b/tests/pkg/1/build2.org/common/libhello-1.0.0/tests/test/test.out
index 8ab686e..8ab686e 100644
--- a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/test/test.out
+++ b/tests/pkg/1/build2.org/common/libhello-1.0.0/tests/test/test.out
diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/version b/tests/pkg/1/build2.org/common/libhello-1.0.0/version
index 3eefcb9..3eefcb9 100644
--- a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/version
+++ b/tests/pkg/1/build2.org/common/libhello-1.0.0/version