Skip to content
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

Symbol command-line tests #2

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions tests/cmdline/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
*.ilk
*.pdb

# custom script to build (outside of appveyor environment)
build.local.bat
4 changes: 4 additions & 0 deletions tests/dmd-32mscoff/test.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ set SLEEPY_SILENT_CRASH=1

for %%b in (32 64) do (
echo Testing %%b

rem Discard any saved config options.
call ..\..\scripts\clear_config

if exist program-%%b.sleepy del program-%%b.sleepy
call ..\..\scripts\sleepy%%b /r:program.exe /o:program-%%b.sleepy
if !ERRORLEVEL! neq 0 exit /b 1
Expand Down
4 changes: 4 additions & 0 deletions tests/dmd-64/test.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ set SLEEPY_SILENT_CRASH=1

for %%b in (64) do (
echo Testing %%b

rem Discard any saved config options.
call ..\..\scripts\clear_config
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to put this in the tests/run_tests.bat loop, so it's done before any test is run?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't want to fool with other tests that I couldn't (time constraints) run, like the alternate compilers or debuggers. If you'd like to see it there, I can put it there.


if exist program-%%b.sleepy del program-%%b.sleepy
call ..\..\scripts\sleepy%%b /r:program.exe /o:program-%%b.sleepy
if !ERRORLEVEL! neq 0 exit /b 1
Expand Down
4 changes: 4 additions & 0 deletions tests/gcc43-wine/test.bat
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ set SLEEPY_SILENT_CRASH=1

for %%b in (32 64) do for %%d in (wine mingw) do (
echo Testing %%b-%%d

rem Discard any saved config options.
call ..\..\scripts\clear_config

if exist program-%%b-%%d.sleepy del program-%%b-%%d.sleepy
call ..\..\scripts\sleepy%%b --%%d /r:program.exe /o:program-%%b-%%d.sleepy
if !ERRORLEVEL! neq 0 exit /b 1
Expand Down
4 changes: 4 additions & 0 deletions tests/gcc49-32/test.bat
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ set SLEEPY_SILENT_CRASH=1

for %%b in (32 64) do for %%d in (mingw) do (
echo Testing %%b-%%d

rem Discard any saved config options.
call ..\..\scripts\clear_config

if exist program-%%b-%%d.sleepy del program-%%b-%%d.sleepy
call ..\..\scripts\sleepy%%b --%%d /r:program.exe /o:program-%%b-%%d.sleepy
if !ERRORLEVEL! neq 0 exit /b 1
Expand Down
4 changes: 4 additions & 0 deletions tests/gcc49-64/test.bat
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ set SLEEPY_SILENT_CRASH=1

for %%b in (64) do for %%d in (mingw) do (
echo Testing %%b-%%d

rem Discard any saved config options.
call ..\..\scripts\clear_config

if exist program-%%b-%%d.sleepy del program-%%b-%%d.sleepy
call ..\..\scripts\sleepy%%b --%%d /r:program.exe /o:program-%%b-%%d.sleepy
if !ERRORLEVEL! neq 0 exit /b 1
Expand Down
4 changes: 4 additions & 0 deletions tests/msvc14/test.bat
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ set SLEEPY_SILENT_CRASH=1

for %%b in (32 64) do (
echo Testing %%b

rem Discard any saved config options.
call ..\..\scripts\clear_config

if exist program-%%b.sleepy del program-%%b.sleepy
call ..\..\scripts\sleepy%%b /r:program.exe /o:program-%%b.sleepy
if !ERRORLEVEL! neq 0 exit /b 1
Expand Down