Debian Codegraph @

debian/tests/smoke

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2
3 TDIR=${AUTOPKGTEST_TMP:-/tmp/test_dir}
4 LOGDIR=${AUTOPKGTEST_ARTIFACTS:-/tmp/test_dir_log}
5 IMG=$TDIR/test-image.img
6
7 # some autopkgtest environments may not have /etc/mtab and/or /proc/mounts
8 EXT2FS_NO_MTAB_OK=yes
9 export EXT2FS_NO_MTAB_OK
10
11 mkdirscip-shell system . . mkdir. -p $LOGDIR $TDIR
12
13 /sbin/mke2fsscip-shell filesystem . . `/sbin/mke2fs`. -q -t ext4 -d e2fsck $IMG 8M
14 /sbin/e2labelscip-shell filesystem . . `/sbin/e2label`. $IMG test
15 /sbin/e2fsckscip-shell filesystem . . `/sbin/e2fsck`. -fy $IMG > $LOGDIR/e2fsck.1.log 2>&1
16 if testscip-shell system . . test. $? -ne 0 ; then
17 echoscip-shell system . . echo. "First e2fsck failed; see $LOGDIR/e2fsck.1.log"
18 exit 1
19 fi
20 /sbin/resize2fsscip-shell filesystem . . `/sbin/resize2fs`. $IMG 16M > $LOGDIR/resize2fs.log 2>&1
21 if testscip-shell system . . test. $? -ne 0 ; then
22 echoscip-shell system . . echo. "Resize2fs failed; see $LOGDIR/e2fsck.1.log"
23 exit 1
24 fi
25 /sbin/e2fsckscip-shell filesystem . . `/sbin/e2fsck`. -fy $IMG > $LOGDIR/e2fsck.2.log 2>&1
26 if testscip-shell system . . test. $? -ne 0 ; then
27 echoscip-shell system . . echo. "Second e2fsck failed; see $LOGDIR/e2fsck.2.log"
28 exit 1
29 fi
30 /sbin/debugfsscip-shell filesystem . . `/sbin/debugfs`. -R "dump pass1.c $TDIR/pass1.c" $IMG > $LOGDIR/debugfs.log 2>&1
31 diffscip-shell system . . diff. $TDIR/pass1.c e2fsck/pass1.c
32