]>
git.saurik.com Git - apt.git/blob - test/integration/test-apt-helper-cat-file
4 TESTDIR
="$(readlink -f "$(dirname "$0")")"
8 TESTTOOL="${BUILDDIRECTORY}/..
/test
/interactive
-helper/test_fileutl
"
9 msgtest 'Check if we have build the test tool' "$TESTTOOL"
10 if [ -x "$TESTTOOL" ]; then
13 msgskip 'not available'
17 cat >rootdir/etc/apt/apt.conf.d/rev-as-compressor <<EOF
18 APT::Compressor::rev {
26 configcompression 'ALL'
31 compressfile ./test.txt
32 while read compressor extension command; do
33 if [ "$compressor" = '.' ]; then
36 FILE=".
/test.txt.
${extension}"
38 if [ -d /proc/self/fd ]; then
39 testsuccess runapt "${TESTTOOL}" "$FILE"
40 testequal '3' grep -c '/test.txt' rootdir/tmp/testsuccess.output
42 msgtest 'Test if /proc interface is available'
45 testsuccessequal "$(cat ./test.txt)" apthelper cat-file "$FILE"
46 done < "${TMPWORKINGDIRECTORY}/rootdir
/etc
/testcase
-compressor.conf
"