Fix run_test.bat
+echo on
+
cd test
-if errorlevel 1 exit 1
mkdir build
-if errorlevel 1 exit 1
-
cd build
-if errorlevel 1 exit 1
cmake .. ^
-GNinja ^
-DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ^
- -DCMAKE_VERBOSE_MAKEFILE=ON
-echo "CMake finished"
-if errorlevel 1 exit 1
-echo "CMake okay"
-
-ninja
-echo "Ninja finished"
-if errorlevel 1 exit 1
-echo "Ninja okay"
-
-test.exe
-echo "Test finished"
-if errorlevel 1 exit 1
-echo "Test okay"
+ -DCMAKE_BUILD_TYPE=Release ^
+ -DCMAKE_VERBOSE_MAKEFILE=ON || goto :error
+
+ninja || goto :error
+
+test.exe || goto :error
+
+exit /B 0
+
+
+:error
+echo ERROR!
+echo Command exit status: %ERRORLEVEL%
