[gnome-js-common] Tests: run on an arbitrary number of directories provided on the commandline.



commit 867a78c963f384ee4f4d813fb6ad8a71bebb0c3f
Author: Tim Horton <hortont424 gmail com>
Date:   Wed May 27 04:13:30 2009 -0400

    Tests: run on an arbitrary number of directories provided on the commandline.
---
 tests/run-tests.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/tests/run-tests.c b/tests/run-tests.c
index daf67fa..bc37ea9 100644
--- a/tests/run-tests.c
+++ b/tests/run-tests.c
@@ -89,10 +89,13 @@ int main(int argc, char ** argv)
 	
 	if(argc == 1)
 		run_tests(".");
-	else if(argc == 2)
-		run_tests(argv[1]);
 	else
-		printf("Doin' it wrong.\n");
+	{
+		int i;
+		
+		for(i = 1; i < argc; i++)
+			run_tests(argv[i]);
+	}
 	
 	return 0;
 }



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