diff options
author | Juergen Kahrs <Juergen.Kahrs@googlemail.com> | 2013-06-01 18:28:35 +0200 |
---|---|---|
committer | Juergen Kahrs <Juergen.Kahrs@googlemail.com> | 2013-06-01 18:28:35 +0200 |
commit | 0ac63db595a009d1f07dba8246e52710348b0798 (patch) | |
tree | 1cf39914cef7ad3d9d055e672d46407edf4968e9 | |
parent | 37be8a17ee9e955dec8bbddb8cd2b31487e44a0c (diff) | |
download | egawk-0ac63db595a009d1f07dba8246e52710348b0798.tar.gz egawk-0ac63db595a009d1f07dba8246e52710348b0798.tar.bz2 egawk-0ac63db595a009d1f07dba8246e52710348b0798.zip |
New test cases profile4 and profile5 from master branch.
-rwxr-xr-x | cmake/basictest | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cmake/basictest b/cmake/basictest index beecb6ae..210ed224 100755 --- a/cmake/basictest +++ b/cmake/basictest @@ -297,6 +297,7 @@ function incdupe7() { ${COMPARE} ${SRCDIR}/${TESTCASE}.ok _${TESTCASE} && rm -f _${TESTCASE} } +# TODO: The compare operation passes even when there are diffs. function readfile() { $GAWKEXE -l readfile 'BEGIN {printf "%s", readfile("Makefile")}' >_${TESTCASE} 2>&1 || echo EXIT CODE: $? >>_${TESTCASE} ${COMPARE} Makefile _${TESTCASE} && rm -f _${TESTCASE} || cp -p Makefile ${TESTCASE}.ok @@ -465,6 +466,18 @@ function profile3() { ${COMPARE} ${SRCDIR}/${TESTCASE}.ok _${TESTCASE} && rm -f _${TESTCASE} } +function profile4() { + GAWK_NO_PP_RUN=1 $GAWKEXE --profile=ap-${TESTCASE}.out -f ${SRCDIR}/${TESTCASE}.awk > /dev/null + sed 1,2d < ap-${TESTCASE}.out > _${TESTCASE}; rm ap-${TESTCASE}.out + ${COMPARE} ${SRCDIR}/${TESTCASE}.ok _${TESTCASE} && rm -f _${TESTCASE} +} + +function profile5() { + GAWK_NO_PP_RUN=1 $GAWKEXE --profile=ap-${TESTCASE}.out -f ${SRCDIR}/${TESTCASE}.awk > /dev/null + sed 1,2d < ap-${TESTCASE}.out > _${TESTCASE}; rm ap-${TESTCASE}.out + ${COMPARE} ${SRCDIR}/${TESTCASE}.ok _${TESTCASE} && rm -f _${TESTCASE} +} + function posix2008sub() { $GAWKEXE --posix -f ${SRCDIR}/${TESTCASE}.awk > _${TESTCASE} 2>&1 ${COMPARE} ${SRCDIR}/${TESTCASE}.ok _${TESTCASE} && rm -f _${TESTCASE} |