[flang] Throw error in case of missing listed test

Original-commit: flang-compiler/f18@dabc0ba0e0
This commit is contained in:
Jinxin Yang 2019-10-28 10:34:47 -07:00 committed by Jinxin (Brian) Yang
parent 004a4c577b
commit 2839cb3835
1 changed files with 1 additions and 0 deletions

View File

@ -63,6 +63,7 @@ function internal_check() {
gr=0
for input in ${srcdir}/$*; do
[[ ! -f $input ]] && die "File not found: $input"
CMD=$(cat ${input} | egrep '^[[:space:]]*![[:space:]]*RUN:[[:space:]]*' | sed -e 's/^[[:space:]]*![[:space:]]*RUN:[[:space:]]*//')
CMD=$(echo ${CMD} | sed -e "s:%s:${input}:g")
if egrep -q -e '%t' <<< ${CMD} ; then