-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved CSV generation into batch file to be invoked manually
- Loading branch information
1 parent
9b0933d
commit a8c2777
Showing
2 changed files
with
23 additions
and
9 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
GoogleTestAdapter/VsPackage.Tests.Generated/GenerateCSV.bat
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,21 @@ | ||
@echo off | ||
|
||
set BASE_DIR=%~dp0 | ||
|
||
set PICT_EXE="%BASE_DIR%pict\pict.exe" | ||
set MODEL="%BASE_DIR%GTA_Console.pictmodel" | ||
set CSV="%BASE_DIR%GTA_Console.csv" | ||
set TEMP_SEED="%BASE_DIR%seed.pictmodel" | ||
|
||
|
||
if exist %CSV% ( | ||
echo Generating test data using existing data as seed ===== | ||
mv %CSV% %TEMP_SEED% | ||
%PICT_EXE% %MODEL% -a:# -e:%TEMP_SEED% >%CSV% | ||
del %TEMP_SEED% | ||
) else ( | ||
echo Generating test data from scratch ===== | ||
%PICT_EXE% %MODEL% -a:# >%CSV% | ||
) | ||
echo ===== Generation done, target file is | ||
echo %CSV% |
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