OSDN Git Service

Fix bzcat.test (as noted by Andy Chu), wean tests off $TOPDIR and supply $FILES
authorRob Landley <rob@landley.net>
Wed, 23 Mar 2016 08:44:51 +0000 (03:44 -0500)
committerRob Landley <rob@landley.net>
Wed, 23 Mar 2016 08:44:51 +0000 (03:44 -0500)
instead, move tests/blkid into tests/files/blkid.

16 files changed:
scripts/test.sh
tests/blkid.test
tests/bzcat.test
tests/files/blkid/cramfs.bz2 [moved from tests/blkid/cramfs.bz2 with 100% similarity]
tests/files/blkid/ext2.bz2 [moved from tests/blkid/ext2.bz2 with 100% similarity]
tests/files/blkid/ext3.bz2 [moved from tests/blkid/ext3.bz2 with 100% similarity]
tests/files/blkid/ext4.bz2 [moved from tests/blkid/ext4.bz2 with 100% similarity]
tests/files/blkid/f2fs.bz2 [moved from tests/blkid/f2fs.bz2 with 100% similarity]
tests/files/blkid/minix.bz2 [moved from tests/blkid/minix.bz2 with 100% similarity]
tests/files/blkid/msdos.bz2 [moved from tests/blkid/msdos.bz2 with 100% similarity]
tests/files/blkid/ntfs.bz2 [moved from tests/blkid/ntfs.bz2 with 100% similarity]
tests/files/blkid/reiser3.bz2 [moved from tests/blkid/reiser3.bz2 with 100% similarity]
tests/files/blkid/squashfs.bz2 [moved from tests/blkid/squashfs.bz2 with 100% similarity]
tests/files/blkid/vfat.bz2 [moved from tests/blkid/vfat.bz2 with 100% similarity]
tests/files/blkid/xfs.bz2 [moved from tests/blkid/xfs.bz2 with 100% similarity]
tests/fstype.test

index 0c3d7aa..1337c52 100755 (executable)
@@ -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
 
index c99b2a4..d3bf6a1 100755 (executable)
@@ -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' "" ""
index ef1b07f..f57a2f8 100755 (executable)
@@ -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
index cc7a620..3df26b1 100755 (executable)
@@ -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' "" ""