-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Windows Line Number #401
Open
mwasplund
wants to merge
6
commits into
marcobambini:master
Choose a base branch
from
mwasplund:mwasplund/lines
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
720a918
Add soup build recipe
cd1573c
Revert "Add soup build recipe"
3d7ce27
Update to VS2022 Toolset
b0ce235
Fix peek to use next instead of current
c1ca0d1
Add windows test run_all script
b4b151b
Pass in next and next2 to the in_newline check
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
@echo off | ||
setlocal ENABLEDELAYEDEXPANSION | ||
|
||
@REM This script is intended to be used either by the CI or by a developer that | ||
@REM wants to check that no unit tests have been broken to ensure there are no | ||
@REM regressions. At the end, it reports how many tests were successful. | ||
|
||
set SCRIPT_DIR=%~dp0 | ||
set GRAVITY_BIN=%SCRIPT_DIR%/../../gravity_visualstudio/bin/cli/x64/Debug/gravity.exe | ||
set /a tests_total=0 | ||
set /a tests_success=0 | ||
set /a tests_fail=0 | ||
set /a tests_timeout=0 | ||
set /a i=1 | ||
|
||
for /f %%A in ('dir /s %SCRIPT_DIR%\*.gravity ^| find "File(s)"') do set tests_total=%%A | ||
|
||
for /f "delims=" %%A in ('dir /s /b %SCRIPT_DIR%\*.gravity') do ( | ||
set test=%%A | ||
echo "Testing !i!/%tests_total% - !test!..." | ||
"%GRAVITY_BIN%" "!test!" | ||
set res=!ERRORLEVEL! | ||
if !res! EQU 0 ( | ||
set /a tests_success+=1 | ||
echo "Success!" | ||
) else ( | ||
echo "Fail!" | ||
set /a tests_fail+=1 | ||
) | ||
set /a i+=1 | ||
) | ||
|
||
echo "Tests run successfully: %tests_success%/%tests_total%. %tests_fail% failed and %tests_timeout% timed out" | ||
|
||
set /a tests_non_success=%tests_fail%+%tests_timeout% | ||
if %tests_non_success% NEQ 0 ( | ||
exit 1 | ||
) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am unsure what the best replacement is for timeout, so I removed the timout checks for now.