@@ -74,24 +74,40 @@ ERLC_OPTS += $(RMQ_ERLC_OPTS)
74
74
TEST_ERLC_OPTS += $(RMQ_ERLC_OPTS )
75
75
76
76
# --------------------------------------------------------------------
77
- # Common test flags.
77
+ # Common Test flags.
78
78
# --------------------------------------------------------------------
79
79
80
- # Enable the cth_fail_fast common_test hook on Concourse.
80
+ # Enable the following common_test hooks on Travis and Concourse:
81
81
#
82
- # This hook will make sure the first failure puts an end to the
83
- # testsuites; ie. all remaining tests are skipped.
82
+ # cth_fail_fast
83
+ # This hook will make sure the first failure puts an end to the
84
+ # testsuites; ie. all remaining tests are skipped.
85
+ #
86
+ # cth_styledout
87
+ # This hook will change the output of common_test to something more
88
+ # consise and colored.
84
89
85
- ifdef CONCOURSE
86
- TEST_DEPS += cth_fail_fast
90
+ CTH_DEPS = cth_fail_fast cth_styledout
87
91
dep_cth_fail_fast = git https://github.com/rabbitmq/cth_fail_fast.git master
88
- CT_OPTS += -ct_hooks cth_fail_fast
92
+ dep_cth_styledout = git https://github.com/rabbitmq/cth_styledout.git master
93
+ CTH_OPTS = -ct_hooks cth_fail_fast and cth_styledout
94
+
95
+ ifdef TRAVIS
96
+ TEST_DEPS += $(CTH_DEPS )
97
+ CT_OPTS += $(CTH_OPTS )
98
+ endif
99
+ ifdef CONCOURSE
100
+ TEST_DEPS += $(CTH_DEPS )
101
+ CT_OPTS += $(CTH_OPTS )
89
102
endif
90
103
91
- # Disable most messages on Travis and Concourse.
104
+ # Disable most messages on Travis because it might exceed the limit
105
+ # set by Travis.
92
106
#
93
- # On CI, set $RABBITMQ_CT_SKIP_AS_ERROR so that any skipped
94
- # testsuite/testgroup/testcase is considered an error.
107
+ # On Concourse, we keep the default verbosity. With Erlang 19.2+, the
108
+ # cth_styledout hook will change the output to something concise and all
109
+ # messages are available in in HTML reports. With Erlang up-to 19.1,
110
+ # stdout will be flooded with messages, but we'll live with that.
95
111
#
96
112
# CAUTION: All arguments after -erl_args are passed to the emulator and
97
113
# common_test doesn't interpret them! Therefore, all common_test flags
@@ -103,17 +119,25 @@ CT_QUIET_FLAGS = -verbosity 50 \
103
119
104
120
ifdef TRAVIS
105
121
CT_OPTS += $(CT_QUIET_FLAGS )
106
- export RABBITMQ_CT_SKIP_AS_ERROR = true
107
- endif
108
- ifdef CONCOURSE
109
- CT_OPTS += $(CT_QUIET_FLAGS )
110
- export RABBITMQ_CT_SKIP_AS_ERROR = true
111
122
endif
112
123
113
124
# Enable JUnit-like report on Jenkins. Jenkins parses those reports so
114
125
# the results can be browsed from its UI. Furthermore, it displays a
115
126
# graph showing evolution of the results over time.
127
+
116
128
ifdef JENKINS_HOME
117
129
CT_OPTS += -ct_hooks cth_surefire
130
+ endif
131
+
132
+ # On CI, set $RABBITMQ_CT_SKIP_AS_ERROR so that any skipped
133
+ # testsuite/testgroup/testcase is considered an error.
134
+
135
+ ifdef TRAVIS
136
+ export RABBITMQ_CT_SKIP_AS_ERROR = true
137
+ endif
138
+ ifdef CONCOURSE
139
+ export RABBITMQ_CT_SKIP_AS_ERROR = true
140
+ endif
141
+ ifdef JENKINS_HOME
118
142
export RABBITMQ_CT_SKIP_AS_ERROR = true
119
143
endif
0 commit comments