[PATCH] testsuite: allow extra/default options to test commands

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

 



This allow, for example, to simulate running the testsuite on a 32bit
machine or running the testsuite with some extra debugging flags.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx>
---
 validation/test-suite | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/validation/test-suite b/validation/test-suite
index e1ab1e657..f79a9023d 100755
--- a/validation/test-suite
+++ b/validation/test-suite
@@ -233,6 +233,7 @@ echo
 echo "options:"
 echo "    -a|--abort                 Abort the tests as soon as one fails."
 echo "    -q|--quiet                 Be extra quiet while running the tests."
+echo "    --args='...'               Add these options to the test command."
 echo
 echo "commands:"
 echo "    [file ...]                 Runs the test suite on the given file(s)."
@@ -545,6 +546,9 @@ while [ "$#" -gt "0" ]; do
 	-q|--quiet)
 		vquiet=1
 		;;
+	--args=*)
+		default_args="${1#--args=}";
+		;;
 
 	single|--single)
 		arg_file "$2"
-- 
2.17.1

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



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux