2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2016 Google, Inc. All Rights Reserved.
7 # Run fsstress on lower dir and top dir at the same time
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
15 status=1 # failure is the default!
16 trap "_cleanup; exit \$status" 0 1 2 3 15
24 # get standard environment, filters and checks
28 # remove previous $seqres.full before test
31 # real QA test starts here
33 _require_scratch_nocheck
35 # Remove all files from previous tests
38 lowerdir=$OVL_BASE_SCRATCH_MNT/$OVL_LOWER
43 echo "Silence is golden"
45 d_low=$lowerdir/fsstress
46 d_top=$SCRATCH_MNT/fsstress
47 mkdir -p $d_low $d_top
49 echo $FSSTRESS_PROG -s 42 -d $d_low -p 4 -n 1000 -l100 -v > $seqres.full.1
50 $FSSTRESS_PROG -s 42 -d $d_low -p 4 -n 1000 -l100 -v >> $seqres.full.1 2>&1 &
52 echo $FSSTRESS_PROG -s 42 -d $d_top -p 4 -n 1000 -l100 -v > $seqres.full.2
53 $FSSTRESS_PROG -s 42 -d $d_top -p 4 -n 1000 -l100 -v >> $seqres.full.2 2>&1 &
57 echo "--------------------------------------" >>$seqres.full.1
58 echo "fsstress on lower directory returned $? - see $seqres.full.1"
59 echo "--------------------------------------" >>$seqres.full.1
64 echo "--------------------------------------" >>$seqres.full.2
65 echo "fsstress on overlay directory returned $? - see $seqres.full.2"
66 echo "--------------------------------------" >>$seqres.full.2
70 cat $seqres.full.1 $seqres.full.2 > $seqres.full
71 rm $seqres.full.1 $seqres.full.2
73 if [ "$ret" -eq 1 ]; then