mirror of
https://github.com/reactos/reactos.git
synced 2024-11-09 16:20:37 +00:00
b655fc4f5e
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
43 lines
846 B
Batchfile
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
|