test-apt-get-install-deb 959 B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/sh
  2. set -e
  3. TESTDIR=$(readlink -f $(dirname $0))
  4. . $TESTDIR/framework
  5. setupenvironment
  6. configarchitecture "i386"
  7. # regression test for #754904
  8. testequal 'E: Unable to locate package /dev/null' aptget install -qq /dev/null
  9. # and ensure we fail for invalid debs
  10. cat > foo.deb <<EOF
  11. I'm not a deb, I'm a teapot.
  12. EOF
  13. testequal 'E: Sub-process Popen returned an error code (100)
  14. E: Encountered a section with no Package: header
  15. E: Problem with MergeLister for ./foo.deb
  16. E: The package lists or status file could not be parsed or opened.' aptget install -qq ./foo.deb
  17. # fakeroot is currently not found, framwork needs updating
  18. #
  19. #buildsimplenativepackage 'foo' 'all' '1.0'
  20. #
  21. #testequal 'Selecting previously unselected package foo.
  22. #(Reading database ... 0 files and directories currently installed.)
  23. # Preparing to unpack .../incoming/foo_1.0_all.deb ...
  24. #Unpacking foo (1.0) ...
  25. #Setting up foo (1.0) ...' aptget install -qq ./incoming/foo_1.0_all.deb