diff options
Diffstat (limited to 'tests/exec_test.cmd')
-rwxr-xr-x | tests/exec_test.cmd | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/exec_test.cmd b/tests/exec_test.cmd new file mode 100755 index 0000000..25d6ea4 --- /dev/null +++ b/tests/exec_test.cmd @@ -0,0 +1,20 @@ +@echo off + +set BINARY=%1 +set TITLE=%2 +set PLATFORM=%3 + +rem Set path so we find the sqlite3xx.dll (don't copy it around! linker paths are absolute!) +set PATH=..\src;%PATH% + +%BINARY% >%BINARY.RES +if ERRORLEVEL == 1 goto :ERROR +echo %BINARY%: %TITLE% .. OK +goto END + +:ERROR +echo %BINARY%: %TITLE% .. ERROR +:END + +rem TODO: find a way to do this with things provided by the system +rem diff $BINARY.MUST $BINARY.RES > $BINARY.DIFF && printf "OK\n" || printf "ERROR\n" |