]>
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 -e "Content-Type: application/x-gzip" &&
16 grep -e "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
23 run_test
'verify gzip format' 'gunzip --test trash/master.tar.gz'
25 rm -rf trash/master &&
26 tar -xf trash/master.tar.gz -C trash
29 run_test
'count files' '
30 c=$(ls -1 trash/master/ | wc -l) &&
34 run_test
'verify untarred file-5' '
35 grep -e "^5$" trash/master/file-5 &&
36 test $(cat trash/master/file-5 | wc -l) = 1