From: Tom Hromatka Date: Thu, 17 Dec 2020 14:59:52 +0000 (-0700) Subject: ftests: Invoke ftests.sh in Makefile.am X-Git-Tag: v2.0.3~11^2^2~30^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7ed07be2409c37d4d9b078d9f0c1114fb49cdee;p=thirdparty%2Flibcgroup.git ftests: Invoke ftests.sh in Makefile.am Invoke a wrapper script, ftests.sh, in the TESTS target within Makefile.am. This provides two advantages: 1. When new tests are added, Makefile.am does not need to be updated 2. This adds verbose logging to the continuous integration suite Signed-off-by: Tom Hromatka --- diff --git a/ftests/Makefile.am b/ftests/Makefile.am index b4b54a9b..52cf7920 100644 --- a/ftests/Makefile.am +++ b/ftests/Makefile.am @@ -1,7 +1,7 @@ # # libcgroup functional tests Makefile.am # -# Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2019-2020 Oracle and/or its affiliates. # Author: Tom Hromatka # @@ -19,11 +19,9 @@ # along with this library; if not, see . # -TESTS = 001-cgget-basic_cgget_v1.py \ - 002-cgdelete-recursive_delete.py \ - 003-cgget-basic_cgget_v2.py +TESTS = ftests.sh -EXTRA_DIST = *.py README.md default.conf +EXTRA_DIST = *.py README.md default.conf ftests.sh clean-local: clean-local-check .PHONY: clean-local-check diff --git a/ftests/ftests.py b/ftests/ftests.py index 6ac5ba70..fad462d4 100755 --- a/ftests/ftests.py +++ b/ftests/ftests.py @@ -304,10 +304,10 @@ def main(config): if failed_cnt > 0: return failed_cnt - if skipped_cnt > 0: - return AUTOMAKE_SKIPPED if passed_cnt > 0: return AUTOMAKE_PASSED + if skipped_cnt > 0: + return AUTOMAKE_SKIPPED return AUTOMAKE_HARD_ERROR diff --git a/ftests/ftests.sh b/ftests/ftests.sh new file mode 100755 index 00000000..ce754fb7 --- /dev/null +++ b/ftests/ftests.sh @@ -0,0 +1,2 @@ +#!/bin/bash +./ftests.py -l 10 -L ftests.log