test-apt-progress-fd-deb822 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. set -e
  2. TESTDIR=$(readlink -f $(dirname $0))
  3. . $TESTDIR/framework
  4. setupenvironment
  5. configarchitecture 'amd64' 'i386'
  6. buildsimplenativepackage 'testing' 'amd64' '0.1' 'stable'
  7. buildsimplenativepackage 'testing' 'all' '0.8.15' 'stable'
  8. buildsimplenativepackage 'testing2' 'amd64,i386' '0.8.15' 'stable'
  9. setupaptarchive
  10. # install native
  11. exec 3> apt-progress.log
  12. testsuccess aptget install testing=0.1 -y -o APT::Status-deb822-Fd=3
  13. testequal "# and compare
  14. testequal "percent:0
  15. message: Running dpkg
  16. package: testing2
  17. percent: 0
  18. message: Installing testing2 (i386)
  19. package: testing2
  20. percent: 20
  21. message: Preparing testing2 (i386)
  22. package: testing2
  23. percent: 40
  24. message: Unpacking testing2 (i386)
  25. package: testing2
  26. percent: 60
  27. message: Preparing to configure testing2 (i386)
  28. percent: 60
  29. message: Running dpkg
  30. package: testing2
  31. percent: 60
  32. message: Configuring testing2 (i386)
  33. package: testing2
  34. percent: 80
  35. message: Configuring testing2 (i386)
  36. package: testing2
  37. percent: 100
  38. message: Installed testing2 (i386)" cat apt-progress.log
  39. rm -f apt-progress*.log