aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-10-18 18:42:00 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-10-19 19:49:55 +0300
commitfd4b8ec3d690fa7341159b0166b382dd43c6c967 (patch)
tree611f28b71b6e31f2f04b64f7b0db095b8af98d30 /tests
parent81a57bde7ad17f6be6b3c604b2c63c623117d0ab (diff)
Add implementation
Diffstat (limited to 'tests')
-rw-r--r--tests/.gitignore2
-rw-r--r--tests/build/.gitignore3
-rw-r--r--tests/build/bootstrap.build9
-rw-r--r--tests/build/root.build7
-rw-r--r--tests/buildfile7
-rw-r--r--tests/publish.testscript9
6 files changed, 37 insertions, 0 deletions
diff --git a/tests/.gitignore b/tests/.gitignore
new file mode 100644
index 0000000..35ec43f
--- /dev/null
+++ b/tests/.gitignore
@@ -0,0 +1,2 @@
+test/
+test-*/
diff --git a/tests/build/.gitignore b/tests/build/.gitignore
new file mode 100644
index 0000000..4a730a3
--- /dev/null
+++ b/tests/build/.gitignore
@@ -0,0 +1,3 @@
+config.build
+root/
+bootstrap/
diff --git a/tests/build/bootstrap.build b/tests/build/bootstrap.build
new file mode 100644
index 0000000..91bc3e9
--- /dev/null
+++ b/tests/build/bootstrap.build
@@ -0,0 +1,9 @@
+# file : tests/build/bootstrap.build
+# copyright : Copyright (c) 2014-2018 Code Synthesis Ltd
+# license : MIT; see accompanying LICENSE file
+
+project = # Unnamed subproject.
+
+using config
+using dist
+using test
diff --git a/tests/build/root.build b/tests/build/root.build
new file mode 100644
index 0000000..1d7601b
--- /dev/null
+++ b/tests/build/root.build
@@ -0,0 +1,7 @@
+# file : tests/build/root.build
+# copyright : Copyright (c) 2014-2018 Code Synthesis Ltd
+# license : MIT; see accompanying LICENSE file
+
+# Setup the utilities that we are testing.
+#
+import publish = bpkg-rep%exe{bpkg-rep-publish}
diff --git a/tests/buildfile b/tests/buildfile
new file mode 100644
index 0000000..36c24d7
--- /dev/null
+++ b/tests/buildfile
@@ -0,0 +1,7 @@
+# file : tests/buildfile
+# copyright : Copyright (c) 2014-2018 Code Synthesis Ltd
+# license : MIT; see accompanying LICENSE file
+
+./: testscript{*} $publish
+
+testscript{publish}@./: test = $publish
diff --git a/tests/publish.testscript b/tests/publish.testscript
new file mode 100644
index 0000000..95fd6f5
--- /dev/null
+++ b/tests/publish.testscript
@@ -0,0 +1,9 @@
+# file : tests/publish.testscript
+# copyright : Copyright (c) 2014-2018 Code Synthesis Ltd
+# license : MIT; see accompanying LICENSE file
+
+: args
+:
+{
+ $* 2>~"/usage: .+/" != 0 : no-args
+}