~ubuntu-branches/ubuntu/trusty/apt/trusty

« back to all changes in this revision

Viewing changes to test/integration/test-apt-progress-fd-error

  • Committer: Package Import Robot
  • Author(s): Michael Vogt
  • Date: 2013-11-01 10:03:06 UTC
  • mfrom: (1.4.73 sid)
  • mto: (1.4.74 sid)
  • mto: This revision was merged to the branch mainline in revision 208.
  • Revision ID: package-import@ubuntu.com-20131101100306-2q5pugg4b93gn9h9
Tags: 0.9.13~exp1
* Improve the API for APT::Upgrade::Upgrade()
* Re-add "Calculating upgrade..." message
* move upgrade releated code into upgrade.{cc,h}
* Move ListUpdate/AquireUpdate into update.{cc,h}
* Add new apt-pkg/install-progress.h with APT::Progress::PackageManager
  progress reporting classes
* Move the status-fd progress reporting out of the pkgDPkgPM class
  and into PackageManagerProgressFd
* Fix reading dpkg --status-fd on reinstalls
* Add new APT::Status-deb822-Fd progress output
* add Acquire::http::Proxy-Auto-Detect to the apt.conf.5 manpage
  (closes: 726597)
* Fix detection when multiarch packages are reported by dpkg as
  disappeared Packages
* test/integration/run-tests: output the failed test names
* Code Cleanup in pkgDPkgPM
* prepare next ABI via #if (APT_PKG_MAJOR >= 4 && APT_PKG_MINOR >= 13)
* add new pid_t ExecFork(std::set<int> KeepFDs)
* Avoid flickering when "apt-get -o DpkgPM::Progress-Fancy=1" is use
* use sysconf(_SC_OPEN_MAX) in ExecFork()

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
set -e
 
3
 
 
4
TESTDIR=$(readlink -f $(dirname $0))
 
5
. $TESTDIR/framework
 
6
 
 
7
setupenvironment
 
8
configarchitecture 'amd64' 'i386'
 
9
 
 
10
mkdir -p usr/bin
 
11
touch usr/bin/file-conflict
 
12
 
 
13
buildsimplenativepackage 'foo1' 'amd64,i386' '0.8.15' 'stable' '' 'pkg with file conflicts' '' '' 'usr/'
 
14
buildsimplenativepackage 'foo2' 'amd64,i386' '0.8.15' 'stable' '' 'pkg with file conflicts' '' '' 'usr/'
 
15
 
 
16
setupaptarchive 
 
17
 
 
18
exec 3> apt-progress.log
 
19
testfailure aptget install foo1 foo2 -y -o APT::Status-Fd=3
 
20
msgtest "Ensure correct error message"
 
21
grep -q "aptarchive/pool/foo2_0.8.15_amd64.deb :40:trying to overwrite '/usr/bin/file-conflict', which is also in package foo1 0.8.15" apt-progress.log && msgpass || (cat apt-progress.log && msgfail)
 
22