From: Karel Zak Date: Tue, 4 Apr 2023 11:58:08 +0000 (+0200) Subject: tests: (build-sys) add --conf= X-Git-Tag: v2.39-rc2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=154f16a52c232e8a1b7c86f02f1648258886ce43;p=thirdparty%2Futil-linux.git tests: (build-sys) add --conf= Signed-off-by: Karel Zak --- diff --git a/tests/ts/build-sys/config b/tests/ts/build-sys/config index 764492d7b5..2d1291330d 100755 --- a/tests/ts/build-sys/config +++ b/tests/ts/build-sys/config @@ -21,7 +21,11 @@ config_gen_dir="$top_srcdir/tools" ts_cd $top_builddir && make -j clean &> /dev/null -for conf in $config_gen_dir/config-gen.d/*.conf; do +wanted=$(ts_option_argument "conf" "$*") + +function make_conf { + local conf="$1" + ts_init_subtest $(basename $conf | sed 's/\.conf//') opts=$(ul_get_configuration $conf | sed 's/--enable-asan//') @@ -65,6 +69,15 @@ for conf in $config_gen_dir/config-gen.d/*.conf; do ts_cd $olddir ts_finalize_subtest -done +} + + +if [ -n "$wanted" ]; then + make_conf $wanted +else + for x in $config_gen_dir/config-gen.d/*.conf; do + make_conf "$x" + done +fi ts_finalize