aboutsummaryrefslogtreecommitdiff
path: root/old-tests/install
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-12-01 12:07:18 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-12-01 12:07:18 +0200
commit0ed86c76239d4f2904ea4ae1a77902a9e0db2a6d (patch)
tree5e8e1d43a0140f5739b21be7cbe120ebb9360d4f /old-tests/install
parent12fc75188cc1f0a8c4c443c04e7a022131198c36 (diff)
Move old tests to old-tests/
Diffstat (limited to 'old-tests/install')
-rw-r--r--old-tests/install/lib/libtest/build/bootstrap.build5
-rw-r--r--old-tests/install/lib/libtest/build/export.build6
-rw-r--r--old-tests/install/lib/libtest/build/root.build11
-rw-r--r--old-tests/install/lib/libtest/buildfile3
-rw-r--r--old-tests/install/lib/libtest/doc/buildfile1
-rw-r--r--old-tests/install/lib/libtest/doc/test.15
-rw-r--r--old-tests/install/lib/libtest/doc/test.txt1
-rw-r--r--old-tests/install/lib/libtest/test/buildfile10
-rw-r--r--old-tests/install/lib/libtest/test/driver.cxx4
-rw-r--r--old-tests/install/lib/libtest/test/driver.hxx0
-rw-r--r--old-tests/install/lib/libtest/test/utility.cxx6
-rw-r--r--old-tests/install/lib/libtest/test/utility.hxx5
-rw-r--r--old-tests/install/lib/libtest/tests/buildfile2
-rw-r--r--old-tests/install/lib/libtest/tests/driver.cxx3
-rw-r--r--old-tests/install/simple/README1
-rw-r--r--old-tests/install/simple/build/bootstrap.build4
-rw-r--r--old-tests/install/simple/buildfile4
-rw-r--r--old-tests/install/simple/driver.cxx3
-rw-r--r--old-tests/install/simple/utility.hxx2
19 files changed, 76 insertions, 0 deletions
diff --git a/old-tests/install/lib/libtest/build/bootstrap.build b/old-tests/install/lib/libtest/build/bootstrap.build
new file mode 100644
index 0000000..0e83554
--- /dev/null
+++ b/old-tests/install/lib/libtest/build/bootstrap.build
@@ -0,0 +1,5 @@
+project = install-lib-libtest
+amalgamation = # Disabled.
+using config
+using install
+using test
diff --git a/old-tests/install/lib/libtest/build/export.build b/old-tests/install/lib/libtest/build/export.build
new file mode 100644
index 0000000..e8b12b3
--- /dev/null
+++ b/old-tests/install/lib/libtest/build/export.build
@@ -0,0 +1,6 @@
+$out_root/:
+{
+ include test/
+}
+
+export $out_root/test/lib{test}
diff --git a/old-tests/install/lib/libtest/build/root.build b/old-tests/install/lib/libtest/build/root.build
new file mode 100644
index 0000000..20536a2
--- /dev/null
+++ b/old-tests/install/lib/libtest/build/root.build
@@ -0,0 +1,11 @@
+using cxx
+
+hxx{*}: extension = hxx
+ixx{*}: extension = ixx
+cxx{*}: extension = cxx
+
+tests/:
+{
+ exe{*}: test = true
+ install = false
+}
diff --git a/old-tests/install/lib/libtest/buildfile b/old-tests/install/lib/libtest/buildfile
new file mode 100644
index 0000000..32dd3f2
--- /dev/null
+++ b/old-tests/install/lib/libtest/buildfile
@@ -0,0 +1,3 @@
+d = doc/ test/ tests/
+./: $d
+include $d
diff --git a/old-tests/install/lib/libtest/doc/buildfile b/old-tests/install/lib/libtest/doc/buildfile
new file mode 100644
index 0000000..dfc1701
--- /dev/null
+++ b/old-tests/install/lib/libtest/doc/buildfile
@@ -0,0 +1 @@
+./: doc{test.txt} man1{test}
diff --git a/old-tests/install/lib/libtest/doc/test.1 b/old-tests/install/lib/libtest/doc/test.1
new file mode 100644
index 0000000..0a32f2b
--- /dev/null
+++ b/old-tests/install/lib/libtest/doc/test.1
@@ -0,0 +1,5 @@
+.TH TEST 1
+.SH NAME
+test \- this is a test
+.SH SYNOPSIS
+.B test-driver
diff --git a/old-tests/install/lib/libtest/doc/test.txt b/old-tests/install/lib/libtest/doc/test.txt
new file mode 100644
index 0000000..484ba93
--- /dev/null
+++ b/old-tests/install/lib/libtest/doc/test.txt
@@ -0,0 +1 @@
+This is a test.
diff --git a/old-tests/install/lib/libtest/test/buildfile b/old-tests/install/lib/libtest/test/buildfile
new file mode 100644
index 0000000..343bc30
--- /dev/null
+++ b/old-tests/install/lib/libtest/test/buildfile
@@ -0,0 +1,10 @@
+cxx.poptions += -I$src_root
+
+install.include = $install.include/test/
+
+lib{test}: cxx{utility} hxx{utility}
+lib{test}: cxx.export.poptions = -I$src_root
+
+exe{driver}: cxx{driver} hxx{driver} lib{test}
+
+./: lib{test} exe{driver}
diff --git a/old-tests/install/lib/libtest/test/driver.cxx b/old-tests/install/lib/libtest/test/driver.cxx
new file mode 100644
index 0000000..fbb6643
--- /dev/null
+++ b/old-tests/install/lib/libtest/test/driver.cxx
@@ -0,0 +1,4 @@
+#include <test/utility.hxx>
+#include "driver.hxx"
+
+int main () {return test::f ();}
diff --git a/old-tests/install/lib/libtest/test/driver.hxx b/old-tests/install/lib/libtest/test/driver.hxx
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/old-tests/install/lib/libtest/test/driver.hxx
diff --git a/old-tests/install/lib/libtest/test/utility.cxx b/old-tests/install/lib/libtest/test/utility.cxx
new file mode 100644
index 0000000..2016b45
--- /dev/null
+++ b/old-tests/install/lib/libtest/test/utility.cxx
@@ -0,0 +1,6 @@
+#include <test/utility.hxx>
+
+namespace test
+{
+ int f () {return 0;}
+}
diff --git a/old-tests/install/lib/libtest/test/utility.hxx b/old-tests/install/lib/libtest/test/utility.hxx
new file mode 100644
index 0000000..1a9dd72
--- /dev/null
+++ b/old-tests/install/lib/libtest/test/utility.hxx
@@ -0,0 +1,5 @@
+namespace test
+{
+ int f ();
+}
+
diff --git a/old-tests/install/lib/libtest/tests/buildfile b/old-tests/install/lib/libtest/tests/buildfile
new file mode 100644
index 0000000..72d549a
--- /dev/null
+++ b/old-tests/install/lib/libtest/tests/buildfile
@@ -0,0 +1,2 @@
+exe{driver}: cxx{driver} ../test/lib{test}
+include ../test/
diff --git a/old-tests/install/lib/libtest/tests/driver.cxx b/old-tests/install/lib/libtest/tests/driver.cxx
new file mode 100644
index 0000000..9a12f9d
--- /dev/null
+++ b/old-tests/install/lib/libtest/tests/driver.cxx
@@ -0,0 +1,3 @@
+#include <test/utility.hxx>
+
+int main () {return test::f ();}
diff --git a/old-tests/install/simple/README b/old-tests/install/simple/README
new file mode 100644
index 0000000..484ba93
--- /dev/null
+++ b/old-tests/install/simple/README
@@ -0,0 +1 @@
+This is a test.
diff --git a/old-tests/install/simple/build/bootstrap.build b/old-tests/install/simple/build/bootstrap.build
new file mode 100644
index 0000000..40e665b
--- /dev/null
+++ b/old-tests/install/simple/build/bootstrap.build
@@ -0,0 +1,4 @@
+project = install-simple
+amalgamation = # Disabled.
+using config
+using install
diff --git a/old-tests/install/simple/buildfile b/old-tests/install/simple/buildfile
new file mode 100644
index 0000000..d37f63f
--- /dev/null
+++ b/old-tests/install/simple/buildfile
@@ -0,0 +1,4 @@
+using cxx
+
+exe{driver}: cxx{driver} hxx{utility} doc{README}
+exe{driver}: install = sbin/
diff --git a/old-tests/install/simple/driver.cxx b/old-tests/install/simple/driver.cxx
new file mode 100644
index 0000000..1b28c94
--- /dev/null
+++ b/old-tests/install/simple/driver.cxx
@@ -0,0 +1,3 @@
+#include "utility.hxx"
+
+int main () {return result;}
diff --git a/old-tests/install/simple/utility.hxx b/old-tests/install/simple/utility.hxx
new file mode 100644
index 0000000..1b8e18e
--- /dev/null
+++ b/old-tests/install/simple/utility.hxx
@@ -0,0 +1,2 @@
+const int result = 0;
+