diff options
author | erihel <erihel@gmail.com> | 2012-08-09 23:04:29 +0200 |
---|---|---|
committer | erihel <erihel@gmail.com> | 2012-08-09 23:04:29 +0200 |
commit | 9946459c0cd65c3b66719a2aefc42c7ab2a29c04 (patch) | |
tree | 78e68a3a434082c5f42926f907adb05db9ae24dd /lib/simpleini/test.cmd | |
parent | f1d1cdceee3ec49546ba800a1b53a2dfb9c21e11 (diff) | |
download | colobot-9946459c0cd65c3b66719a2aefc42c7ab2a29c04.tar.gz colobot-9946459c0cd65c3b66719a2aefc42c7ab2a29c04.tar.bz2 colobot-9946459c0cd65c3b66719a2aefc42c7ab2a29c04.zip |
* changed 0, NULL to nullptr
* changed profile.cpp to use SimpleIni to load config files
* added new CProfile singleton class for loading config
* added SimpleIni to lib/ dir
* added config loading tests
Diffstat (limited to 'lib/simpleini/test.cmd')
-rw-r--r-- | lib/simpleini/test.cmd | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/simpleini/test.cmd b/lib/simpleini/test.cmd new file mode 100644 index 0000000..f5d64ea --- /dev/null +++ b/lib/simpleini/test.cmd @@ -0,0 +1,24 @@ +@echo off
+
+Debug\testsi.exe -u -m -l test1-input.ini > test1-blah.ini
+fc test1-expected.ini test1-output.ini
+if errorlevel 1 goto error
+
+"Debug Unicode\testsi.exe" -u -m -l test1-input.ini > test1-blah.ini
+fc test1-expected.ini test1-output.ini
+if errorlevel 1 goto error
+
+Release\testsi.exe -u -m -l test1-input.ini > test1-blah.ini
+fc test1-expected.ini test1-output.ini
+if errorlevel 1 goto error
+
+"Release Unicode\testsi.exe" -u -m -l test1-input.ini > test1-blah.ini
+fc test1-expected.ini test1-output.ini
+if errorlevel 1 goto error
+
+exit /b 0
+
+:error
+echo Failed during test run. Output file doesn't match expected file.
+pause
+exit /b 1
|