-
Notifications
You must be signed in to change notification settings - Fork 0
/
optotest2.bat
37 lines (33 loc) · 899 Bytes
/
optotest2.bat
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
@echo off
rem
rem -- This batch automatically tests ccsc so that fatal bugs can be found more easily.
rem
set FAIL="bat\failed2.tmp"
pushd %0\..
cls
echo ---Making ccsc.hs---
stack build :ccsc --copy-bins --local-bin-path .
echo ---Finished---
echo.
call bat\setlogname optoresult
type nul > %LOG%
if exist %FAIL% del %FAIL%
for /F "usebackq eol=; delims=" %%i in (`type bat\O24list.txt`) do ( call :tester -C24 PCS NL O24test %%i )
call bat\jigo optoresult
pause
exit
rem #$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$
rem #$#$#$#$#$#$# MAIN THINGS END HERE $#$#$#$#$#$#$
rem #$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$
rem -C48 CCS BF_c C48test %%i
:tester
setlocal
set option=%1
set frm=%2
set to=%3
set tmp=%4
set name=%5
set num=%6
call bat\compile examples2 ccsc %option% -fincdecmerge __%frm%\%name%__%frm%.txt %tmp%%num% __%to%\%name%__%to%.txt
endlocal
exit /b