[ -n "$CFLAGS" ] && export CFLAGS="$CFLAGS"
-cd $top_builddir && make -j clean &> /dev/null
+ts_cd $top_builddir && make -j clean &> /dev/null
for conf in $config_gen_dir/config-gen.d/*.conf; do
ts_init_subtest $(basename $conf | sed 's/\.conf//')
opts=$(ul_get_configuration $conf)
olddir=$(pwd)
- cd $top_builddir
+ ts_cd $top_builddir
./configure $opts &> /dev/null
make -j &> /dev/null
[ -d tests/diff.save ] && mv tests/diff.save tests/diff
[ -d tests/output.save ] && mv tests/output.save tests/output
- cd $olddir
+ ts_cd $olddir
ts_finalize_subtest
done
ts_check_test_command "$TS_CMD_COLUMN"
-cd $TS_OUTDIR
+ts_cd "$TS_OUTDIR"
$TS_CMD_COLUMN -x -c 50 $TS_SELF/input >> $TS_OUTPUT 2>&1
ts_check_test_command "$TS_CMD_COLUMN"
-cd $TS_OUTDIR
+ts_cd "$TS_OUTDIR"
printf "£\n" | LC_ALL=C $TS_CMD_COLUMN >> $TS_OUTPUT 2>&1
ts_check_test_command "$TS_CMD_COLUMN"
-cd $TS_OUTDIR
+ts_cd "$TS_OUTDIR"
$TS_CMD_COLUMN -x -c 50 $TS_SELF/input \
$TS_SELF/input \
ts_check_test_command "$TS_CMD_COLUMN"
-cd $TS_OUTDIR
+ts_cd "$TS_OUTDIR"
$TS_CMD_COLUMN -s 2 -t $TS_SELF/input >> $TS_OUTPUT 2>&1
done
fi
-cd $IMAGE_SRC
+ts_cd "$IMAGE_SRC"
ts_log "list checksums from original data"
find -type f -exec md5sum {} \; | sort >> $TS_OUTPUT
$TS_CMD_MKCRAMFS -n $LABEL $IMAGE_SRC $IMAGE_PATH 2>&1 >> $TS_OUTPUT
[ -s "$IMAGE_PATH" ] || ts_die "Cannot create $IMAGE_PATH"
-cd $TS_OUTDIR
+ts_cd "$TS_OUTDIR"
ts_log "count MD5 from the image"
md5sum $IMAGE_NAME 2>&1 | sort >> $TS_OUTPUT
# check it
ts_is_mounted $DEVICE || ts_die "Cannot find $DEVICE in /proc/mounts" $DEVICE
-cd $TS_MOUNTPOINT
+ts_cd "$TS_MOUNTPOINT"
ts_log "list the image"
export TZ='GMT-1'
find . -type f -exec md5sum {} \; | sort >> $TS_OUTPUT
echo >> $TS_OUTPUT
-cd $ORIGPWD
+ts_cd "$ORIGPWD"
ts_log "umount the image"
$TS_CMD_UMOUNT $DEVICE
ts_check_test_command "$TS_CMD_NAMEI"
-cd $TS_OUTDIR
+ts_cd "$TS_OUTDIR"
mkdir -p namei1/namei2
touch namei1/namei2/a namei1/namei2/b