bp=`basename $0 | sed s/^test_//`
in="$BP_DIR/bp_test/in/$bp.in"
out="$BP_DIR/bp_test/out/$bp.out"
-tmp="$BP_TMP/$bp.out"
-tmp_dir="$BP_TMP/test_tmp"
+tmp="$BP_TMP/$USER.$bp.out"
+tmp_dir="$BP_TMP/$USER.test_tmp"
log_file="$BP_TMP/$USER.test.log"
# Function to run a given command (verbose).
msg="${command/$BP_DIR/\$BP_DIR}"
msg="${msg//$BP_TMP/\$BP_TMP}"
+ msg="${msg/$BP_DIR/\$BP_DIR}"
echo -n "Testing $msg ... "
eval $command > /dev/null 2>&1
return
fi
- local src_cksum=`find $src_dir -type f | xargs cat | cksum`
- local dst_cksum=`find $dst_dir -type f | xargs cat | cksum`
+ local src_cksum=`find $src_dir -type f | grep -v "\.svn" | sort | xargs cat | cksum`
+ local dst_cksum=`find $dst_dir -type f | grep -v "\.svn" | sort | xargs cat | cksum`
if [ "$src_cksum" == "$dst_cksum" ]; then
echo_green "OK"