adds forgotten test.jl
This commit is contained in:
parent
a3d23268e9
commit
210dcf66e2
1 changed files with 17 additions and 0 deletions
17
test/test.jl
Executable file
17
test/test.jl
Executable file
|
@ -0,0 +1,17 @@
|
||||||
|
#!/usr/bin/env julia
|
||||||
|
|
||||||
|
test_regex = r"^test_.*\.jl$"
|
||||||
|
test_dir = "test"
|
||||||
|
|
||||||
|
test_files = filter(n -> ismatch(test_regex, n), readdir(test_dir))
|
||||||
|
if length(test_files) == 0
|
||||||
|
error("No test files found. Make sure you're running from the root directory")
|
||||||
|
end
|
||||||
|
|
||||||
|
for test_file in test_files
|
||||||
|
info("")
|
||||||
|
info("Running tests from \"$(test_file)\"...")
|
||||||
|
info("===================================================================")
|
||||||
|
include(test_file)
|
||||||
|
info("===================================================================")
|
||||||
|
end
|
Loading…
Reference in a new issue