aboutsummaryrefslogtreecommitdiff
path: root/tests/package-archive/driver.in
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-09-23 13:13:05 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-09-24 19:09:39 +0300
commit15514b1013a22977a451c64b6df229414a9dde6b (patch)
treec15fe9a45fe06403944b642314bf80d8349b439d /tests/package-archive/driver.in
parent0d0d607e3f2582afb708642b98f2d75568b51326 (diff)
Add package-archive.bash public module
Diffstat (limited to 'tests/package-archive/driver.in')
-rw-r--r--tests/package-archive/driver.in20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/package-archive/driver.in b/tests/package-archive/driver.in
new file mode 100644
index 0000000..d760a1e
--- /dev/null
+++ b/tests/package-archive/driver.in
@@ -0,0 +1,20 @@
+#!/usr/bin/env bash
+
+# file : tests/package-archive/driver.in
+# license : MIT; see accompanying LICENSE file
+
+# bpkg utility path.
+#
+bpkg_rep_bpkg=bpkg
+
+trap "{ exit 1; }" ERR
+set -o errtrace # Trap ERR in functions.
+
+@import bpkg-rep/package-archive@
+
+# Call the function passed on the command line.
+#
+# Note that we reset IFS to make sure that the function being tested is not
+# affected by its value set by the caller.
+#
+IFS= "$@"