diff options
Diffstat (limited to 'crypto-test')
-rw-r--r-- | crypto-test/App.ico | bin | 0 -> 1078 bytes | |||
-rw-r--r-- | crypto-test/CryptoTest.cs | 51 | ||||
-rw-r--r-- | crypto-test/crypto-test.csproj | 104 | ||||
-rw-r--r-- | crypto-test/crypto-test.mdp | 27 |
4 files changed, 182 insertions, 0 deletions
diff --git a/crypto-test/App.ico b/crypto-test/App.ico new file mode 100644 index 000000000..3a5525fd7 --- /dev/null +++ b/crypto-test/App.ico Binary files differdiff --git a/crypto-test/CryptoTest.cs b/crypto-test/CryptoTest.cs new file mode 100644 index 000000000..1f6973e28 --- /dev/null +++ b/crypto-test/CryptoTest.cs @@ -0,0 +1,51 @@ +using System; + +namespace crypto_test +{ + public class CryptoTest + { + /// <summary> + /// The main entry point for the application. + /// </summary> + [STAThread] + static void Main(string[] args) + { + DateTime before = DateTime.Now; + + try + { + Org.BouncyCastle.Asn1.Tests.RegressionTest.Main(args); + //Org.BouncyCastle.Bcpg.OpenPgp.Tests.Dsa2Test.? + Org.BouncyCastle.Bcpg.OpenPgp.Tests.RegressionTest.Main(args); + Org.BouncyCastle.Bcpg.OpenPgp.Examples.Tests.AllTests.Main(args); + Org.BouncyCastle.Cms.Tests.AllTests.Main(args); + Org.BouncyCastle.Crypto.Tests.RegressionTest.Main(args); + Org.BouncyCastle.Crypto.IO.Tests.AllTests.Main(args); + Org.BouncyCastle.Math.Tests.AllTests.Main(args); + Org.BouncyCastle.Math.EC.Tests.AllTests.Main(args); + Org.BouncyCastle.Ocsp.Tests.AllTests.Main(args); + //Org.BouncyCastle.Pkcs.Tests.? + Org.BouncyCastle.Pkcs.Tests.EncryptedPrivateKeyInfoTest.Main(args); + Org.BouncyCastle.Pkcs.Tests.Pkcs10Test.Main(args); + Org.BouncyCastle.Pkcs.Tests.Pkcs12StoreTest.Main(args); + //Org.BouncyCastle.OpenSsl.Tests.? + Org.BouncyCastle.OpenSsl.Tests.ReaderTest.Main(args); + Org.BouncyCastle.OpenSsl.Tests.WriterTest.Main(args); + //Org.BouncyCastle.Security.Tests.? + Org.BouncyCastle.Tests.RegressionTest.Main(args); + Org.BouncyCastle.Tsp.Tests.AllTests.Main(args); + //Org.BouncyCastle.X509.Tests.? + } + catch (Exception e) + { + Console.WriteLine("Tests failed with exception: " + e.Message); + Console.WriteLine(e.StackTrace); + } + + DateTime after = DateTime.Now; + long elapsedTicks = after.Ticks - before.Ticks; + + Console.WriteLine("Done in {0}ms.", elapsedTicks / TimeSpan.TicksPerMillisecond); + } + } +} diff --git a/crypto-test/crypto-test.csproj b/crypto-test/crypto-test.csproj new file mode 100644 index 000000000..9bb4cdbb9 --- /dev/null +++ b/crypto-test/crypto-test.csproj @@ -0,0 +1,104 @@ +<VisualStudioProject> + <CSHARP + ProjectType = "Local" + ProductVersion = "7.10.3077" + SchemaVersion = "2.0" + ProjectGuid = "{C857AD68-8F1B-4C7A-A76B-3DC03CBE4FB0}" + > + <Build> + <Settings + ApplicationIcon = "App.ico" + AssemblyKeyContainerName = "" + AssemblyName = "crypto-test" + AssemblyOriginatorKeyFile = "" + DefaultClientScript = "JScript" + DefaultHTMLPageLayout = "Grid" + DefaultTargetSchema = "IE50" + DelaySign = "false" + OutputType = "Exe" + PreBuildEvent = "" + PostBuildEvent = "" + RootNamespace = "crypto_test" + RunPostBuildEvent = "OnBuildSuccess" + StartupObject = "" + > + <Config + Name = "Debug" + AllowUnsafeBlocks = "false" + BaseAddress = "285212672" + CheckForOverflowUnderflow = "false" + ConfigurationOverrideFile = "" + DefineConstants = "DEBUG;TRACE" + DocumentationFile = "" + DebugSymbols = "true" + FileAlignment = "4096" + IncrementalBuild = "false" + NoStdLib = "false" + NoWarn = "" + Optimize = "false" + OutputPath = "bin\Debug\" + RegisterForComInterop = "false" + RemoveIntegerChecks = "false" + TreatWarningsAsErrors = "false" + WarningLevel = "4" + /> + <Config + Name = "Release" + AllowUnsafeBlocks = "false" + BaseAddress = "285212672" + CheckForOverflowUnderflow = "false" + ConfigurationOverrideFile = "" + DefineConstants = "TRACE" + DocumentationFile = "" + DebugSymbols = "false" + FileAlignment = "4096" + IncrementalBuild = "false" + NoStdLib = "false" + NoWarn = "" + Optimize = "true" + OutputPath = "bin\Release\" + RegisterForComInterop = "false" + RemoveIntegerChecks = "false" + TreatWarningsAsErrors = "false" + WarningLevel = "4" + /> + </Settings> + <References> + <Reference + Name = "System" + AssemblyName = "System" + HintPath = "..\..\..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.dll" + /> + <Reference + Name = "System.Data" + AssemblyName = "System.Data" + HintPath = "..\..\..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Data.dll" + /> + <Reference + Name = "System.XML" + AssemblyName = "System.Xml" + HintPath = "..\..\..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.XML.dll" + /> + <Reference + Name = "crypto" + Project = "{38872A5F-E87E-4FAD-B109-8EB7B2E6A4A0}" + Package = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}" + /> + </References> + </Build> + <Files> + <Include> + <File + RelPath = "App.ico" + BuildAction = "Content" + /> + <File + RelPath = "CryptoTest.cs" + SubType = "Code" + BuildAction = "Compile" + /> + </Include> + </Files> + </CSHARP> +</VisualStudioProject> + diff --git a/crypto-test/crypto-test.mdp b/crypto-test/crypto-test.mdp new file mode 100644 index 000000000..a9c3a30ba --- /dev/null +++ b/crypto-test/crypto-test.mdp @@ -0,0 +1,27 @@ +<Project name="crypto-test" fileversion="2.0" DefaultNamespace="cryptotest" language="C#" clr-version="Net_2_0" targetFramework="1.1" ctype="DotNetProject"> + <Configurations active="Release"> + <Configuration name="Debug" ctype="DotNetProjectConfiguration"> + <Output directory="bin/Debug/" assembly="crypto-test" /> + <Build debugmode="True" target="Exe" /> + <Execution consolepause="False" runwithwarnings="False" runtime="MsNet" clr-version="Net_2_0" /> + <CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" definesymbols="NET_1_1" generatexmldocumentation="False" ctype="CSharpCompilerParameters" /> + </Configuration> + <Configuration name="Release" ctype="DotNetProjectConfiguration"> + <Output directory="bin/Release/" assembly="crypto-test" /> + <Build debugmode="False" target="Exe" /> + <Execution consolepause="True" runwithwarnings="False" runtime="MsNet" clr-version="Net_2_0" /> + <CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" definesymbols="NET_1_1" generatexmldocumentation="False" ctype="CSharpCompilerParameters" /> + </Configuration> + </Configurations> + <Contents> + <File subtype="Code" buildaction="Exclude" name="App.ico" /> + <File subtype="Code" buildaction="Compile" name="CryptoTest.cs" /> + </Contents> + <References> + <ProjectReference type="Project" localcopy="True" refto="crypto" /> + <ProjectReference type="Gac" localcopy="True" refto="System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> + <ProjectReference type="Gac" localcopy="True" refto="System.Data, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> + <ProjectReference type="Gac" localcopy="True" refto="System.Xml, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> + </References> + <DeploymentInformation strategy="File" /> +</Project> \ No newline at end of file |