1 [= autogen template sh=check.sh =]
4 # This file contanes the shell template to run tests on the fixes
9 [ -d testdir ] && rm -rf testdir
19 export TARGET_MACHINE DESTDIR SRCDIR FIND_BASE VERBOSE
21 mkdir ${DESTDIR} ${SRCDIR}
27 _EVAL fix.files _stack _join "echo `
31 */* ) echo $f | sed 's;/[^/]*$;;' ;;
37 mkdir $f || mkdir -p $f
38 done ) > /dev/null 2>&1
44 _IF test_text _exist ! =][=
45 _IF replace _exist ! =]
46 echo No test for [=hackname=] in inc/[=
57 _ENDIF =] <<- _HACK_EOF_
60 #if defined( [=hackname _up=]_CHECK )
61 [=test_text "\t" _prefix=]
62 #endif /* [=hackname _up=]_CHECK */
71 find . -type f | sed 's;\./;;' | sort > ../LIST
72 ../../fixincl < ../LIST
79 echo "Only in inc: inc/$f"
81 diff -c inc/$f res/$f | \
82 sed -e '1,2s; .*;;' -e '/MACH_DIFF:/,/no uniform test,/d'
87 echo Test output check:
92 _IF test_text _exist =]
93 fgrep [=hackname _up=]_CHECK NEWDIFF > /dev/null 2>&1 || \
94 echo "[=_eval hackname _get "#%32s test failed. See testdir/inc/"
105 _eval _outfile "chmod +x %s" _printf _shell