fi
if [ -z "${template[body]}" ]; then
- template[body]="This is just test message (#${gen_msg_cnt})"
+ template[body]="This is just a test message (#${gen_msg_cnt})"
fi
if [ -z "${template[from]}" ]; then
echo " PASS"
else
echo " FAIL"
- echo " Expected output: $expected"
- echo " Actual output: $output"
+ testname=test-$(printf "%03d" $tests)
+ echo "$expected" > $testname.expected
+ echo "$output" > $testname.output
+ diff -u $testname.expected $testname.output || true
test_failures=$((test_failures + 1))
fi
}