]> err.no Git - util-linux/commitdiff
tests: cleanup ts/cramfs/fsck-endianness
authorKarel Zak <kzak@redhat.com>
Wed, 18 Feb 2009 15:45:01 +0000 (16:45 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 18 Feb 2009 15:45:01 +0000 (16:45 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/expected/cramfs/fsck-endianness [moved from tests/expected/ts-cramfs-endianness-fsck with 100% similarity]
tests/ts/cramfs/cramfs-big.img [moved from tests/input/cramfs-big.img with 100% similarity]
tests/ts/cramfs/cramfs-little.img [moved from tests/input/cramfs-little.img with 100% similarity]
tests/ts/cramfs/fsck-endianness [moved from tests/ts-cramfs-endianness-fsck with 77% similarity]

similarity index 77%
rename from tests/ts-cramfs-endianness-fsck
rename to tests/ts/cramfs/fsck-endianness
index c9d483a9570d9109b62caa8669f58da88cc93518..93ebc7c129252f97daa4a66e91044d3bb0f0c15e 100755 (executable)
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 # GNU General Public License for more details.
 #
-. ./commands.sh
-. ./functions.sh
-
-TS_COMPONENT="mkfs.cramfs"
-TS_DESC="endianness-fsck"
+TS_TOPDIR="$(dirname $0)/../.."
+TS_DESC="fsck endianness"
 
+. $TS_TOPDIR/functions.sh
 ts_init "$*"
 ts_skip_nonroot
 
@@ -29,11 +27,11 @@ set -o pipefail
 ($TS_CMD_FSCKCRAMFS -x TEST_X_FLAG 2>&1 || true) \
        | grep -q "compiled without -x support" && ts_skip "fsck: compiled without -x support"
 
-IMAGE_LITTLE="$TS_INPUTDIR/cramfs-little.img"  #Known good little endian image
-IMAGE_BIG="$TS_INPUTDIR/cramfs-big.img"                #Known good big endian image
+IMAGE_LITTLE="$TS_SELF/cramfs-little.img"      #Known good little endian image
+IMAGE_BIG="$TS_SELF/cramfs-big.img"            #Known good big endian image
 
-IMAGE_CREATED="$TS_OUTDIR/cramfs.img"          #Image created during the test and compared against the known images.
-IMAGE_DATA="$TS_OUTDIR/cramfs-endianness-data"
+IMAGE_CREATED="$TS_OUTDIR/${TS_TESTNAME}-cramfs.img"   #Image created during the test and compared against the known images.
+IMAGE_DATA="$TS_OUTDIR/${TS_TESTNAME}-data"
 
 test_image() {
        local FROM_ENDIANNESS="$1"; shift