summaryrefslogtreecommitdiff
path: root/inttest/ct_make_fails/test_SUITE.erl
diff options
context:
space:
mode:
authorLuis Rascão <luis.rascao@gmail.com>2016-01-19 10:50:39 +0000
committerLuis Rascão <luis.rascao@gmail.com>2016-02-19 17:12:45 +0000
commitfa571d339630c8f4d10d82a7bf16b8dbf2bc1ec4 (patch)
tree83144df3017b23ad30cbc4854808f825aba6205b /inttest/ct_make_fails/test_SUITE.erl
parent022afd4b08fe024520849e50fd2bd03294fe210a (diff)
downloadrebar-fa571d339630c8f4d10d82a7bf16b8dbf2bc1ec4.tar.gz
Additional Common Test regression tests
One test that checks for a failed make, another that detects a failed test run when only one of several suites fails. The ct test fails is only applicable to OTP versions older than R16 (inclusive), this is related to the way older versions handle the test .spec files.
Diffstat (limited to 'inttest/ct_make_fails/test_SUITE.erl')
-rw-r--r--inttest/ct_make_fails/test_SUITE.erl17
1 files changed, 17 insertions, 0 deletions
diff --git a/inttest/ct_make_fails/test_SUITE.erl b/inttest/ct_make_fails/test_SUITE.erl
new file mode 100644
index 0000000..343aa5a
--- /dev/null
+++ b/inttest/ct_make_fails/test_SUITE.erl
@@ -0,0 +1,17 @@
+-module(test_SUITE).
+
+-compile(export_all).
+
+-include_lib("ct.hrl").
+
+all() ->
+ [simple_test,
+ app_config_file_test].
+
+simple_test(Config) ->
+ io:format("Test: ~p\n" [Config]).
+
+app_config_file_test(_Config) ->
+ application:start(a1),
+ {ok, bar} = application:get_env(a1, foo),
+ application:stop(a1).