3 bp=`basename $0 | sed s/^test_//`
4 in="$BP_DIR/bp_test/in/$bp.in"
5 out="$BP_DIR/bp_test/out/$bp.out"
7 tmp_dir="$BP_TMP/test_tmp"
8 log_file="$BP_TMP/test.log"
14 echo -n "Testing $command ... "
15 eval $command > /dev/null 2>&1
22 eval $command > /dev/null 2>&1
25 function assert_no_diff
30 if [ ! -f $src ]; then
36 if [ ! -f $dst ]; then
42 local diff=`diff -q $src $dst`
44 if [ "$diff" != "" ]; then
53 function assert_files_exists
58 if [ ! -f $arg ]; then
63 if [ $error = 1 ]; then
76 echo "$msg" >> $log_file
83 echo -e "\033[32;38m$msg\033[0m"
90 echo -e "\033[31;38m$msg\033[0m"
95 if [ -f "$tmp" ]; then