Fix bzcat.test (as noted by Andy Chu), wean tests off $TOPDIR and supply $FILES

instead, move tests/blkid into tests/files/blkid.
This commit is contained in:
Rob Landley 2016-03-23 03:44:51 -05:00
parent b52f642472
commit 1ffa7f45eb
16 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,7 @@
#!/bin/bash
[ -z "$TOPDIR" ] && TOPDIR="$(pwd)"
TOPDIR="$PWD"
FILES="$PWD"/tests/files
trap 'kill $(jobs -p) 2>/dev/null; exit 1' INT

View File

@ -4,7 +4,7 @@
#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' "" ""

View File

@ -7,7 +7,7 @@
#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

View File

@ -4,7 +4,7 @@
#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' "" ""