mirror of
https://github.com/clearlinux/swupd-server.git
synced 2026-08-19 04:57:43 +00:00
test: add basic checks to ensure packs have been created
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user