[kvm-unit-tests PATCH 4/9] run_tests.sh: allow default unittests.cfg override

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Andrew Jones <drjones@xxxxxxxxxx>
---
 run_tests.sh | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/run_tests.sh b/run_tests.sh
index 4246f1b60a733..4a9c54b0817cd 100755
--- a/run_tests.sh
+++ b/run_tests.sh
@@ -110,13 +110,14 @@ function usage()
 {
 cat <<EOF
 
-Usage: $0 [-g group] [-h] [-v] [-d]
+Usage: $0 [-g group] [-h] [-v] [-d] [-u cfg]
 
     -g: Only execute tests in the given group
     -h: Output this help text
     -v: Enables verbose mode
     -d: Dry-run only. Just output the qemu command lines
         that would be executed.
+    -u: Override the default unittests.cfg file with 'cfg'
 
 Set the environment variable QEMU=/path/to/qemu-system-ARCH to
 specify the appropriate qemu binary for ARCH-run.
@@ -125,7 +126,7 @@ EOF
 }
 
 >test.log
-while getopts "g:hvd" opt; do
+while getopts "g:hvdu:" opt; do
     case $opt in
         g)
             only_group=$OPTARG
@@ -140,6 +141,9 @@ while getopts "g:hvd" opt; do
 	d)
             echo "DRYRUN=yes" >> config.mak
             ;;
+        u)
+            config=$OPTARG
+            ;;
         *)
             exit
             ;;
-- 
2.4.3

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux