Sha256: 9509c6d8dc7bd6993326d5ea602c41e3c696beadb2b9086c87c238be462e905c

Contents?: true

Size: 1.34 KB

Versions: 26

Compression:

Stored size: 1.34 KB

Contents

@ECHO OFF

if "%1" == "" (
  echo "Usage: wintest.bat <Release | ReleaseDLL | Debug | DebugDLL"
	goto :END
)

if not exist sodium_version.c (
	CD test\default
	if not exist sodium_version.c (
		echo "Are you on the right path?" %CD%
		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 "%1" == "ReleaseDLL" ( goto :ReleaseDLL )
if "%1" == "DebugDLL"   ( goto :DebugDLL )
if "%1" == "Release"   ( goto :Release )
if "%1" == "Debug"   ( goto :Debug )
echo "Invalid build type"
goto :END
:ReleaseDLL
	SET CFLAGS=%CFLAGS% /MD /Ox 
	SET PATH=..\..\Build\%1\%ARCH%;%PATH% 
	goto :COMPILE
:Release
	SET CFLAGS=%CFLAGS% /MT /Ox /DSODIUM_STATIC /DSODIUM_EXPORT=
	goto :COMPILE
:DebugDLL
	SET CFLAGS=%CFLAGS% /GS /MDd /Od
	SET PATH=..\..\Build\%1\%ARCH%;%PATH%
	goto :COMPILE
:Debug
	SET CFLAGS=%CFLAGS% /GS /MTd /Od /DSODIUM_STATIC /DSODIUM_EXPORT=
	goto :COMPILE
:COMPILE
echo Running the test suite:
FOR %%f in (*.c) DO (
	cl %CFLAGS% %%f %LDFLAGS% /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 
:END

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
laag-libsodium-1.0.16.2 vendor/github.com/jedisct1/libsodium/test/default/wintest.bat
laag-libsodium-1.0.16.0 vendor/github.com/jedisct1/libsodium/test/default/wintest.bat
rbnacl-libsodium-1.0.16 vendor/libsodium/test/default/wintest.bat
rbnacl-libsodium-1.0.15.1 vendor/libsodium/test/default/wintest.bat
rbnacl-libsodium-1.0.15 vendor/libsodium/test/default/wintest.bat
rbnacl-libsodium-1.0.13 vendor/libsodium/test/default/wintest.bat
rbnacl-libsodium-1.0.11 vendor/libsodium/test/default/wintest.bat
rbnacl-libsodium-1.0.10 vendor/libsodium/test/default/wintest.bat
rbnacl-libsodium-1.0.9 vendor/libsodium/test/default/wintest.bat
rbnacl-libsodium-1.0.8 vendor/libsodium/test/default/wintest.bat
rbnacl-libsodium-1.0.7 vendor/libsodium/test/default/wintest.bat
rbnacl-libsodium-1.0.6 vendor/libsodium/test/default/wintest.bat
rbnacl-libsodium-1.0.5 vendor/libsodium/test/default/wintest.bat
rbnacl-libsodium-1.0.4 vendor/libsodium/test/default/wintest.bat
rbnacl-libsodium-1.0.3 vendor/libsodium/test/default/wintest.bat
rbnacl-libsodium-1.0.2 vendor/libsodium/test/default/wintest.bat
rbnacl-libsodium-1.0.1 vendor/libsodium/test/default/wintest.bat
rbnacl-libsodium-1.0.0 vendor/libsodium/test/default/wintest.bat
rbnacl-libsodium-0.7.0 vendor/libsodium/test/default/wintest.bat
rbnacl-libsodium-0.6.1 vendor/libsodium/test/default/wintest.bat