summaryrefslogtreecommitdiff
path: root/tests/assert-install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/assert-install.sh')
-rwxr-xr-xtests/assert-install.sh13
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...' \