Commit 8a74ff03 authored by Bas Lijnse's avatar Bas Lijnse

Removed deprecated CI test runner.

parent 65f2be09
module RunUnitTestsForCI
/*
* This program runs all unit tests and outputs their results to stdout
* This way all testing code specified as tasks can be easily tested in our continous integration pipeline.
*/
import iTasks
import iTasks.Extensions.Development.Testing
import iTasks.Internal.Test.Definition
import System.FilePath
import System.CommandLine
DEFAULT_TESTS_PATH :== "../Tests/TestPrograms"
runAllTests
= determineTestDir
>>- \testDir ->
get (mapRead (filter ((==) "icl" o takeExtension)) (sdsFocus testDir directoryListing))
>>- \modules ->
sequence "Running all test programs"
[runTestModule (testDir </> m) >>- traceValue \\ m <- modules]
>>- \results ->
shutDown (if (noneFailed results) 0 1)
determineTestDir
= accWorld getCommandLine
@ \args -> case args of
[_,path] = path
_ = DEFAULT_TESTS_PATH
Start world = runTasks runAllTests world
Version: 1.4
Global
ProjectRoot: .
Target: iTasks
Exec: {Project}/RunUnitTestsForCI
CodeGen
CheckStacks: False
CheckIndexes: True
Application
HeapSize: 209715200
StackSize: 5120000
ExtraMemory: 8192
IntialHeapSize: 204800
HeapSizeMultiplier: 4096
ShowExecutionTime: False
ShowGC: False
ShowStackSize: False
MarkingCollector: False
DisableRTSFlags: False
StandardRuntimeEnv: True
Profile
Memory: False
MemoryMinimumHeapSize: 0
Time: False
Stack: False
Dynamics: True
GenericFusion: False
DescExL: False
Output
Output: ShowConstructors
Font: Monaco
FontSize: 9
WriteStdErr: False
Link
LinkMethod: Static
GenerateRelocations: False
GenerateSymbolTable: False
GenerateLinkMap: False
LinkResources: False
ResourceSource:
GenerateDLL: False
ExportedNames:
Paths
Path: {Project}
Precompile:
Postlink:
MainModule
Name: RunUnitTestsForCI
Dir: {Project}
Compiler
NeverMemoryProfile: False
NeverTimeProfile: False
StrictnessAnalysis: True
ListTypes: StrictExportTypes
ListAttributes: True
Warnings: True
Verbose: True
ReadableABC: False
ReuseUniqueNodes: True
Fusion: False
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment