@@ -2,6 +2,7 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (c) 2019 Cyril Hrubis <chrubis@suse.cz>
# Copyright (c) 2020 Petr Vorel <pvorel@suse.cz>
+# Copyright (c) Linux Test Project, 2022-2024
set -e
top_builddir=$PWD/..
@@ -29,7 +30,13 @@ echo ' "tests": {'
first=1
-for test in `find testcases/ -name '*.c'|sort`; do
+if [ $# -gt 0 ]; then
+ tests=$*
+else
+ tests=$(find testcases/ -name '*.c' | sort)
+fi
+
+for test in $tests; do
a=$($top_builddir/metadata/metaparse -Iinclude -Itestcases/kernel/syscalls/utils/ "$test")
if [ -n "$a" ]; then
if [ -z "$first" ]; then