|
From: Cyril H. <su...@li...> - 2013-05-06 15:22:07
|
The branch, master, has been updated
via 8c40131496399102fb4decd575e39cbf0968e3dd (commit)
from 3f9110428b52c978516c24ced41ed1fd445ab4ff (commit)
- Log -----------------------------------------------------------------
commit 8c40131496399102fb4decd575e39cbf0968e3dd
Author: Cyril Hrubis <ch...@su...>
Date: Mon May 6 16:54:01 2013 +0200
openposix: Fix generate-makefiles and speculative tests.
After the change that included dirname in test binary names the
testcases in foo/speculative/ directories became
"speculative_x-y.run-test". This commit adds special case to the
makefile generator so that they end up as foo_speculative_x-y.run-test
instead.
Signed-off-by: Cyril Hrubis <ch...@su...>
-----------------------------------------------------------------------
Summary of changes:
.../scripts/generate-makefiles.sh | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh
index 5a1b175..9c758d2 100755
--- a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh
+++ b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh
@@ -46,6 +46,12 @@ generate_makefile() {
test_prefix=$(basename "$prereq_dir")
+ # special case for speculative testcases
+ if [ "$test_prefix" = "speculative" ]; then
+ test_prefix=$(basename $(echo "$prereq_dir" | sed s/speculative//))
+ test_prefix="${test_prefix}_speculative"
+ fi
+
# Add all source files to $make_target_prereq_cache.
for prereq in $prereq_cache; do
# Stuff that needs to be tested.
hooks/post-receive
--
ltp
|