blob: 5a411b4826f90e5b5571a1c47e5564f18cdd6ef9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
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.Agreement.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);
}
}
}
|