testament update to have list of disabled modules.

This commit is contained in:
cheatfate 2016-07-30 02:07:05 +03:00
commit 0d2ff34d02
2 changed files with 12 additions and 6 deletions

View file

@ -260,7 +260,9 @@ proc compileExample(r: var TResults, pattern, options: string, cat: Category) =
testNoSpec r, makeTest(test, options, cat) testNoSpec r, makeTest(test, options, cat)
proc testStdlib(r: var TResults, pattern, options: string, cat: Category) = proc testStdlib(r: var TResults, pattern, options: string, cat: Category) =
var disabledSet = disabledFiles.toSet()
for test in os.walkFiles(pattern): for test in os.walkFiles(pattern):
if test notin disabledSet:
let contents = readFile(test).string let contents = readFile(test).string
if contents.contains("when isMainModule"): if contents.contains("when isMainModule"):
testSpec r, makeTest(test, options, cat, actionRunNoSpec) testSpec r, makeTest(test, options, cat, actionRunNoSpec)

View file

@ -12,7 +12,7 @@
import import
parseutils, strutils, pegs, os, osproc, streams, parsecfg, json, parseutils, strutils, pegs, os, osproc, streams, parsecfg, json,
marshal, backend, parseopt, specs, htmlgen, browsers, terminal, marshal, backend, parseopt, specs, htmlgen, browsers, terminal,
algorithm, compiler/nodejs, re, times algorithm, compiler/nodejs, re, times, sets
const const
resultsFile = "testresults.html" resultsFile = "testresults.html"
@ -388,6 +388,10 @@ proc makeTest(test, options: string, cat: Category, action = actionCompile,
result = TTest(cat: cat, name: test, options: options, result = TTest(cat: cat, name: test, options: options,
target: target, action: action, startTime: epochTime()) target: target, action: action, startTime: epochTime())
const
# array of files disabled from compilation test of stdlib.
disabledFiles = ["lib/pure/coro.nim"]
include categories include categories
# proc runCaasTests(r: var TResults) = # proc runCaasTests(r: var TResults) =