From 5ba47aa15047dac14b93fdbc70befd9d3e6941df Mon Sep 17 00:00:00 2001 From: Patrick McCarty Date: Thu, 17 Mar 2016 12:22:33 -0700 Subject: [PATCH] test: add basic checks to ensure packs have been created Signed-off-by: Patrick McCarty --- test/functional/full-run-delta.bats | 10 ++++++++++ test/functional/full-run.bats | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/test/functional/full-run-delta.bats b/test/functional/full-run-delta.bats index 1b9a436..4e1ca94 100755 --- a/test/functional/full-run-delta.bats +++ b/test/functional/full-run-delta.bats @@ -39,6 +39,16 @@ setup() { # and with delta packs this time sudo $srcdir/swupd_make_pack --statedir $DIR 10 20 os-core sudo $srcdir/swupd_make_pack --statedir $DIR 10 20 test-bundle + + # zero packs should exist (non-zero size) for both versions + [ -s $DIR/www/10/pack-os-core-from-0.tar ] + [ -s $DIR/www/10/pack-test-bundle-from-0.tar ] + [ -s $DIR/www/20/pack-os-core-from-0.tar ] + [ -s $DIR/www/20/pack-test-bundle-from-0.tar ] + + # and delta packs should exist (non-zero size) for the latest version + [ -s $DIR/www/20/pack-os-core-from-10.tar ] + [ -s $DIR/www/20/pack-test-bundle-from-10.tar ] } teardown() { diff --git a/test/functional/full-run.bats b/test/functional/full-run.bats index 821c5db..4d00223 100755 --- a/test/functional/full-run.bats +++ b/test/functional/full-run.bats @@ -22,6 +22,10 @@ setup() { sudo $srcdir/swupd_make_fullfiles --statedir $DIR 10 sudo $srcdir/swupd_make_pack --statedir $DIR 0 10 os-core sudo $srcdir/swupd_make_pack --statedir $DIR 0 10 test-bundle + + # zero packs should exist (non-zero size) for the build + [ -s $DIR/www/10/pack-os-core-from-0.tar ] + [ -s $DIR/www/10/pack-test-bundle-from-0.tar ] } teardown() {