From: Petr Vorel Date: Thu, 15 Jul 2021 10:30:52 +0200 Subject: [LTP] [PATCH v6 5/5] CI: Run also make test-c, test-shell In-Reply-To: <20210715083052.7138-1-pvorel@suse.cz> References: <20210715083052.7138-1-pvorel@suse.cz> Message-ID: <20210715083052.7138-6-pvorel@suse.cz> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it run C and shell test separately (test-c and test-shell instead of test). Having them separate helps to easily navigate in CI. It's run on all jobs, but on cross compile jobs it's obviously skipped. Signed-off-by: Petr Vorel --- changes v5->v6: * run C and shell test separately (test-c and test-shell instead of test). Having them separate helps to easily navigate in CI. This required to add support to build.sh. .github/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f67f14927..9d37f49e4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -151,6 +151,16 @@ jobs: - name: Compile run: ./build.sh -r build -o ${TREE:-in} + - name: Test C API + run: | + case "$VARIANT" in cross-compile*) BUILD="cross";; i386) BUILD="32";; *) BUILD="native";; esac + ./build.sh -r test-c -o ${TREE:-in} -t $BUILD + + - name: Test shell API + run: | + case "$VARIANT" in cross-compile*) BUILD="cross";; i386) BUILD="32";; *) BUILD="native";; esac + ./build.sh -r test-shell -o ${TREE:-in} -t $BUILD + - name: Install run: | if [ "$MAKE_INSTALL" = 1 ]; then INSTALL_OPT="-i"; fi -- 2.32.0