File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change 11ExUnit . start ( )
22
3- defmodule TestHelper do
4- def compile_test_examples ( examples_path ) do
5- ex_blob = examples_path <> "/*.ex"
3+ defmodule ExamplesCompiler do
4+ @ build_path "test/examples/_build/"
65
7- for path <- Path . wildcard ( ex_blob ) do
8- System . cmd ( "elixirc" , [ "-o" , examples_path , path ] )
6+ def compile ( pattern ) do
7+ case File . mkdir ( @ build_path ) do
8+ :ok ->
9+ paths = Path . wildcard ( pattern )
10+ Kernel.ParallelCompiler . compile_to_path ( paths , @ build_path )
11+ :ok
12+
13+ _ ->
14+ :error
915 end
1016 end
1117end
1218
13- # TestHelper.compile_test_examples("test/examples")
14- # TestHelper.compile_test_examples("test/examples/basic")
15- # TestHelper.compile_test_examples("test/examples/conditional")
19+ ExamplesCompiler . compile ( "test/examples/**/*.ex" )
You can’t perform that action at this time.
0 commit comments