diff options
author | alisdair sullivan <alisdair.sullivan@askuity.com> | 2015-12-20 19:26:00 -0800 |
---|---|---|
committer | alisdair sullivan <alisdair.sullivan@askuity.com> | 2015-12-20 19:26:00 -0800 |
commit | a4711d00ac294328494de620b2e66067ff80785c (patch) | |
tree | 8d12174af272ae27b1ccc5c42c962094716d075a | |
parent | 639906bdb531160d7d6a0322acfd7672b48a5387 (diff) |
add test for foo_SUITE_data files
-rw-r--r-- | test/rebar_ct_SUITE.erl | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/rebar_ct_SUITE.erl b/test/rebar_ct_SUITE.erl index d572cc2..183a1d0 100644 --- a/test/rebar_ct_SUITE.erl +++ b/test/rebar_ct_SUITE.erl @@ -654,7 +654,10 @@ suite_at_root(Config) -> true = filelib:is_file(TestBeam), DataDir = filename:join([AppDir, "_build", "test", "extras", "root_SUITE_data"]), - true = filelib:is_dir(DataDir). + true = filelib:is_dir(DataDir), + + DataFile = filename:join([AppDir, "_build", "test", "extras", "root_SUITE_data", "some_data.txt"]), + true = filelib:is_file(DataFile). suite_at_app_root(Config) -> AppDir = ?config(apps, Config), @@ -688,7 +691,10 @@ suite_at_app_root(Config) -> true = filelib:is_file(TestBeam), DataDir = filename:join([AppDir, "_build", "test", "extras", "apps", Name2, "app_root_SUITE_data"]), - true = filelib:is_dir(DataDir). + true = filelib:is_dir(DataDir), + + DataFile = filename:join([AppDir, "_build", "test", "extras", "root_SUITE_data", "some_data.txt"]), + true = filelib:is_file(DataFile). %% this test probably only fails when this suite is run via rebar3 with the --cover flag data_dir_correct(Config) -> |