[flang] ctest may require that the path be specified, so add it to the input file...
authorEric Schweitz <eschweitz@nvidia.com>
Wed, 5 Sep 2018 18:37:45 +0000 (11:37 -0700)
committerGitHub <noreply@github.com>
Tue, 11 Sep 2018 21:01:25 +0000 (14:01 -0700)
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

index 214c6f6..5378c8e 100755 (executable)
@@ -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