You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

59 lines
1.2 KiB

  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture 'amd64' 'i386'
  7. buildsimplenativepackage 'testing' 'amd64' '0.1' 'stable'
  8. buildsimplenativepackage 'testing' 'all' '0.8.15' 'stable'
  9. buildsimplenativepackage 'testing2' 'amd64,i386' '0.8.15' 'stable'
  10. setupaptarchive
  11. # install native
  12. exec 3> apt-progress.log
  13. testsuccess aptget install testing=0.1 -y -o APT::Status-deb822-Fd=3
  14. testfileequal './apt-progress.log' 'Status: progress
  15. Percent: 0.0000
  16. Message: Running dpkg
  17. Status: progress
  18. Package: testing:amd64
  19. Percent: 0.0000
  20. Message: Preparing testing (amd64)
  21. Status: progress
  22. Package: testing:amd64
  23. Percent: 20.0000
  24. Message: Unpacking testing (amd64)
  25. Status: progress
  26. Package: testing:amd64
  27. Percent: 40.0000
  28. Message: Installing testing (amd64)
  29. Status: progress
  30. Percent: 40.0000
  31. Message: Running dpkg
  32. Status: progress
  33. Package: testing:amd64
  34. Percent: 40.0000
  35. Message: Preparing to configure testing (amd64)
  36. Status: progress
  37. Package: testing:amd64
  38. Percent: 60.0000
  39. Message: Configuring testing (amd64)
  40. Status: progress
  41. Package: testing:amd64
  42. Percent: 80.0000
  43. Message: Installed testing (amd64)
  44. '
  45. rm -f apt-progress*.log