Browse Source

added console test runner.

Ugochukwu Mmaduekwe 7 years ago
parent
commit
cf5e73069e

+ 66 - 0
CryptoLib.Tests/FreePascal.Tests/CryptoLibConsole.Tests.lpi

@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<CONFIG>
+  <ProjectOptions>
+    <Version Value="10"/>
+    <PathDelim Value="\"/>
+    <General>
+      <SessionStorage Value="InProjectDir"/>
+      <MainUnit Value="0"/>
+      <Title Value="CryptoLibConsole"/>
+      <UseAppBundle Value="False"/>
+      <ResourceType Value="res"/>
+    </General>
+    <VersionInfo>
+      <StringTable ProductVersion=""/>
+    </VersionInfo>
+    <BuildModes Count="1">
+      <Item1 Name="Default" Default="True"/>
+    </BuildModes>
+    <PublishOptions>
+      <Version Value="2"/>
+    </PublishOptions>
+    <RunParams>
+      <local>
+        <FormatVersion Value="1"/>
+      </local>
+    </RunParams>
+    <RequiredPackages Count="2">
+      <Item1>
+        <PackageName Value="CryptoLib4PascalPackage"/>
+      </Item1>
+      <Item2>
+        <PackageName Value="FCL"/>
+      </Item2>
+    </RequiredPackages>
+    <Units Count="1">
+      <Unit0>
+        <Filename Value="CryptoLibConsole.lpr"/>
+        <IsPartOfProject Value="True"/>
+      </Unit0>
+    </Units>
+  </ProjectOptions>
+  <CompilerOptions>
+    <Version Value="11"/>
+    <PathDelim Value="\"/>
+    <Target>
+      <Filename Value=".\bin\CryptoLib"/>
+    </Target>
+    <SearchPaths>
+      <IncludeFiles Value="$(ProjOutDir)"/>
+      <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
+    </SearchPaths>
+  </CompilerOptions>
+  <Debugging>
+    <Exceptions Count="3">
+      <Item1>
+        <Name Value="EAbort"/>
+      </Item1>
+      <Item2>
+        <Name Value="ECodetoolError"/>
+      </Item2>
+      <Item3>
+        <Name Value="EFOpenError"/>
+      </Item3>
+    </Exceptions>
+  </Debugging>
+</CONFIG>

+ 40 - 0
CryptoLib.Tests/FreePascal.Tests/CryptoLibConsole.lpr

@@ -0,0 +1,40 @@
+program CryptoLibConsole;
+
+{$mode objfpc}{$H+}
+
+uses
+  consoletestrunner,
+  Asn1SequenceParserTests,
+  DerApplicationSpecificTests,
+  EqualsAndHashCodeTests,
+  OIDTests,
+  BigIntegerTests,
+  ECAlgorithmsTests,
+  ECPointTests,
+  SecP384R1FieldTests,
+  ECDsa5Tests,
+  ECTests,
+  NamedCurveTests,
+  SignerUtilitiesTests,
+  SecureRandomTests,
+  ClpFixedSecureRandom,
+  ClpIFixedSecureRandom;
+
+type
+
+  { TCryptoLibConsoleTestRunner }
+
+  TCryptoLibConsoleTestRunner = class(TTestRunner)
+  protected
+  // override the protected methods of TTestRunner to customize its behaviour
+  end;
+
+var
+  Application: TCryptoLibConsoleTestRunner;
+
+begin
+  Application := TCryptoLibConsoleTestRunner.Create(nil);
+  Application.Initialize;
+  Application.Run;
+  Application.Free;
+end.