aboutsummaryrefslogtreecommitdiff
path: root/test.bat
diff options
context:
space:
mode:
Diffstat (limited to 'test.bat')
-rw-r--r--test.bat48
1 files changed, 48 insertions, 0 deletions
diff --git a/test.bat b/test.bat
new file mode 100644
index 0000000..9c72b2d
--- /dev/null
+++ b/test.bat
@@ -0,0 +1,48 @@
+@echo off
+rem file : 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)"
+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