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
34 _require_scratch_nocheck
36 # Remove all files from previous tests
39 lowerdir=$OVL_BASE_SCRATCH_MNT/$OVL_LOWER
44 echo "Silence is golden"
46 d_low=$lowerdir/fsstress
47 d_top=$SCRATCH_MNT/fsstress
48 mkdir -p $d_low $d_top
50 echo $FSSTRESS_PROG -s 42 -d $d_low -p 4 -n 1000 -l100 -v > $seqres.full.1
51 $FSSTRESS_PROG -s 42 -d $d_low -p 4 -n 1000 -l100 -v >> $seqres.full.1 2>&1 &
53 echo $FSSTRESS_PROG -s 42 -d $d_top -p 4 -n 1000 -l100 -v > $seqres.full.2
54 $FSSTRESS_PROG -s 42 -d $d_top -p 4 -n 1000 -l100 -v >> $seqres.full.2 2>&1 &
58 echo "--------------------------------------" >>$seqres.full.1
59 echo "fsstress on lower directory returned $? - see $seqres.full.1"
60 echo "--------------------------------------" >>$seqres.full.1
65 echo "--------------------------------------" >>$seqres.full.2
66 echo "fsstress on overlay directory returned $? - see $seqres.full.2"
67 echo "--------------------------------------" >>$seqres.full.2
71 cat $seqres.full.1 $seqres.full.2 > $seqres.full
72 rm $seqres.full.1 $seqres.full.2
74 if [ "$ret" -eq 1 ]; then