Skip to content

Commit

Permalink
change: update and unlock ltp test cases
Browse files Browse the repository at this point in the history
Use the version corresponding "runtest/fs" and unlock some test cases.

Signed-off-by: Shuoran Liu <[email protected]>
  • Loading branch information
shuoranliu committed Aug 10, 2021
1 parent d49f9b5 commit e404b09
Showing 1 changed file with 21 additions and 18 deletions.
39 changes: 21 additions & 18 deletions docker/ltp/runtest/fs
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@ gf27 growfiles -W gf27 -b -D 0 -w -g 8b -C 1 -b -i 1000 -u -f gfsparse-1-$$ -d $
gf28 growfiles -W gf28 -b -D 0 -w -g 16b -C 1 -b -i 1000 -u -f gfsparse-2-$$ -d $TMPDIR
gf29 growfiles -W gf29 -b -D 0 -r 1-4096 -R 0-33554432 -i 0 -L 60 -C 1 -u -f gfsparse-3-$$ -d $TMPDIR
gf30 growfiles -W gf30 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -o O_RDWR,O_CREAT,O_SYNC -g 20480 -T 10 -t 20480 -f gf-sync-$$ -d $TMPDIR
#rwtest01 export LTPROOT; rwtest -N rwtest01 -c -q -i 60s -f sync 10%25000:$TMPDIR/rw-sync-$$
#rwtest02 export LTPROOT; rwtest -N rwtest02 -c -q -i 60s -f buffered 10%25000:$TMPDIR/rw-buffered-$$
#rwtest03 export LTPROOT; rwtest -N rwtest03 -c -q -i 60s -n 2 -f buffered -s mmread,mmwrite -m random -Dv 10%25000:$TMPDIR/mm-buff-$$
#rwtest04 export LTPROOT; rwtest -N rwtest04 -c -q -i 60s -n 2 -f sync -s mmread,mmwrite -m random -Dv 10%25000:$TMPDIR/mm-sync-$$
#rwtest05 export LTPROOT; rwtest -N rwtest05 -c -q -i 50 -T 64b 500b:$TMPDIR/rwtest01%f
rwtest01 export LTPROOT; rwtest -N rwtest01 -c -q -i 60s -f sync 10%25000:$TMPDIR/rw-sync-$$
rwtest02 export LTPROOT; rwtest -N rwtest02 -c -q -i 60s -f buffered 10%25000:$TMPDIR/rw-buffered-$$
rwtest03 export LTPROOT; rwtest -N rwtest03 -c -q -i 60s -n 2 -f buffered -s mmread,mmwrite -m random -Dv 10%25000:$TMPDIR/mm-buff-$$
rwtest04 export LTPROOT; rwtest -N rwtest04 -c -q -i 60s -n 2 -f sync -s mmread,mmwrite -m random -Dv 10%25000:$TMPDIR/mm-sync-$$
rwtest05 export LTPROOT; rwtest -N rwtest05 -c -q -i 50 -T 64b 500b:$TMPDIR/rwtest01%f

#must be run as root
#iogen01 iogen -i 120s -s read,write 500b:doio.f1.$$ 1000b:doio.f2.$$ | doio -akv -n 2
iogen01 export LTPROOT; rwtest -N iogen01 -i 120s -s read,write -Da -Dv -n 2 500b:$TMPDIR/doio.f1.$$ 1000b:$TMPDIR/doio.f2.$$

fs_inod01 fs_inod $TMPDIR 10 10 10
linker01 linktest.sh 1000 1000
linker01 linktest.sh
openfile01 openfile -f10 -t10
inode01 inode01
inode02 inode02
Expand All @@ -49,14 +49,14 @@ stream02 stream02
stream03 stream03
stream04 stream04
stream05 stream05
#ftest01 ftest01
#ftest02 ftest02
#ftest03 ftest03
#ftest04 ftest04
#ftest05 ftest05
#ftest06 ftest06
#ftest07 ftest07
#ftest08 ftest08
ftest01 ftest01
ftest02 ftest02
ftest03 ftest03
ftest04 ftest04
ftest05 ftest05
ftest06 ftest06
ftest07 ftest07
ftest08 ftest08

lftest01 lftest 100
writetest01 writetest
Expand All @@ -66,12 +66,12 @@ fs_di fs_di -d $TMPDIR

# Read every file in /proc. Not likely to crash, but does enough
# to disturb the kernel. A good kernel latency killer too.
# Was not sure why it should reside in runtest/crashme and won´t get tested ever
# Was not sure why it should reside in runtest/crashme and won't get tested ever
#proc01 proc01 -m 128

#read_all_dev read_all -d /dev -p -q -r 10
#read_all_proc read_all -d /proc -q -r 10
#read_all_sys read_all -d /sys -q -r 10 -e /sys/power/wakeup_count
#read_all_dev read_all -d /dev -p -q -r 3
#read_all_proc read_all -d /proc -q -r 3
#read_all_sys read_all -d /sys -q -r 3

#Run the File System Race Condition Check tests as well
fs_racer fs_racer.sh -t 5
Expand All @@ -82,3 +82,6 @@ fs_racer fs_racer.sh -t 5
#isofs isofs.sh

#fs_fill fs_fill

#binfmt_misc01 binfmt_misc01.sh
#binfmt_misc02 binfmt_misc02.sh

0 comments on commit e404b09

Please sign in to comment.