]>
Commit | Line | Data |
---|---|---|
3e2d8923 DK |
1 | #!/bin/sh |
2 | set -e | |
3 | ||
3abb6a6a DK |
4 | TESTDIR="$(readlink -f "$(dirname "$0")")" |
5 | . "$TESTDIR/framework" | |
3e2d8923 DK |
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 | ||
25b86db1 | 31 | testsuccessequal '000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000102 testpkg |
3e2d8923 DK |
32 | 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000101 testpkg |
33 | 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100 testpkg | |
34 | 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000099 testpkg | |
35 | 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000098 testpkg' aptftparchive contents aptarchive/ |