openposix: generate-makefiles.sh: Fix buildonly tests.
The buildonly tests were not compiled due to mistake
in the generate-makefiles script. Sorry.
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
diff --git a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh
index 9c758d2..b933033 100755
--- a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh
+++ b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh
@@ -36,6 +36,7 @@
local make_copy_prereq_cache=
local prereq_cache=
local tests=
+ local targets=
local makefile=$1
local prereq_dir=$2
@@ -64,6 +65,15 @@
fi
# Stuff that needs to be compiled.
+ if echo "$prereq" | grep -Eq '\.(run-test|sh|test)'; then
+ if [ "$targets" != "" ]; then
+ targets="$targets "
+ fi
+
+ targets="$targets${test_prefix}_$prereq"
+ fi
+
+ # Cache for generating compile rules.
case "$prereq" in
*.sh)
# Note that the sh scripts are copied later in order to
@@ -138,7 +148,7 @@
cat >> "$makefile.2" <<EOF
INSTALL_TARGETS+= ${tests}
-MAKE_TARGETS+= ${tests}
+MAKE_TARGETS+= ${targets}
EOF