3 # Copyright 2014 Divya Kothari <divya.s.kothari@gmail.com>
4 # Copyright 2014 Naha Maggu <maggu.neha@gmail.com>
6 [ -f testing.sh ] && . testing.sh
8 #testing "name" "command" "result" "infile" "stdin"
13 $zcatExe file.gz > zcatOut
14 testing "- decompresses a single file" "zcat file.gz > Tempfile && echo "yes"; diff Tempfile zcatOut && echo "yes"; rm -rf file* zcatOut Tempfile" "yes\nyes\n" "" ""
16 #testing "name" "command" "result" "infile" "stdin"
19 echo "Hi, Good morning !! I am a bzcat tester" > file3
20 tar -czf file1.gz file1
21 tar -czf file2.gz file2
22 tar -czf file3.gz file3
25 $zcatExe file1.gz file2.gz file3.gz > zcatOut
26 testing "- decompresses multiple files" "zcat file1.gz file2.gz file3.gz > Tempfile && echo "yes" ; diff Tempfile zcatOut && echo "yes"; rm -rf file* zcatOut Tempfile " "yes\nyes\n" "" ""