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