[PATCH 4/5] validation: add clean command

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

 



Add command to clean the output files up post working.

Signed-off-by: Ben Dooks <ben.dooks@xxxxxxxxxxxxxxx>
---
 validation/test-suite | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/validation/test-suite b/validation/test-suite
index 5e10942..c5f726f 100755
--- a/validation/test-suite
+++ b/validation/test-suite
@@ -157,6 +157,7 @@ echo "Usage: $prog_name [command] [command arguments]"
 echo
 echo "commands:"
 echo "    none                       runs the whole test suite"
+echo "	  clean			     clean all output files"
 echo "    single file                runs the test in 'file'"
 echo "    format file [name [cmd]]   helps writing a new test case using cmd"
 echo
@@ -372,6 +373,16 @@ arg_file()
 case "$1" in
 	'')
 		do_test_suite
+		;;
+	clean)
+		rm *.output.diff
+		rm *.output.got
+		rm *.output.expected
+		rm *.error.diff
+		rm *.error.got
+		rm *.error.expected
+
+
 		;;
 	single)
 		arg_file "$2"
-- 
2.19.1




[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