[ovs-dev] [PATCH] tests: enable color output for unit tests, if available

Flavio Fernandes flavio at flaviof.com
Wed May 18 15:00:49 UTC 2016


Reference thread in mailing list:
http://openvswitch.org/pipermail/discuss/2016-May/021339.html

Signed-off-by: Flavio Fernandes <flavio at flaviof.com>
---
 tests/system-kmod-testsuite.at      | 2 ++
 tests/system-userspace-testsuite.at | 2 ++
 tests/testsuite.at                  | 2 ++
 3 files changed, 6 insertions(+)

diff --git a/tests/system-kmod-testsuite.at b/tests/system-kmod-testsuite.at
index eebb5b0..fc71a48 100644
--- a/tests/system-kmod-testsuite.at
+++ b/tests/system-kmod-testsuite.at
@@ -14,6 +14,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.])
 
+m4_ifdef([AT_COLOR_TESTS], [AT_COLOR_TESTS])
+
 m4_include([tests/ovs-macros.at])
 m4_include([tests/ovsdb-macros.at])
 m4_include([tests/ofproto-macros.at])
diff --git a/tests/system-userspace-testsuite.at b/tests/system-userspace-testsuite.at
index 239e6ea..3e03256 100644
--- a/tests/system-userspace-testsuite.at
+++ b/tests/system-userspace-testsuite.at
@@ -14,6 +14,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.])
 
+m4_ifdef([AT_COLOR_TESTS], [AT_COLOR_TESTS])
+
 m4_include([tests/ovs-macros.at])
 m4_include([tests/ovsdb-macros.at])
 m4_include([tests/ofproto-macros.at])
diff --git a/tests/testsuite.at b/tests/testsuite.at
index 7ac74df..c2f8e61 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -14,6 +14,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.])
 
+m4_ifdef([AT_COLOR_TESTS], [AT_COLOR_TESTS])
+
 m4_include([tests/ovs-macros.at])
 m4_include([tests/ovsdb-macros.at])
 m4_include([tests/ofproto-macros.at])
-- 
1.9.1




More information about the dev mailing list