From: Ian Kelling Date: Mon, 28 Jul 2014 11:57:35 +0000 (-0700) Subject: add basic test X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=03621d30ac352507dc561bb38e7eff338b7bdfd7;p=tee-unique add basic test --- diff --git a/test/test b/test/test new file mode 100755 index 0000000..c2f2109 --- /dev/null +++ b/test/test @@ -0,0 +1,46 @@ +#!/bin/bash -l +x=$(mktemp) +appendu $x<<'EOF' +abc + +*!@#$^&*))0_)()?>> $y + + +diff $x $y || echo check2 failed diffing $x and $y + +output=$(appendu $x "abc +bd" "abc") + +good_output="abc +bd" + +[[ $output == $good_output ]] || { echo check3 failed; echo "$output != $good_output"; } + +