From 17b5530fb2de4c85c6ba1c679b2b21d7c5c33be5 Mon Sep 17 00:00:00 2001 From: Eric Schweitz Date: Wed, 5 Sep 2018 11:37:45 -0700 Subject: [PATCH] [flang] ctest may require that the path be specified, so add it to the input file name. Original-commit: flang-compiler/f18@751e88f108ffb06ba736b97ea2359e27a3ca136a Reviewed-on: https://github.com/flang-compiler/f18/pull/170 Tree-same-pre-rewrite: false --- flang/test/semantics/test_any.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/flang/test/semantics/test_any.sh b/flang/test/semantics/test_any.sh index 214c6f6..5378c8e 100755 --- a/flang/test/semantics/test_any.sh +++ b/flang/test/semantics/test_any.sh @@ -51,8 +51,9 @@ function internal_check() { r=0 for input in $*; do - CMD=$(cat ${input} | egrep '^[[:space:]]*![[:space:]]*RUN:[[:space:]]*' | sed -e 's/^[[:space:]]*![[:space:]]*RUN:[[:space:]]*//') - CMD=$(echo ${CMD} | sed -e "s:%s:${input}:g") - eval "( ${CMD} )" || (echo "test ${input} failed"; r=1) + finput="${srcdir}/${input}" + CMD=$(cat ${finput} | egrep '^[[:space:]]*![[:space:]]*RUN:[[:space:]]*' | sed -e 's/^[[:space:]]*![[:space:]]*RUN:[[:space:]]*//') + CMD=$(echo ${CMD} | sed -e "s:%s:${finput}:g") + eval "( ${CMD} )" || (echo "test ${finput} failed"; r=1) done exit $r -- 2.7.4