~joetalbott/ubuntu-test-cases/boottest_rc_file

« back to all changes in this revision

Viewing changes to tests/getpkgsrc/debian/tests/getpkgsrc.template

  • Committer: Joe Talbott
  • Date: 2015-01-29 14:28:51 UTC
  • mfrom: (396.1.5 boottest)
  • Revision ID: joe.talbott@canonical.com-20150129142851-ljkip63yx7th9iok
merge with boottest branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
set -e
3
3
 
4
4
cd ${ADT_ARTIFACTS}
5
 
dpkg-query -f '${binary:Package}\n' -W > installed.packages
 
5
# List installed packages, removing the ':{arch}' suffix
 
6
dpkg-query -f '${binary:Package}\n' -W | sed -e 's/:.*$//' > installed.packages
6
7
# adt-run complains and fails the test if sdterr is not empty
7
8
# redirect stderr to preserve the output for reference
8
9
apt-get source {{ source_package }} 2> apt-get-source.stderr
9
 
rc=$?
10
 
exit $rc
 
10
# Get the defined binary packages
 
11
grep ^Package: {{ source_package }}*/debian/control | sed -e 's/^Package: //' | sort > binary.packages
 
12
# Get the binary packages already installed
 
13
comm  -1 -2 binary.packages installed.packages > needs_install.packages