2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved.
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
16 status=0 # success is the default!
17 trap "_cleanup; exit \$status" 0 1 2 3 15
23 [ -n "$out" ] && rm -rf $out
26 # get standard environment, filters and checks
30 # real QA test starts here
35 out=$TEST_DIR/dirstress.$$
45 echo "*** TEST $test $args -f <count>"
46 if ! $here/src/dirstress -d $out -f $count $args >$tmp.out 2>&1
48 echo " dirstress failed"
49 echo "*** TEST $test -d $out -f $count $args" >>$seqres.full
50 cat $tmp.out >>$seqres.full
55 # dirstress doesn't check returns - this is a crash & burn test.
58 echo "!! couldn't mkdir $out"
64 _test 1 "-p 1 -n 1" $count
65 _test 2 "-p 5 -n 1" $count
66 _test 3 "-p 5 -n 5" $count