]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: (build-sys) add --conf=<path>
authorKarel Zak <kzak@redhat.com>
Tue, 4 Apr 2023 11:58:08 +0000 (13:58 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 4 Apr 2023 11:58:08 +0000 (13:58 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/ts/build-sys/config

index 764492d7b55fe6e79a2a7ab6a8330aba6538e91c..2d1291330d64aef71e3e185c74026341f08db57b 100755 (executable)
@@ -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