Skip to content
Commits on Source (3)
......@@ -94,11 +94,8 @@ install-man: build-man
install -d $(DESTDIR)$(MANDIR)/man1
install -m 644 disorderfs.1 $(DESTDIR)$(MANDIR)/man1/
#
# Test
#
test: build
cd tests && ../run-parts.sh --verbose .
$(MAKE) -C tests
.PHONY: all \
build build-bin build-man \
......
#!/bin/sh -e
verbose=0
[ "$1" = --verbose ] && verbose=1 && shift
dir=$1
for prog in `find $dir -type f -perm -1 | LC_ALL=C sort` ; do
[ "$verbose" = 0 ] || echo "run-parts: executing $prog" >&2
$prog
done
TESTS := $(sort $(wildcard test_*))
test: ../disorderfs
set -eu; for X in $(TESTS); do \
echo "executing $$X" >&2; \
./$$X; \
done
.PHONY: test