head	1.1;
branch	1.1.1;
access;
symbols
	netbsd-11-0-RC4:1.1.1.1
	netbsd-11-0-RC3:1.1.1.1
	netbsd-11-0-RC2:1.1.1.1
	netbsd-11-0-RC1:1.1.1.1
	perseant-exfatfs-base-20250801:1.1.1.1
	netbsd-11:1.1.1.1.0.28
	netbsd-11-base:1.1.1.1
	netbsd-10-1-RELEASE:1.1.1.1
	perseant-exfatfs-base-20240630:1.1.1.1
	perseant-exfatfs:1.1.1.1.0.26
	perseant-exfatfs-base:1.1.1.1
	netbsd-10-0-RELEASE:1.1.1.1
	netbsd-10-0-RC6:1.1.1.1
	netbsd-10-0-RC5:1.1.1.1
	netbsd-10-0-RC4:1.1.1.1
	netbsd-10-0-RC3:1.1.1.1
	netbsd-10-0-RC2:1.1.1.1
	thorpej-ifq:1.1.1.1.0.24
	thorpej-ifq-base:1.1.1.1
	thorpej-altq-separation:1.1.1.1.0.22
	thorpej-altq-separation-base:1.1.1.1
	netbsd-10-0-RC1:1.1.1.1
	netbsd-10:1.1.1.1.0.20
	netbsd-10-base:1.1.1.1
	bouyer-sunxi-drm:1.1.1.1.0.18
	bouyer-sunxi-drm-base:1.1.1.1
	thorpej-i2c-spi-conf2:1.1.1.1.0.16
	thorpej-i2c-spi-conf2-base:1.1.1.1
	thorpej-futex2:1.1.1.1.0.14
	thorpej-futex2-base:1.1.1.1
	thorpej-cfargs2:1.1.1.1.0.12
	thorpej-cfargs2-base:1.1.1.1
	cjep_sun2x-base1:1.1.1.1
	cjep_sun2x:1.1.1.1.0.10
	cjep_sun2x-base:1.1.1.1
	cjep_staticlib_x-base1:1.1.1.1
	cjep_staticlib_x:1.1.1.1.0.8
	cjep_staticlib_x-base:1.1.1.1
	thorpej-i2c-spi-conf:1.1.1.1.0.6
	thorpej-i2c-spi-conf-base:1.1.1.1
	thorpej-cfargs:1.1.1.1.0.4
	thorpej-cfargs-base:1.1.1.1
	thorpej-futex:1.1.1.1.0.2
	thorpej-futex-base:1.1.1.1
	libsodium-1-0-16:1.1.1.1
	LIBSODIUM:1.1.1;
locks; strict;
comment	@:: @;


1.1
date	2020.08.20.21.17.05;	author riastradh;	state Exp;
branches
	1.1.1.1;
next	;
commitid	9E4l0XBq45foBQkC;

1.1.1.1
date	2020.08.20.21.17.05;	author riastradh;	state Exp;
branches;
next	;
commitid	9E4l0XBq45foBQkC;


desc
@@



1.1
log
@Initial revision
@
text
@@@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
@


1.1.1.1
log
@libsodium 1.0.16
@
text
@@
