#!/bin/sh # Verify tmpfiles --purge, which removes what the entries marked with a # $ make, for when a package is uninstalled set -eu TEST_DIR=$(dirname "$0") DIR=/tmp/purge CONF=/tmp/purge.conf test_teardown() { say "Running test teardown." run "rm -rf $DIR $CONF" } # shellcheck source=/dev/null . "$TEST_DIR/lib/setup.sh" run "cat > $CONF" </dev/null 2>&1; echo \$?")" = "1"