Branch
Hash :
fda7befb
Author :
Thomas de Grivel
Date :
2025-09-18T18:59:39
make test_ikc3 test_kc3s run in parallel with modular test infrastructure
#!/bin/sh
## kc3
## Copyright from 2022 to 2025 kmx.io <contact@kmx.io>
##
## Permission is hereby granted to use this software granted the above
## copyright notice and this permission paragraph are included in all
## copies and substantial portions of this software.
##
## THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF
## PURPOSE AND PERFORMANCE. IN NO EVENT WHATSOEVER SHALL THE
## AUTHOR BE CONSIDERED LIABLE FOR THE USE AND PERFORMANCE OF
## THIS SOFTWARE.
TEST_NAME=kc3s
SRC_TOP="$(dirname "$(cd "$(dirname "$0")" && pwd)")"
cd "${SRC_TOP}/test/${TEST_NAME}" || exit
. ../test.subr
if [ $# = 0 ]; then
if [ "x${KC3S_TEST}" = "x" ]; then
TARGETS="$(ls -1 *.kc3 | sed -e 's/[.]kc3$//')"
else
TARGETS="$(echo "${KC3S_TEST}" | tr ' ' '\n')"
fi
else
TARGETS="$(echo "$@" | tr ' ' '\n')"
fi
test_run "$KC3S" $TARGETS