ts_skip_nonroot
ts_check_losetup
-set -o pipefail
-
ORIGPWD=$(pwd)
IMAGE_NAME="${TS_TESTNAME}-loop.img"
IMAGE_PATH="$TS_OUTDIR/$IMAGE_NAME"
ts_check_losetup
ts_check_prog "mdadm"
-set -o pipefail
-
ts_log "Initialize devices"
IMGNAME="${TS_OUTDIR}/${TS_TESTNAME}"
ts_check_losetup
ts_check_prog "mdadm"
-set -o pipefail
-
ts_log "Initialize devices"
IMGNAME="${TS_OUTDIR}/${TS_TESTNAME}"
ts_check_test_command "$TS_CMD_CAL"
-set -o pipefail
export TERM=linux
USETERM=$( ts_has_option "useterm" "$*" )
ts_check_test_command "$TS_CMD_CAL"
-set -o pipefail
export TERM=linux
USETERM=$( ts_has_option "useterm" "$*" )
ts_check_test_command "$TS_CMD_CAL"
-set -o pipefail
export TERM=linux
USETERM=$( ts_has_option "useterm" "$*" )
ts_check_test_command "$TS_CMD_CAL"
-set -o pipefail
-
USETERM=$( ts_has_option "useterm" "$*" )
MYTIME="27 09 2006"
ts_check_test_command "$TS_CMD_CAL"
-set -o pipefail
export TERM=linux
USETERM=$( ts_has_option "useterm" "$*" )
ts_check_test_command "$TS_CMD_CAL"
-set -o pipefail
export TERM=linux
USETERM=$( ts_has_option "useterm" "$*" )
# --color output depends on terminal type
export TERM=linux
-set -o pipefail
-
USETERM=$( ts_has_option "useterm" "$*" )
[ "$USETERM" == "yes" ] && TS_VERBOSE="yes"
# --color output depends on terminal type
export TERM=linux
-set -o pipefail
-
USETERM=$( ts_has_option "useterm" "$*" )
[ "$USETERM" == "yes" ] && TS_VERBOSE="yes"
ts_check_test_command "$TS_CMD_CAL"
-set -o pipefail
export TERM=linux
USETERM=$( ts_has_option "useterm" "$*" )
ts_check_test_command "$TS_CMD_CAL"
-set -o pipefail
export TERM=linux
USETERM=$( ts_has_option "useterm" "$*" )
ts_check_test_command "$TS_CMD_CAL"
-set -o pipefail
export TERM=linux
USETERM=$( ts_has_option "useterm" "$*" )
ts_check_test_command "$TS_CMD_CAL"
-set -o pipefail
export TERM=linux
USETERM=$( ts_has_option "useterm" "$*" )
ts_check_test_command "$TS_CMD_CAL"
-set -o pipefail
export TERM=linux
USETERM=$( ts_has_option "useterm" "$*" )
ts_check_test_command "$TS_CMD_CAL"
-set -o pipefail
export TERM=linux
USETERM=$( ts_has_option "useterm" "$*" )
ts_skip_nonroot
ts_check_losetup
-set -o pipefail
-
ORIGPWD=$(pwd)
IMAGE_NAME="${TS_TESTNAME}.img"
IMAGE_PATH="$TS_OUTDIR/$IMAGE_NAME"
ts_skip_nonroot
-set -o pipefail
-
IMAGE_LITTLE="$TS_SELF/cramfs-little.img" #Known good little endian image
IMAGE_BIG="$TS_SELF/cramfs-big.img" #Known good big endian image
ts_skip_nonroot
ts_check_losetup
-set -o pipefail
-
ORIGPWD=$(pwd)
IMAGE_NAME="${TS_TESTNAME}-loop.img"
IMAGE_PATH="$TS_OUTDIR/$IMAGE_NAME"
ts_skip_nonroot
-set -o pipefail
-
IMAGE_DATA="$TS_OUTDIR/${TS_TESTNAME}-data"
IMAGE_CREATED="$TS_OUTDIR/${TS_TESTNAME}-cramfs.img" #Image created during the test and compared against the known images.
ts_skip_nonroot
ts_check_losetup
-set -o pipefail
-
> $TS_OUTPUT
ts_device_init
ts_skip_nonroot
ts_check_losetup
-set -o pipefail
-
IMAGE="$TS_OUTDIR/${TS_TESTNAME}-loop.img"
ts_device_init
DEVICE=$TS_LODEV
ts_skip_nonroot
ts_check_losetup
-set -o pipefail
-
IMAGE="$TS_OUTDIR/${TS_TESTNAME}-loop.img"
ts_device_init
DEVICE=$TS_LODEV
ts_skip_nonroot
ts_check_losetup
-set -o pipefail
-
ts_device_init
DEVICE=$TS_LODEV
ts_skip_nonroot
ts_check_losetup
-set -o pipefail
-
ts_device_init
DEVICE=$TS_LODEV
ts_skip_nonroot
-set -o pipefail
-
# Let's use the same mountpoint for all subtests
MNT=$TS_MOUNTPOINT
mkdir -p $MNT
ts_skip_nonroot
ts_check_losetup
-set -o pipefail
-
ts_device_init
DEVICE=$TS_LODEV
ts_skip_nonroot
ts_check_losetup
-set -o pipefail
-
ts_device_init
DEVICE=$TS_LODEV
ts_skip_nonroot
ts_check_losetup
-set -o pipefail
-
ts_device_init
DEVICE=$TS_LODEV
ts_skip_nonroot
ts_check_losetup
-set -o pipefail
-
ts_device_init
DEVICE=$TS_LODEV
ts_skip_nonroot
ts_check_losetup
-set -o pipefail
-
ts_device_init
DEVICE=$TS_LODEV
ts_skip_nonroot
ts_check_losetup
-set -o pipefail
-
ts_device_init
DEVICE=$TS_LODEV
ts_skip_nonroot
-set -o pipefail
-
ts_fstab_add "none" "$TS_MOUNTPOINT" "tmpfs" "rw,nosuid,nodev,relatime"
mkdir -p $TS_MOUNTPOINT
ts_skip_nonroot
ts_check_losetup
-set -o pipefail
-
LINKNAME="$TS_OUTDIR/${TS_TESTNAME}_lnk"
ts_device_init
ts_skip_nonroot
ts_check_losetup
-set -o pipefail
-
ts_device_init
DEVICE=$TS_LODEV
ts_skip_nonroot
ts_check_losetup
-set -o pipefail
-
ts_device_init
DEVICE=$TS_LODEV
ts_skip_nonroot
ts_check_losetup
-set -o pipefail
-
ts_device_init
DEVICE=$TS_LODEV
ts_skip_nonroot
ts_check_losetup
-set -o pipefail
-
ts_device_init
DEVICE=$TS_LODEV
ts_skip_nonroot
ts_check_losetup
-set -o pipefail
-
IMAGE=$(ts_image_init)
mkfs.ext3 -F $IMAGE &> /dev/null || ts_die "Cannot make ext3 on $IMAGE"
[ -L /etc/mtab ] && ts_skip "mtab is symlink"
[ "$(stat --format '%s' /etc/mtab)" -gt "1024" ] || ts_skip "mtab is too small"
-set -o pipefail
-
function mtab_checksum()
{
md5sum /etc/mtab | awk '{printf $1}'
ts_skip_nonroot
ts_check_losetup
-set -o pipefail
-
ts_device_init
DEVICE=$TS_LODEV
bingofile="$TS_OUTDIR/${TS_TESTNAME}-bingo"
-set -o pipefail
-
count=1000
for i in `seq 1 $count`; do
$TS_CMD_SCRIPT -q -c "printf 'Bingo\n'" $bingofile
ts_skip_nonroot
ts_check_losetup
-set -o pipefail
-
ts_device_init
DEVICE=$TS_LODEV
ts_skip_nonroot
ts_check_losetup
-set -o pipefail
-
PAGESIZE=$($TS_HELPER_SYSINFO pagesize)
#
ts_skip_nonroot
ts_check_losetup
-set -o pipefail
-
PAGESIZE=$($TS_HELPER_SYSINFO pagesize)
#
ts_skip_nonroot
ts_check_losetup
-set -o pipefail
-
ts_device_init
DEVICE=$TS_LODEV
ts_skip_nonroot
ts_check_losetup
-set -o pipefail
-
ts_device_init
DEVICE=$TS_LODEV