diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-09-23 13:13:05 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2020-09-24 19:09:39 +0300 |
commit | 15514b1013a22977a451c64b6df229414a9dde6b (patch) | |
tree | c15fe9a45fe06403944b642314bf80d8349b439d /tests/package-archive/driver.in | |
parent | 0d0d607e3f2582afb708642b98f2d75568b51326 (diff) |
Add package-archive.bash public module
Diffstat (limited to 'tests/package-archive/driver.in')
-rw-r--r-- | tests/package-archive/driver.in | 20 |
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= "$@" |