* Added a testsuite script.

This commit is contained in:
Sam Hocevar
2006-12-17 17:33:02 +00:00
committed by sam
parent 830ef2fa04
commit 690f129147
4 changed files with 17 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
SUBDIRS = src
DIST_SUBDIRS = $(SUBDIRS)
DIST_SUBDIRS = $(SUBDIRS) test
EXTRA_DIST = bootstrap AUTHORS
AUTOMAKE_OPTIONS = foreign dist-bzip2
+1
View File
@@ -43,5 +43,6 @@ CFLAGS="${CFLAGS} -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-protot
AC_OUTPUT([
Makefile
src/Makefile
test/Makefile
])
+3
View File
@@ -0,0 +1,3 @@
EXTRA_DIST = testsuite.sh
+12
View File
@@ -0,0 +1,12 @@
#!/bin/sh
ZZUF="$(dirname "$0")/../src/zzuf"
echo "Testing zzuf on itself:"
MD5_CAT=$($ZZUF cat $ZZUF | md5sum)
echo " - cat: $MD5_CAT"
MD5_DD_1=$($ZZUF dd if=$ZZUF bs=1 2>/dev/null | md5sum)
echo " - dd(bs=1): $MD5_DD_1"
MD5_DD_1024=$($ZZUF dd if=$ZZUF bs=1024 2>/dev/null | md5sum)
echo " - dd(bs=1024): $MD5_DD_1024"