Home | History | Annotate | Download | only in tests
      1 #
      2 # Test configuration
      3 #
      4 
      5 unset LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE LC_TIME PAGER
      6 FSCK="$USE_VALGRIND ../e2fsck/e2fsck"
      7 MKE2FS="$USE_VALGRIND ../misc/mke2fs"
      8 DUMPE2FS="$USE_VALGRIND ../misc/dumpe2fs"
      9 TUNE2FS="$USE_VALGRIND ../misc/tune2fs"
     10 CHATTR="$USE_VALGRIND../misc/chattr"
     11 LSATTR="$USE_VALGRIND ../misc/lsattr"
     12 E2IMAGE="$USE_VALGRIND ../misc/e2image"
     13 E2IMAGE_EXE="../misc/e2image"
     14 DEBUGFS="$USE_VALGRIND ../debugfs/debugfs"
     15 DEBUGFS_EXE="../debugfs/debugfs"
     16 TEST_BITS="test_data.tmp"
     17 if [ ! -s $TEST_BITS ]; then
     18 	# create a non-sparse test file if possible, since debugfs may be
     19 	# sparse and cause "debugfs write" (using copy_file()) to skip holes
     20 	# during testing if SEEK_DATA/SEEK_HOLE or FS_IOC_FIEMAP are available
     21 	dd if=/dev/urandom of=$TEST_BITS bs=128k count=1 > /dev/null 2>&1 ||
     22 		TEST_BITS="$DEFBUGFS_EXE"
     23 fi
     24 RESIZE2FS_EXE="../resize/resize2fs"
     25 RESIZE2FS="$USE_VALGRIND $RESIZE2FS_EXE"
     26 E2UNDO_EXE="../misc/e2undo"
     27 E2UNDO="$USE_VALGRIND $E2UNDO_EXE"
     28 E2MMPSTATUS="$USE_VALGRIND ../misc/dumpe2fs -m"
     29 TEST_REL=../tests/progs/test_rel
     30 TEST_ICOUNT=../tests/progs/test_icount
     31 CRCSUM=../tests/progs/crcsum
     32 CLEAN_OUTPUT="sed -f $cmd_dir/filter.sed"
     33 LD_LIBRARY_PATH=../lib:../lib/ext2fs:../lib/e2p:../lib/et:../lib/ss:${LD_LIBRARY_PATH}
     34 DYLD_LIBRARY_PATH=../lib:../lib/ext2fs:../lib/e2p:../lib/et:../lib/ss:${DYLD_LIBRARY_PATH}
     35 export LD_LIBRARY_PATH
     36 export DYLD_LIBRARY_PATH
     37 TZ=GMT0
     38 export TZ
     39 LC_ALL=C
     40 export LC_ALL
     41 E2FSCK_CONFIG=/dev/null
     42 export E2FSCK_CONFIG
     43 MKE2FS_CONFIG=./mke2fs.conf
     44 export MKE2FS_CONFIG
     45 BLKID_FILE=/dev/null
     46 export BLKID_FILE
     47 unset MKE2FS_FIRST_META_BG
     48 E2FSPROGS_SKIP_PROGRESS=yes
     49 export E2FSPROGS_SKIP_PROGRESS
     50 EXT2FS_NO_MTAB_OK=yes
     51 export EXT2FS_NO_MTAB_OK
     52 RESIZE2FS_FORCE_LAZY_ITABLE_INIT=yes
     53 export RESIZE2FS_FORCE_LAZY_ITABLE_INIT
     54 E2FSPROGS_LIBMAGIC_SUPPRESS=yes
     55 export E2FSPROGS_LIBMAGIC_SUPPRESS
     56