aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/build_defs/pkg/build_test.sh
diff options
context:
space:
mode:
authorGravatar Benjamin Staffin <benley@gmail.com>2016-08-30 12:34:36 +0000
committerGravatar Klaus Aehlig <aehlig@google.com>2016-08-31 08:09:13 +0000
commite6fc254887252aad64544ffd975cb4946dedb782 (patch)
tree3d48e76ae52b12bc9c677b7eeaf8f4bb3aa6e0f9 /tools/build_defs/pkg/build_test.sh
parentea988b691aa9c1ceb67d05885b947ca58c13cbf7 (diff)
pkg_deb: Make distribution and urgency adjustable
-- Change-Id: Ib2066597f3aeec2b160dd56fd19c60d618cb925d Reviewed-on: https://bazel-review.googlesource.com/#/c/4280 MOS_MIGRATED_REVID=131699503
Diffstat (limited to 'tools/build_defs/pkg/build_test.sh')
-rwxr-xr-xtools/build_defs/pkg/build_test.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/build_defs/pkg/build_test.sh b/tools/build_defs/pkg/build_test.sh
index cbb44c3e04..b4c3b16bae 100755
--- a/tools/build_defs/pkg/build_test.sh
+++ b/tools/build_defs/pkg/build_test.sh
@@ -77,6 +77,10 @@ function dpkg_deb_supports_ctrl_tarfile() {
dpkg-deb --ctrl-tarfile "${test_data}" > /dev/null 2> /dev/null
}
+function get_changes() {
+ local input=$1
+ cat "${TEST_DATA_DIR}/${input}"
+}
function test_tar() {
local listing="./
@@ -127,6 +131,10 @@ function test_deb() {
expect_log "Package: titi"
expect_log "Depends: dep1, dep2"
+ get_changes titi_test_all.changes >$TEST_log
+ expect_log "Urgency: low"
+ expect_log "Distribution: trusty"
+
if ! dpkg_deb_supports_ctrl_tarfile test-deb.deb ; then
echo "Unable to test deb control files, too old dpkg-deb!" >&2
return 0