summaryrefslogtreecommitdiffstats
path: root/test/testswmr.sh.in
diff options
context:
space:
mode:
authorlrknox <lrknox>2017-03-22 03:58:41 (GMT)
committerlrknox <lrknox>2017-03-22 03:58:41 (GMT)
commitb461f1818b91ffafea3ca8b4ec984cb57d2e00db (patch)
tree9b72d2a1e16adc09e505551f876deb747f3daa2e /test/testswmr.sh.in
parentfa5ca5272d7aa6f25656541b72a24697b36dd52b (diff)
downloadhdf5-b461f1818b91ffafea3ca8b4ec984cb57d2e00db.zip
hdf5-b461f1818b91ffafea3ca8b4ec984cb57d2e00db.tar.gz
hdf5-b461f1818b91ffafea3ca8b4ec984cb57d2e00db.tar.bz2
Run all scripts using signal files between processes in their own directories to avoid accidental deletion of the signal files.
Diffstat (limited to 'test/testswmr.sh.in')
-rw-r--r--test/testswmr.sh.in18
1 files changed, 15 insertions, 3 deletions
diff --git a/test/testswmr.sh.in b/test/testswmr.sh.in
index 85e169a..f70d083 100644
--- a/test/testswmr.sh.in
+++ b/test/testswmr.sh.in
@@ -128,7 +128,13 @@ done
# different, occasionally the wrong file is deleted, interrupting the flow of
# the test. Running each of these tests in its own directory should eliminate
# the problem.
-mkdir -p swmr_test/.libs
+mkdir swmr_test
+for FILE in swmr*; do
+ case "$FILE" in
+ *.o) continue ;; ## don't copy the .o files
+ esac
+ cp $FILE swmr_test
+done
cp swmr* swmr_test
# With the --disable-shared option, swmr program files are built in the test
@@ -136,7 +142,13 @@ cp swmr* swmr_test
# script in the test directory. The programs or wrapper scripts in test should
# always be copied, swmr files in .libs should be copied only if they exists.
if [ -f .libs/swmr ]; then
- cp .libs/swmr* swmr_test/.libs
+ mkdir swmr_test/.libs
+ for FILE in .libs/swmr*; do
+ case "$FILE" in
+ *.o) continue ;; ## don't copy the .o files
+ esac
+ cp $FILE swmr_test/.libs
+ done
fi
cd swmr_test
@@ -536,7 +548,7 @@ done
###############################################################################
## Report and exit
###############################################################################
-
+cd ..
$DPRINT nerrors=$nerrors
if test $nerrors -eq 0 ; then
echo "SWMR tests passed."