diff options
author | EuAndreh <eu@euandre.org> | 2023-11-13 09:24:34 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-11-13 09:24:34 -0300 |
commit | d0ac6ed36f42dca602e8b06375481eb1e31c368a (patch) | |
tree | 8fa6504e2daa36ba3553f980540f90776cb0ef7e /tests/assert-install.sh | |
parent | tests/assert-*.sh: Allow tests to run independently from "all" and from each ... (diff) | |
download | papod-d0ac6ed36f42dca602e8b06375481eb1e31c368a.tar.gz papod-d0ac6ed36f42dca602e8b06375481eb1e31c368a.tar.xz |
tests/assert-*.sh: Reuse rebuilt assets for tests
Diffstat (limited to 'tests/assert-install.sh')
-rwxr-xr-x | tests/assert-install.sh | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/tests/assert-install.sh b/tests/assert-install.sh index b10c037..fd1e037 100755 --- a/tests/assert-install.sh +++ b/tests/assert-install.sh @@ -1,26 +1,19 @@ #!/bin/sh set -eu -if [ ! -e .git ]; then - echo "Not in a Git repository, skipping \"$0\"." >&2 - exit -fi - - . tools/lib.sh D="$(mkdtemp)" R="$(mkdtemp)" trap 'rm -rf "$D" "$R"' EXIT -git clone -q --depth=1 file://"$PWD" "$R" +cp -pR ./ "$R" cd "$R" -PATH="$D/usr/bin:$PATH" -NODE_PATH="$D/usr/lib/node:$NODE_PATH" - { + PATH="$D/usr/bin:$PATH" + NODE_PATH="$D/usr/lib/node:$NODE_PATH" make -s DESTDIR="$D" install printf '%s: that the papo(3js) library is installed correctly...' \ |