]>
git.cameronkatri.com Git - cgit.git/blob - tests/t0107-snapshot.sh
5 prepare_tests
"Verify snapshot"
7 run_test
'get foo/snapshot/master.tar.gz' '
8 cgit_url "foo/snapshot/master.tar.gz" >trash/tmp
11 run_test
'check html headers' '
13 grep "Content-Type: application/x-gzip" &&
16 grep "Content-Disposition: inline; filename=.master.tar.gz."
19 run_test
'strip off the header lines' '
20 tail -n +6 trash/tmp > trash/master.tar.gz
24 verify gzip format' 'gunzip --test trash/master.tar.gz
28 rm -rf trash/master &&
29 tar -xf trash/master.tar.gz -C trash
32 run_test
'count files' '
33 c=$(ls -1 trash/master/ | wc -l) &&
37 run_test
'verify untarred file-5' '
38 grep "^5$" trash/master/file-5 &&
39 test $(cat trash/master/file-5 | wc -l) = 1