reactos/rostests/win32/cmd/script_testsuite/run.cmd
Colin Finck b655fc4f5e Add a testing suite for CMD based on CMD scripts.
Of course, ReactOS' cmd doesn't work at all with the framework at the moment :-)

Some tests were taken from "seta_test.cmd" by Royce. (see file headers)

svn path=/trunk/; revision=33560
2008-05-17 20:01:21 +00:00

43 lines
846 B
Batchfile

::
:: PROJECT: ReactOS CMD Testing Suite
:: LICENSE: GPL v2 or any later version
:: FILE: run.cmd
:: PURPOSE: Runs the testing scripts
:: COPYRIGHT: Copyright 2008 Colin Finck <mail@colinfinck.de>
::
@echo off
cls
echo ReactOS CMD Testing Suite
echo ==========================
echo.
:: Preparations
set failed_tests=0
set successful_tests=0
set test_count=0
if exist "temp\." (
rmdir /s /q "temp"
)
mkdir "temp"
:: Run the tests
call :_runtest at
call :_runtest environment
call :_runtest if
call :_runtest redirect
call :_runtest set
:: Print the summary and clean up
echo Executed %test_count% tests, %successful_tests% successful, %failed_tests% failed
rmdir /s /q "temp"
goto :EOF
:: Functions
:_runtest
type "tests\%~1.cmd" > "temp\%~1.cmd"
type "lib\testlib.cmd" >> "temp\%~1.cmd"
call "temp\%~1.cmd"
goto :EOF