From 210dcf66e27bd2523b115e0a2e4f02e93d3af179 Mon Sep 17 00:00:00 2001 From: Spencer Russell Date: Mon, 30 Dec 2013 01:32:18 -0800 Subject: [PATCH] adds forgotten test.jl --- test/test.jl | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 test/test.jl diff --git a/test/test.jl b/test/test.jl new file mode 100755 index 0000000..36555ab --- /dev/null +++ b/test/test.jl @@ -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