]> git.saurik.com Git - apt.git/blob - test/integration/test-bug-689582-100-char-long-path-names
changelog: Respect Dir setting for local changelog getting
[apt.git] / test / integration / test-bug-689582-100-char-long-path-names
1 #!/bin/sh
2 set -e
3
4 TESTDIR="$(readlink -f "$(dirname "$0")")"
5 . "$TESTDIR/framework"
6 setupenvironment
7 configarchitecture 'amd64'
8
9 mkdir aptarchive/testpkg
10 cd aptarchive/testpkg
11
12 for i in $(seq 98 102); do
13 touch "$(printf "%0${i}d" "$i")"
14 done
15 tar zcf data.tar.gz 00*
16
17 echo 'Package: testpkg
18 Version: 1-1
19 Architecture: all
20 Maintainer: Joe Sixpack <joe@example.org>
21 Description: Package for test
22 Section: debug
23 Priority: extra' > control
24 tar zcf control.tar.gz control
25
26 echo '2.0' > debian-binary
27 ar cr ../testpkg.deb debian-binary control.tar.gz data.tar.gz
28
29 cd - > /dev/null
30
31 testsuccessequal '000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000102 testpkg
32 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000101 testpkg
33 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100 testpkg
34 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000099 testpkg
35 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000098 testpkg' aptftparchive contents aptarchive/