Commit cc58b1e8 authored by Julius Plenz's avatar Julius Plenz

Make it easy to add new tests

parent d70cfc0c
......@@ -20,7 +20,7 @@ install: all
install -m 0755 nocache.global /usr/local/bin/nocache
test:
prove -v t
cd t; prove -v .
clean:
rm -f cachestats cachedel fcntl_helpers.o nocache.o nocache.so
#!/bin/sh
#set -x
NR=0
t() {
NR=$(expr $NR + 1)
if eval "$1"; then
echo "ok $NR - $2"
else
echo "not okay $NR - $2"
fi
}
if [ "$(basename "$(readlink -f .)")" != "t" ]; then
cd t || exit 1;
fi
. ./testlib.sh
echo 1..4
......
t() {
NR=$(expr $NR + 1)
if eval "$1"; then
echo "ok $NR - $2"
else
echo "not okay $NR - $2"
fi
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment