From 154f16a52c232e8a1b7c86f02f1648258886ce43 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 4 Apr 2023 13:58:08 +0200 Subject: [PATCH] tests: (build-sys) add --conf= Signed-off-by: Karel Zak --- tests/ts/build-sys/config | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) 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 -- 2.47.2