diff options
author | Tim Watson <watson.timothy@gmail.com> | 2011-09-18 13:38:31 +0100 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2011-12-28 12:41:36 +0100 |
commit | 286a2a88a4d769b702529d184661c4166854f27e (patch) | |
tree | edc009f279f47fdb965cdb055e86815d9e8a8c72 /inttest/ct1 | |
parent | bd349bd2c4d8f68e19f130ea04cf27542e52fb3b (diff) |
Add support for customising common test directory
This patch allows users to specify the directory in which common_test
source files can be found. Most common_test suites are integration,
rather than unit tests and keeping the sources apart from test sources
for other frameworks such as eunit and PropEr is a useful feature.
Diffstat (limited to 'inttest/ct1')
-rw-r--r-- | inttest/ct1/ct1_rt.erl | 3 | ||||
-rw-r--r-- | inttest/ct1/rebar.config | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/inttest/ct1/ct1_rt.erl b/inttest/ct1/ct1_rt.erl index 1028a0f..f173d3f 100644 --- a/inttest/ct1/ct1_rt.erl +++ b/inttest/ct1/ct1_rt.erl @@ -6,7 +6,8 @@ files() -> [{create, "ebin/a1.app", app(a1)}, {copy, "../../rebar", "rebar"}, - {copy, "test_SUITE.erl", "test/test_SUITE.erl"}]. + {copy, "rebar.config", "rebar.config"}, + {copy, "test_SUITE.erl", "itest/test_SUITE.erl"}]. run(_Dir) -> {ok, _} = retest:sh("./rebar compile ct"), diff --git a/inttest/ct1/rebar.config b/inttest/ct1/rebar.config new file mode 100644 index 0000000..839fe4b --- /dev/null +++ b/inttest/ct1/rebar.config @@ -0,0 +1,2 @@ + +{ct_dir, "itest"}. |