diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2015-10-22 21:14:54 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2015-10-22 21:14:54 +0200 |
commit | da33d5ef628938e1503f61ac1574d2008daf7e95 (patch) | |
tree | 6a42c1d8b256b498b33249553a1a3d756f3e64d6 | |
parent | a90e23a4ddbef38cdf48c59e68630999c6e90374 (diff) | |
parent | e5aefbd1d4b865507efb755f2d89e09e0aab2bdc (diff) | |
download | Nim-da33d5ef628938e1503f61ac1574d2008daf7e95.tar.gz |
Merge pull request #3464 from yglukhov/disable-failing-tests
Fixed tests for TravisCI.
-rw-r--r-- | .travis.yml | 2 | ||||
-rw-r--r-- | tests/manyloc/nake/nakefile.nim | 2 | ||||
-rw-r--r-- | tests/testament/categories.nim | 18 |
3 files changed, 13 insertions, 9 deletions
diff --git a/.travis.yml b/.travis.yml index 256fb0da0..6a500c0cd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,7 @@ addons: packages: - libcurl4-openssl-dev - libsdl1.2-dev + - libgc-dev before_script: - set -e - wget http://flatassembler.net/fasm-1.71.39.tgz @@ -26,5 +27,6 @@ script: - nimble install zip - nimble install opengl - nimble install sdl1 + - nimble install jester - nim c --taintMode:on tests/testament/tester - tests/testament/tester --pedantic all diff --git a/tests/manyloc/nake/nakefile.nim b/tests/manyloc/nake/nakefile.nim index 2fe07ec17..de6a1af40 100644 --- a/tests/manyloc/nake/nakefile.nim +++ b/tests/manyloc/nake/nakefile.nim @@ -1,5 +1,5 @@ import nake -import httpclient, zip/zipfiles, times, math +import httpclient, zip/zipfiles, times, math, sequtils nakeImports randomize() diff --git a/tests/testament/categories.nim b/tests/testament/categories.nim index e700ff185..526ca4d45 100644 --- a/tests/testament/categories.nim +++ b/tests/testament/categories.nim @@ -75,29 +75,31 @@ proc safeCopyFile(src, dest: string) = echo "[Warning] could not copy: ", src, " to ", dest proc runBasicDLLTest(c, r: var TResults, cat: Category, options: string) = + const rpath = when defined(macosx): + " --passL:-rpath --passL:@loader_path" + else: + "" + testSpec c, makeTest("lib/nimrtl.nim", options & " --app:lib -d:createNimRtl", cat) testSpec c, makeTest("tests/dll/server.nim", - options & " --app:lib -d:useNimRtl", cat) + options & " --app:lib -d:useNimRtl" & rpath, cat) + when defined(Windows): # windows looks in the dir of the exe (yay!): - var serverDll = DynlibFormat % "server" - safeCopyFile("lib" / serverDll, "tests/dll" / serverDll) var nimrtlDll = DynlibFormat % "nimrtl" safeCopyFile("lib" / nimrtlDll, "tests/dll" / nimrtlDll) else: # posix relies on crappy LD_LIBRARY_PATH (ugh!): var libpath = getEnv"LD_LIBRARY_PATH".string # Temporarily add the lib directory to LD_LIBRARY_PATH: - putEnv("LD_LIBRARY_PATH", "lib:" & libpath) + putEnv("LD_LIBRARY_PATH", "tests/dll:" & libpath) defer: putEnv("LD_LIBRARY_PATH", libpath) - var serverDll = DynlibFormat % "server" - safeCopyFile("tests/dll" / serverDll, "lib" / serverDll) var nimrtlDll = DynlibFormat % "nimrtl" - safeCopyFile("tests/dll" / nimrtlDll, "lib" / nimrtlDll) + safeCopyFile("lib" / nimrtlDll, "tests/dll" / nimrtlDll) - testSpec r, makeTest("tests/dll/client.nim", options & " -d:useNimRtl", + testSpec r, makeTest("tests/dll/client.nim", options & " -d:useNimRtl" & rpath, cat, actionRun) proc dllTests(r: var TResults, cat: Category, options: string) = |