Added ftpclient module. Fixed docs in sockets module. Added dll tests to test suite.

This commit is contained in:
dom96 2011-11-04 00:22:04 +00:00
commit 264de4537e
7 changed files with 394 additions and 10 deletions

5
tests/dll/dllsimple.nim Normal file
View file

@ -0,0 +1,5 @@
discard """
file: tdllgen.nim
"""
proc test() {.exportc.} =
echo("Hello World!")

View file

@ -323,6 +323,15 @@ proc compileRodFiles(r: var TResults, options: string) =
# -----------------------------------------------------------------------------
# DLL generation tests
proc testDLLGen(r: var TResults, options: string) =
compileSingleTest(r, "lib/nimrtl.nim", "--app:lib -d:createNimRtl")
template test(filename: expr): stmt =
compileSingleTest(r, "tests/dll/" / filename, options)
test "dllsimple.nim"
proc compileExample(r: var TResults, pattern, options: string) =
for test in os.walkFiles(pattern): compileSingleTest(r, test, options)
@ -360,6 +369,7 @@ proc main(action: string) =
compile(compileRes, "tests/accept/compile/t*.nim", options)
compile(compileRes, "tests/ecmas.nim", options)
compileRodFiles(compileRes, options)
testDllGen(compileRes, options)
writeResults(compileJson, compileRes)
of "examples":
var compileRes = readResults(compileJson)