instead, move tests/blkid into tests/files/blkid.
#!/bin/bash
-[ -z "$TOPDIR" ] && TOPDIR="$(pwd)"
+TOPDIR="$PWD"
+FILES="$PWD"/tests/files
trap 'kill $(jobs -p) 2>/dev/null; exit 1' INT
#testing "name" "command" "result" "infile" "stdin"
-BDIR="$TOPDIR/tests/blkid"
+BDIR="$FILES/blkid"
bzcat "$BDIR"/squashfs.bz2 > temp.img
testing "file" "blkid temp.img" 'temp.img: TYPE="squashfs"\n' "" ""
#testing "name" "command" "result" "infile" "stdin"
testing "overflow" \
- 'bzcat "$TOPDIR/files/bzcat/overflow.bz2" >/dev/null 2>/dev/null;
+ 'bzcat "$FILES/bzcat/overflow.bz2" >/dev/null 2>/dev/null ;
[ $? -eq 1 ] && echo good' "good\n" "" ""
echo "hello" > file
#testing "name" "command" "result" "infile" "stdin"
-BDIR="$TOPDIR/tests/blkid"
+BDIR="$FILES/blkid"
bzcat "$BDIR"/squashfs.bz2 > temp.img
testing "file" "fstype temp.img" 'squashfs\n' "" ""