[Nice-commit] Nice/regtest regtest,1.29,1.30
Brought to you by:
bonniot
|
From: Artem Gr K. <ar...@us...> - 2005-04-03 10:40:24
|
Update of /cvsroot/nice/Nice/regtest In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10855/regtest Modified Files: regtest Log Message: Use /usr/bin/printf for escape sequences. Index: regtest =================================================================== RCS file: /cvsroot/nice/Nice/regtest/regtest,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** regtest 2 Apr 2005 12:09:51 -0000 1.29 --- regtest 3 Apr 2005 10:40:15 -0000 1.30 *************** *** 16,19 **** --- 16,24 ---- JAVA=${JAVA-java} + printf() + { + /usr/bin/printf "$@" + } + echo() { *************** *** 42,51 **** pkg_compile_error=`expr $pkg_compile_error + 1` ! echo "\n\n\n$1 produced a compilation error" echo "Compiler output is:" echo echo "###############" cat $1/compile.out ! echo "###############\n" } --- 47,56 ---- pkg_compile_error=`expr $pkg_compile_error + 1` ! printf "\n\n\n%s produced a compilation error\n" $1 echo "Compiler output is:" echo echo "###############" cat $1/compile.out ! printf "###############\n\n" } *************** *** 54,63 **** pkg_new=`expr $pkg_new + 1` ! echo "\n\n\n$1 is a NEW package" echo "Program output is:" echo echo "###############" cat $1/current.out ! echo "###############\n" echo -n "Is that correct? (y/n) " read correct --- 59,68 ---- pkg_new=`expr $pkg_new + 1` ! printf "\n\n\n%s is a NEW package\n" $1 echo "Program output is:" echo echo "###############" cat $1/current.out ! printf "###############\n\n" echo -n "Is that correct? (y/n) " read correct *************** *** 71,79 **** { pkg_broken=`expr $pkg_broken + 1` ! echo "$1 produced messages on stderr. It must be BROKEN." echo echo "###############" cat $1/current.err ! echo "###############\n" } --- 76,84 ---- { pkg_broken=`expr $pkg_broken + 1` ! printf "%s produced messages on stderr. It must be BROKEN.\n" $1 echo echo "###############" cat $1/current.err ! printf "###############\n\n" } *************** *** 153,155 **** # There was some error found ! exit 1 --- 158,160 ---- # There was some error found ! exit 1 \ No newline at end of file |