-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* a not satisfying state * a not satisfying state * bullseye build interim (not working?) * bullseye build interim (not working?) * bullseye build, run & md * minor improvements
- Loading branch information
Showing
23 changed files
with
434 additions
and
259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,5 +87,5 @@ transitions_*.md | |
|
||
.obsidian | ||
|
||
!_cov*.txt | ||
!*/bullseye/_*.* | ||
reports |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
#include <SYS/IL.h> | ||
#include <cstdio> | ||
#include <iostream> | ||
using std::cout, std::endl; | ||
#include <iomanip> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@echo off | ||
if "%_me%" == "" exit /b 1 | ||
rem ======================================================================== | ||
rem Bullseye coverage: build step | ||
rem ======================================================================== | ||
|
||
SETLOCAL | ||
call cov01 -q %1 | ||
|
||
:next | ||
shift | ||
if "%1"=="" goto end | ||
echo -- %1 | ||
call %vsCall% /t:%1 >> %buildLog% 2>&1 | ||
if %errorlevel% NEQ 0 ( | ||
echo - build error | ||
exit /b 1 | ||
) | ||
if not exist %exeDir%\%1.exe ( | ||
echo - exe not found | ||
exit /b 1 | ||
) | ||
goto next | ||
:end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
@echo off | ||
if "%_me%" == "" exit /b 1 | ||
rem ======================================================================== | ||
rem Bullseye coverage: base directories | ||
rem ======================================================================== | ||
cd /d %~dp0 | ||
set myDir=%cd% | ||
cd .. | ||
set makeDir=%cd% | ||
cd .. | ||
set dstwDir=%cd% | ||
|
||
set reportsDir=%dstwDir%\reports | ||
|
||
cd %myDir% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
@echo off | ||
if "%_me%" == "" exit /b 1 | ||
rem ======================================================================== | ||
rem Bullseye coverage: reporting | ||
rem ======================================================================== | ||
|
||
if exist %testReport% ( | ||
echo - test errors | ||
cat %testReport% | ||
exit /b 1 | ||
) | ||
|
||
if %_update% == 1 exit /b 0 | ||
|
||
set covMin=%minFunctionCov%,%minDecisionCov% | ||
|
||
call covselect -qd | ||
call covselect -q --import %excludeFile% | ||
|
||
if %_genhtml% == 1 ( | ||
echo - html | ||
call covhtml -q --allNum %covHtmlDir% | ||
) | ||
|
||
echo - report | ||
|
||
echo ### %_me% %DATE% %TIME% > %covLog% | ||
echo ``` >> %covLog% | ||
cd %dstwDir% | ||
call covdir -q --by-name --srcdir . >> %covLog% | ||
|
||
set _result=failed | ||
call covdir -q --checkmin %covMin% | ||
if %errorlevel% == 0 set _result=passed | ||
echo covmin %covMin% %_result% >> %covLog% | ||
echo ``` >> %covLog% | ||
cat %covLog% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
@echo off | ||
if "%_me%" == "" exit /b 1 | ||
rem ======================================================================== | ||
rem Bullseye coverage: build and run step 1 (requires VS shell) | ||
rem ======================================================================== | ||
rem setup | ||
rem ======================================================================== | ||
rem minmal coverage setup | ||
rem - minimal function coverage % | ||
set minFunctionCov=100 | ||
rem - minimal decision coverage % | ||
set minDecisionCov=99 | ||
|
||
call %~dp0_covdirs.cmd | ||
|
||
set premakeFile=%makeDir%\premake5_vs.lua | ||
|
||
set exeDir=%makeDir%\exe | ||
set vsSolution=%makeDir%\dstw.sln | ||
set vsConfig=ci | ||
set myReportsDir=%reportsDir%\%_me% | ||
set buildLog=%myReportsDir%\build_.txt | ||
set covLog=%myReportsDir%\coverage.txt | ||
set covHtmlDir=%myReportsDir%\html | ||
set testReport=%myReportsDir%\test_errors.txt | ||
|
||
set covfile=%reportsDir%\%_me%.cov | ||
set covcopt=--srcdir %dstwDir% | ||
set excludeFile=%myDir%\_covexclude.txt | ||
set optsTxt=%myDir%\_covoptions.txt | ||
|
||
set vsCall=msbuild %vsSolution% /p:Configuration=%vsConfig% | ||
|
||
rem ======================================================================== | ||
rem CLI options | ||
rem ======================================================================== | ||
set _vsversion=vs2019 | ||
set _premake=0 | ||
set _cleanbuild=0 | ||
set _cleanreports=0 | ||
set _genhtml=0 | ||
set _update=0 | ||
|
||
for %%p in (%*) do ( | ||
if "%%p" == "-h" ( | ||
echo Usage: %_me%.cmd [options] | ||
cat %optsTxt% | ||
exit /b 1 | ||
) else if "%%p" == "-c" ( | ||
set _cleanbuild=1 | ||
) else if "%%p" == "-r" ( | ||
set _cleanreports=1 | ||
) else if "%%p" == "-H" ( | ||
set _genhtml=1 | ||
) else if "%%p" == "-u" ( | ||
set _update=1 | ||
) else if "%%p" == "-p" ( | ||
set _premake=1 | ||
) else ( | ||
set _vsversion=%%p | ||
) | ||
) | ||
|
||
rem ======================================================================== | ||
rem common 1st steps | ||
rem ======================================================================== | ||
if not exist %vsSolution% set _premake=1 | ||
if not exist %covfile% set _cleanbuild=1 | ||
|
||
if %_cleanreports% == 1 ( | ||
echo - clean reports | ||
if exist %myReportsDir% rm -rf %myReportsDir% | ||
) | ||
|
||
if %_premake% == 1 ( | ||
echo - premake for %_vsversion% | ||
call premake5 --file=%premakeFile% %_vsversion% | ||
set _cleanbuild=1 | ||
) | ||
|
||
if %_cleanbuild% == 1 ( | ||
echo - clean | ||
if exist %covfile% rm -f %covfile% | ||
call %vsCall% /t:clean >NUL | ||
) | ||
|
||
if not exist %myReportsDir% mkdir %myReportsDir% | ||
|
||
echo %DATE% %TIME% > %buildLog% | ||
|
||
echo - build | ||
call cov01 -q --off | ||
echo -- cpputest | ||
call %vsCall% /t:cpputest >> %buildLog% 2>&1 | ||
|
||
exit /b 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@echo off | ||
if "%_me%" == "" exit /b 1 | ||
if "%tmpFile%" == "" exit /b 1 | ||
rem ======================================================================== | ||
rem system tests: run app in background | ||
rem ======================================================================== | ||
echo running > %tmpFile% | ||
call %exeDir%\dstw_run.exe loop >NUL | ||
rm -f %tmpFile% | ||
exit 0 |
Oops, something went wrong.