diff options
author | Micah Anderson <micah@riseup.net> | 2014-08-11 14:04:41 -0400 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2014-08-11 14:04:41 -0400 |
commit | 94cc35faeb6248d75841a5f47a41a266086b4d16 (patch) | |
tree | adef88a73becc807b0485ddf1b7670865b8e680f /builds/msvc/vs2013/test/test.runner.bat | |
parent | 2e59f9740a29439df7c7a56cf0ae83dec3081d31 (diff) |
initial import of upstream sourcesupstream/latestupstream/0.6.1
Diffstat (limited to 'builds/msvc/vs2013/test/test.runner.bat')
-rw-r--r-- | builds/msvc/vs2013/test/test.runner.bat | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/builds/msvc/vs2013/test/test.runner.bat b/builds/msvc/vs2013/test/test.runner.bat deleted file mode 100644 index cd7e791..0000000 --- a/builds/msvc/vs2013/test/test.runner.bat +++ /dev/null @@ -1,78 +0,0 @@ -REM WORK IN PROGRESS - -@ECHO OFF - -if "%1" == "" ( - echo "Usage: wintest.bat <DebugDLL | ReleaseDLL | DebugLIB | ReleaseLIB | DebugLTCG | DebugLTCG" - goto :END -) - -if "%2" == "x64" (SET ARCH=x64) else (SET ARCH=Win32) -SET CFLAGS=/nologo /DTEST_SRCDIR=\".\" /I..\..\src\libsodium\include\sodium /I..\..\src\libsodium\include /I..\quirks -SET LDFLAGS=/link /LTCG advapi32.lib ..\..\Build\%1\%ARCH%\libsodium.lib - -if not "%3" == "" ( - CD %3 -) - -if not exist sodium_version.c ( - if not exist sodium_version.c ( - echo "Are you on the right path?" %CD% - goto :END - ) -) - -if "%1" == "DebugDLL" ( goto :DebugDLL ) -if "%1" == "ReleaseDLL" ( goto :ReleaseDLL ) - -if "%1" == "DebugLIB" ( goto :DebugLIB ) -if "%1" == "ReleaseLIB" ( goto :ReleaseLIB ) - -if "%1" == "DebugLTCG" ( goto :DebugLTCG ) -if "%1" == "ReleaseLTCG" ( goto :ReleaseLTCG ) - -echo "Invalid build type" -goto :END - -:DebugDLL - SET CFLAGS=%CFLAGS% /GS /MDd /Od - SET PATH=..\..\Build\%1\%ARCH%;%PATH% - goto :COMPILE -:ReleaseDLL - SET CFLAGS=%CFLAGS% /MD /Ox - SET PATH=..\..\Build\%1\%ARCH%;%PATH% - goto :COMPILE - -:DebugLIB - SET CFLAGS=%CFLAGS% /GS /MTd /Od /DSODIUM_STATIC - goto :COMPILE -:ReleaseLIB - SET CFLAGS=%CFLAGS% /MT /Ox /DSODIUM_STATIC - goto :COMPILE - -:DebugLTCG - SET CFLAGS=%CFLAGS% /LTCG /GS /MTd /Od /DSODIUM_STATIC - goto :COMPILE -:ReleaseLTCG - SET CFLAGS=%CFLAGS% /LTCG /MT /Ox /DSODIUM_STATIC - goto :COMPILE - -:COMPILE -echo Running the test suite: -FOR %%f in (*.c) DO ( - cl %CFLAGS% %%f %LDFLAGS% /errorReport:prompt /OUT:%%f.exe > NUL 2>&1 - if not exist %%f.exe ( - echo %%f compile failed - goto :END - ) - %%f.exe - if errorlevel 1 ( - echo %%f failed - ) else ( - echo %%f ok - ) -) -REM Remove temporary files -del *.exe *.obj *.res *.exp *.pdb - -:END |