aboutsummaryrefslogtreecommitdiff
path: root/tests/publish
diff options
context:
space:
mode:
Diffstat (limited to 'tests/publish')
-rw-r--r--tests/publish/buildfile8
-rw-r--r--tests/publish/testscript8
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/publish/buildfile b/tests/publish/buildfile
new file mode 100644
index 0000000..4cc1bd0
--- /dev/null
+++ b/tests/publish/buildfile
@@ -0,0 +1,8 @@
+# file : tests/publish/buildfile
+# license : MIT; see accompanying LICENSE file
+
+import publish = bpkg-rep%exe{bpkg-rep-publish}
+
+./: testscript $publish
+
+testscript@./: test = $publish
diff --git a/tests/publish/testscript b/tests/publish/testscript
new file mode 100644
index 0000000..2d3fb4c
--- /dev/null
+++ b/tests/publish/testscript
@@ -0,0 +1,8 @@
+# file : tests/publish/testscript
+# license : MIT; see accompanying LICENSE file
+
+: args
+:
+{
+ $* 2>~"/usage: .+/" != 0 : no-args
+}