Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f43f8f73 authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

rcutorture: Record results from repeated runs of the same test scenario



Repeatedly running a given test, for example, by repeating the name
as in "--configs "TREE08 TREE08 TREE08" records the results only of
the last run of this test.  This is because the earlier results are
overwritten by the later results.

This commit therefore checks for earlier results, using numbered
file extensions to distinguish multiple runs.  The earlier example
would therefore create directories TREE01, TREE01.2, and TREE01.3.

Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Greg KH <gregkh@linuxfoundation.org>
parent e1362651
Loading
Loading
Loading
Loading
+15 −1
Original line number Original line Diff line number Diff line
@@ -204,8 +204,22 @@ fi


for CF in $configs
for CF in $configs
do
do
	# Running TREE01 multiple times creates TREE01, TREE01.2, TREE01.3, ...
	rd=$resdir/$ds/$CF
	rd=$resdir/$ds/$CF
	mkdir $rd || :
	if test -d "${rd}"
	then
		n="`ls -d "${rd}"* | grep '\.[0-9]\+$' |
			sed -e 's/^.*\.\([0-9]\+\)/\1/' |
			sort -k1n | tail -1`"
		if test -z "$n"
		then
			rd="${rd}.2"
		else
			n="`expr $n + 1`"
			rd="${rd}.${n}"
		fi
	fi
	mkdir "${rd}"
	echo Results directory: $rd
	echo Results directory: $rd
	kvm-test-1-rcu.sh $CONFIGFRAG/$kversion/$CF $builddir $rd $dur "-nographic $RCU_QEMU_ARG" "rcutorture.test_no_idle_hz=1 rcutorture.verbose=1 $RCU_BOOTARGS"
	kvm-test-1-rcu.sh $CONFIGFRAG/$kversion/$CF $builddir $rd $dur "-nographic $RCU_QEMU_ARG" "rcutorture.test_no_idle_hz=1 rcutorture.verbose=1 $RCU_BOOTARGS"
done
done