Fixes #631. Test command now respects backend.
This commit is contained in:
parent
c834faf60e
commit
55dd892aab
1 changed files with 3 additions and 1 deletions
|
|
@ -1004,6 +1004,8 @@ proc develop(options: Options) =
|
||||||
proc test(options: Options) =
|
proc test(options: Options) =
|
||||||
## Executes all tests starting with 't' in the ``tests`` directory.
|
## Executes all tests starting with 't' in the ``tests`` directory.
|
||||||
## Subdirectories are not walked.
|
## Subdirectories are not walked.
|
||||||
|
var pkgInfo = getPkgInfo(getCurrentDir(), options)
|
||||||
|
|
||||||
var
|
var
|
||||||
files = toSeq(walkDir(getCurrentDir() / "tests"))
|
files = toSeq(walkDir(getCurrentDir() / "tests"))
|
||||||
tests, failures: int
|
tests, failures: int
|
||||||
|
|
@ -1020,7 +1022,7 @@ proc test(options: Options) =
|
||||||
var optsCopy = options.briefClone()
|
var optsCopy = options.briefClone()
|
||||||
optsCopy.action = Action(typ: actionCompile)
|
optsCopy.action = Action(typ: actionCompile)
|
||||||
optsCopy.action.file = file.path
|
optsCopy.action.file = file.path
|
||||||
optsCopy.action.backend = "c"
|
optsCopy.action.backend = pkgInfo.backend
|
||||||
optsCopy.getCompilationFlags() = @[]
|
optsCopy.getCompilationFlags() = @[]
|
||||||
optsCopy.getCompilationFlags().add("-r")
|
optsCopy.getCompilationFlags().add("-r")
|
||||||
optsCopy.getCompilationFlags().add("--path:.")
|
optsCopy.getCompilationFlags().add("--path:.")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue