aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2013-09-28 21:44:11 -0400
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2013-12-03 13:11:10 -0500
commit847bfd254399eebc8752d39f43628e6c1baac076 (patch)
treef03cc07f326cd1f04703d1b5598ababb45030422
parentc87b9c601ac862b1fa41a9d759a3c05711a8391d (diff)
rcutorture: Add datestamp argument to kvm.sh
Allow datestamp to be specified to allow tests to be broken up and run in parallel. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Greg KH <gregkh@linuxfoundation.org>
-rw-r--r--tools/testing/selftests/rcutorture/bin/kvm.sh16
1 files changed, 11 insertions, 5 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/kvm.sh b/tools/testing/selftests/rcutorture/bin/kvm.sh
index 46c75ee2f528..9fcceed81079 100644
--- a/tools/testing/selftests/rcutorture/bin/kvm.sh
+++ b/tools/testing/selftests/rcutorture/bin/kvm.sh
@@ -50,11 +50,13 @@ configs=" sysidleY.2013.06.19a \
50 PT2-NH \ 50 PT2-NH \
51 NT1-nh \ 51 NT1-nh \
52 NT3-NH" 52 NT3-NH"
53ds=`date +%Y.%m.%d-%H:%M:%S`
53 54
54usage () { 55usage () {
55 echo "Usage: $scriptname optional arguments:" 56 echo "Usage: $scriptname optional arguments:"
56 echo " --builddir absolute-pathname" 57 echo " --builddir absolute-pathname"
57 echo " --configs \"config-file list\"" 58 echo " --configs \"config-file list\""
59 echo " --datestamp string"
58 echo " --duration minutes" 60 echo " --duration minutes"
59 echo " --rcu-kvm absolute-pathname" 61 echo " --rcu-kvm absolute-pathname"
60 echo " --results absolute-pathname" 62 echo " --results absolute-pathname"
@@ -98,6 +100,11 @@ do
98 configs="$2" 100 configs="$2"
99 shift 101 shift
100 ;; 102 ;;
103 --datestamp)
104 checkarg --datestamp "(relative pathname)" "$#" "$2" '^[^/]*$' '^--'
105 ds=$2
106 shift
107 ;;
101 --duration) 108 --duration)
102 checkarg --duration "(minutes)" $# "$2" '^[0-9]*$' error 109 checkarg --duration "(minutes)" $# "$2" '^[0-9]*$' error
103 dur=$2 110 dur=$2
@@ -147,13 +154,12 @@ if test -z "$resdir"
147then 154then
148 resdir=$KVM/res 155 resdir=$KVM/res
149 mkdir $resdir || : 156 mkdir $resdir || :
150 ds=`date +%Y.%m.%d-%H:%M:%S`
151 mkdir $resdir/$ds
152 echo Datestamp: $ds
153else 157else
154 mkdir -p "$resdir" 158 mkdir -p "$resdir" || :
155 ds=""
156fi 159fi
160mkdir $resdir/$ds
161echo Datestamp: $ds
162
157pwd > $resdir/$ds/testid.txt 163pwd > $resdir/$ds/testid.txt
158if test -d .git 164if test -d .git
159then 165then