From 233f8fde9f2798927ad93ecec0677603d1cd229d Mon Sep 17 00:00:00 2001 From: Jacajack Date: Mon, 30 May 2016 15:25:25 +0200 Subject: [PATCH] Improve (and fix) testing system --- .gitignore | 1 - tests/test.sh | 10 +++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index ff31868..af5181e 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,3 @@ bin *.o *.morse tests/*.morse -tests/*.txt diff --git a/tests/test.sh b/tests/test.sh index 77e4185..70b1289 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -1,3 +1,7 @@ -../bin/cmorse -i test.txt > out1.morse -../bin/cmorse -i test.txt -o out2.morse -../bin/cmorse -i out1.morse -d -o out1.txt +../bin/cmorse -i test.txt -o morse +../bin/cmorse -d -i morse -o text +if ! cmp test.txt text +then +echo "Files are not the same!" +fi +rm -f morse text