diff options
Diffstat (limited to 'tests/assert-uninstall.sh')
-rwxr-xr-x | tests/assert-uninstall.sh | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/tests/assert-uninstall.sh b/tests/assert-uninstall.sh deleted file mode 100755 index 247d723..0000000 --- a/tests/assert-uninstall.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh -set -eu - -. tools/lib.sh - -D="$(mkdtemp)" -R="$(mkdtemp)" -trap 'rm -rf "$D" "$R"' EXIT - -cp -pR ./ "$R" -cd "$R" - - -{ - make -s DESTDIR="$D" install - make -s DESTDIR="$D" uninstall - printf '%s: that the "uninstall" target removes everything...' \ - "$(yellow "$0")" - if [ "$(find "$D" -not -type d | wc -l)" != 0 ]; then - printf ' ERR.\n' - cat <<-EOF - Leftover files not removed by "make uninstall": - - $(find "$D" -not -type d) - EOF - exit 1 - fi - printf ' %s\n' "$(green 'OK')" -} >&2 |