From: Scott Worley Date: Sun, 22 Oct 2017 00:27:26 +0000 (-0700) Subject: Automate overonion test X-Git-Url: http://git.scottworley.com/overonion/commitdiff_plain/636e3e5b935d67b52989f948d80fb151e330f21c Automate overonion test --- diff --git a/Makefile b/Makefile index 6e2eacb..f733156 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,7 @@ depend: *.c test: reverse_test ./reverse_test + ./overonion_test .PHONY: clean distclean depend test diff --git a/overonion_test b/overonion_test new file mode 100755 index 0000000..6ec2d61 --- /dev/null +++ b/overonion_test @@ -0,0 +1,11 @@ +#!/bin/bash + +set -e + +d=$(mktemp -d) +test_data=$0 + +./overonion-make-key --make_INSECURE_key "$d/key" +cmp --verbose <(./overonion e "$d/key" < "$test_data" | ./overonion d "$d/key") "$test_data" +rm -r "$d" +echo PASS