summaryrefslogtreecommitdiff
path: root/BCT/Test/build.bat
blob: d4808ac8bee16c97c2bacf91304c1870d8611f1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
@echo off
setlocal

set BCTDIR=..\..\Binaries
set BEXE=%BCTDIR%\BytecodeTranslator.exe
set TESTDIR=Binaries
set TESTEXE=%TESTDIR%\BCTStmtTest.exe

for %%f in (%TESTEXE%) do (
  echo -------------------- %%f --------------------
  call Devenv.exe MySolution.sln /build Release

)

@echo off
rem Usage: runtest.bat <dir>
if "%1" == "" goto noDirSpecified
if not exist %1\nul goto noDirExists
echo ----- Running regression test %1
pushd %1
if not exist runtest.bat goto noRunTest
call Devenv.exe %1.sln /build Debug 

:passTest
echo Succeeded
goto end

:noDirSpecified
echo runtest: Error: Syntax: runtest testDirectory [ additionalTestArguments ... ]
goto errorEnd

:noDirExists
echo runtest: Error: There is no test directory %1
goto errorEnd

:noRunTest
echo runtest: Error: no runtest.bat found in test directory %1
goto errorEnd

:errorEnd
popd
exit /b 1

:end
popd
exit /b 0