aboutsummaryrefslogtreecommitdiff
path: root/common/test.bat
diff options
context:
space:
mode:
Diffstat (limited to 'common/test.bat')
-rw-r--r--common/test.bat48
1 files changed, 48 insertions, 0 deletions
diff --git a/common/test.bat b/common/test.bat
new file mode 100644
index 0000000..678e678
--- /dev/null
+++ b/common/test.bat
@@ -0,0 +1,48 @@
+@echo off
+rem file : common/test.bat
+rem author : Boris Kolpackov <boris@codesynthesis.com>
+rem copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC
+rem license : GNU GPL v2; see accompanying LICENSE file
+
+setlocal
+
+set "tests=__path__(dirs) __path__(thread_dirs)"
+set "confs=__path__(configurations)"
+set "topdir=__path__(topdir)\.."
+
+goto start
+
+:run_test
+ cd %1
+
+ if exist %2\driver.exe (
+ echo %1\%2
+ call %topdir%\tester.bat tracer %2
+ if errorlevel 1 (
+ set "failed=%failed% %1\%2"
+ )
+ )
+
+ cd ..
+goto :eof
+
+:start
+
+for %%t in (%tests%) do (
+ for %%c in (%confs%) do (
+ call :run_test %%t %%c
+ )
+)
+
+if not "_%failed%_" == "__" goto error
+
+echo ALL TESTS PASSED
+goto end
+
+:error
+for %%t in (%failed%) do echo FAILED: %%t
+exit /b 1
+goto end
+
+:end
+endlocal