diff options
author | Micah Anderson <micah@riseup.net> | 2014-08-11 13:49:21 -0400 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2014-08-11 13:49:21 -0400 |
commit | 2e59f9740a29439df7c7a56cf0ae83dec3081d31 (patch) | |
tree | d5e7c4e74c9a0f1ea999327d2e68b1dd27be00e0 /builds/msvc/vs2012/test |
initial import of debian version from mentors0.6.1
Diffstat (limited to 'builds/msvc/vs2012/test')
-rw-r--r-- | builds/msvc/vs2012/test/test.props | 43 | ||||
-rw-r--r-- | builds/msvc/vs2012/test/test.runner.bat | 78 | ||||
-rw-r--r-- | builds/msvc/vs2012/test/test.vcxproj | 214 | ||||
-rw-r--r-- | builds/msvc/vs2012/test/test.vcxproj.filters | 162 |
4 files changed, 497 insertions, 0 deletions
diff --git a/builds/msvc/vs2012/test/test.props b/builds/msvc/vs2012/test/test.props new file mode 100644 index 0000000..de8bd4e --- /dev/null +++ b/builds/msvc/vs2012/test/test.props @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + + <PropertyGroup Label="Globals"> + <_PropertySheetDisplayName>Libsodium Test Common Settings</_PropertySheetDisplayName> + <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> + <RunCodeAnalysis>false</RunCodeAnalysis> + </PropertyGroup> + + <!-- Configuration --> + + <ItemDefinitionGroup> + <ClCompile> + <AdditionalIncludeDirectories>$(RepoRoot)test\default\;$(RepoRoot)test\quirks\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <EnablePREfast>false</EnablePREfast> + <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <!--<PreprocessorDefinitions>NATIVE_LITTLE_ENDIAN;%(PreprocessorDefinitions)</PreprocessorDefinitions>--> + </ClCompile> + </ItemDefinitionGroup> + + <!-- Dependencies --> + + <ImportGroup Label="PropertySheets"> + <Import Project="$(SolutionDir)libsodium.import.props" /> + </ImportGroup> + + <PropertyGroup Condition="'$(DefaultLinkage)' == 'dynamic'"> + <Linkage-libsodium>dynamic</Linkage-libsodium> + </PropertyGroup> + <PropertyGroup Condition="'$(DefaultLinkage)' == 'ltcg'"> + <Linkage-libsodium>ltcg</Linkage-libsodium> + </PropertyGroup> + <PropertyGroup Condition="'$(DefaultLinkage)' == 'static'"> + <Linkage-libsodium>static</Linkage-libsodium> + </PropertyGroup> + + <!-- Messages --> + + <Target Name="LinkageInfo" BeforeTargets="PrepareForBuild"> + <Message Text="Linkage-libsodium : $(Linkage-libsodium)" Importance="high"/> + </Target> + +</Project>
\ No newline at end of file diff --git a/builds/msvc/vs2012/test/test.runner.bat b/builds/msvc/vs2012/test/test.runner.bat new file mode 100644 index 0000000..cd7e791 --- /dev/null +++ b/builds/msvc/vs2012/test/test.runner.bat @@ -0,0 +1,78 @@ +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 diff --git a/builds/msvc/vs2012/test/test.vcxproj b/builds/msvc/vs2012/test/test.vcxproj new file mode 100644 index 0000000..65fd4d8 --- /dev/null +++ b/builds/msvc/vs2012/test/test.vcxproj @@ -0,0 +1,214 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup Label="Globals"> + <ProjectGuid>{4EDBA07C-2F08-4C9E-805F-A4921814C117}</ProjectGuid> + <ProjectName>test</ProjectName> + <PlatformToolset>v110</PlatformToolset> + <ConfigurationType>Application</ConfigurationType> + </PropertyGroup> + <ItemGroup Label="ProjectConfigurations"> + <ProjectConfiguration Include="DebugDEXE|Win32"> + <Configuration>DebugDEXE</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="ReleaseDEXE|Win32"> + <Configuration>ReleaseDEXE</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="DebugDEXE|x64"> + <Configuration>DebugDEXE</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="ReleaseDEXE|x64"> + <Configuration>ReleaseDEXE</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="DebugLEXE|Win32"> + <Configuration>DebugLEXE</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="ReleaseLEXE|Win32"> + <Configuration>ReleaseLEXE</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="DebugLEXE|x64"> + <Configuration>DebugLEXE</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="ReleaseLEXE|x64"> + <Configuration>ReleaseLEXE</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="DebugSEXE|Win32"> + <Configuration>DebugSEXE</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="ReleaseSEXE|Win32"> + <Configuration>ReleaseSEXE</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="DebugSEXE|x64"> + <Configuration>DebugSEXE</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="ReleaseSEXE|x64"> + <Configuration>ReleaseSEXE</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + </ItemGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> + <ImportGroup Label="PropertySheets"> + <Import Project="$(ProjectDir)..\..\properties\$(Configuration).props" /> + <Import Project="$(ProjectDir)..\..\properties\Output.props" /> + <Import Project="$(ProjectDir)$(ProjectName).props" /> + </ImportGroup> + <ItemGroup> + <ClCompile Include="..\..\..\..\test\default\auth.c"> + <ExcludedFromBuild>false</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\auth2.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\auth3.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\auth5.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\box.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\box2.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\box7.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\box8.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\box_easy.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\box_easy2.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\core1.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\core2.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\core3.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\core4.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\core5.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\core6.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\generichash.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\generichash2.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\generichash3.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\hash.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\hash3.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\onetimeauth.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\onetimeauth2.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\onetimeauth7.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\pwhash.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\randombytes.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\scalarmult.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\scalarmult2.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\scalarmult5.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\scalarmult6.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\secretbox.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\secretbox2.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\secretbox7.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\secretbox8.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\secretbox_easy.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\secretbox_easy2.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\shorthash.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\sign.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\sodium_core.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\sodium_utils.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\sodium_version.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\stream.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\stream2.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\stream3.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\stream4.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\stream5.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\stream6.c"> + <ExcludedFromBuild>true</ExcludedFromBuild> + </ClCompile> + </ItemGroup> + <ItemGroup> + <ClInclude Include="..\..\..\..\test\default\cmptest.h" /> + <ClInclude Include="..\..\..\..\test\quirks\windows\windows-quirks.h" /> + </ItemGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> +</Project>
\ No newline at end of file diff --git a/builds/msvc/vs2012/test/test.vcxproj.filters b/builds/msvc/vs2012/test/test.vcxproj.filters new file mode 100644 index 0000000..c0819e8 --- /dev/null +++ b/builds/msvc/vs2012/test/test.vcxproj.filters @@ -0,0 +1,162 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <ItemGroup> + <ClCompile Include="..\..\..\..\test\default\auth.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\auth2.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\auth3.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\auth5.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\box.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\box_easy.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\box_easy2.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\box2.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\box7.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\box8.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\core1.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\core2.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\core3.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\core4.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\core5.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\core6.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\generichash.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\generichash2.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\generichash3.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\hash.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\hash3.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\onetimeauth.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\onetimeauth2.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\onetimeauth7.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\randombytes.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\scalarmult.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\scalarmult2.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\scalarmult5.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\scalarmult6.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\secretbox.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\secretbox_easy.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\secretbox_easy2.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\secretbox2.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\secretbox7.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\secretbox8.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\shorthash.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\sodium_core.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\sodium_utils.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\sodium_version.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\stream.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\stream2.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\stream3.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\stream4.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\stream5.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\stream6.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\sign.c"> + <Filter>src</Filter> + </ClCompile> + <ClCompile Include="..\..\..\..\test\default\pwhash.c"> + <Filter>src</Filter> + </ClCompile> + </ItemGroup> + <ItemGroup> + <ClInclude Include="..\..\..\..\test\default\cmptest.h"> + <Filter>include</Filter> + </ClInclude> + <ClInclude Include="..\..\..\..\test\quirks\windows\windows-quirks.h"> + <Filter>include</Filter> + </ClInclude> + </ItemGroup> + <ItemGroup> + <Filter Include="src"> + <UniqueIdentifier>{705beade-aa7f-49c0-900e-4b0cbbdc2f7b}</UniqueIdentifier> + </Filter> + <Filter Include="include"> + <UniqueIdentifier>{5b5af4b5-c6aa-4b30-bdef-074b1bdc43ea}</UniqueIdentifier> + </Filter> + </ItemGroup> +</Project>
\ No newline at end of file |