test-bug-689582-100-char-long-path-names 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture 'amd64'
  7. mkdir aptarchive/testpkg
  8. cd aptarchive/testpkg
  9. for i in $(seq 98 102); do
  10. touch "$(printf "%0${i}d" "$i")"
  11. done
  12. tar zcf data.tar.gz 00*
  13. echo 'Package: testpkg
  14. Version: 1-1
  15. Architecture: all
  16. Maintainer: Joe Sixpack <joe@example.org>
  17. Description: Package for test
  18. Section: debug
  19. Priority: extra' > control
  20. tar zcf control.tar.gz control
  21. echo '2.0' > debian-binary
  22. ar cr ../testpkg.deb debian-binary control.tar.gz data.tar.gz
  23. cd - > /dev/null
  24. testsuccessequal '000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000102 testpkg
  25. 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000101 testpkg
  26. 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100 testpkg
  27. 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000099 testpkg
  28. 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000098 testpkg' aptftparchive contents aptarchive/