Files
swupd-client/test/functional/bundleadd/add-boot-file.bats
Otavio Pontes d2590a1b9e fullfile: Improve output of fullfile downloads
Print a "Validate downloaded files" message to separate 2 different progress bars
and improve the output when downloading extra fullfiles

Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
2019-10-18 09:27:25 -07:00

32 lines
762 B
Bash
Executable File

#!/usr/bin/env bats
load "../testlib"
test_setup() {
create_test_environment "$TEST_NAME"
# create a bundle with a boot file (in /usr/lib/kernel)
create_bundle -n test-bundle -f /usr/lib/kernel/test-file "$TEST_NAME"
}
@test "ADD014: Adding a bundle containing a boot file" {
run sudo sh -c "$SWUPD bundle-add $SWUPD_OPTS test-bundle"
assert_status_is 0
assert_file_exists "$TARGETDIR/usr/lib/kernel/test-file"
expected_output=$(cat <<-EOM
Loading required manifests...
No packs need to be downloaded
Validate downloaded files
Starting download of remaining update content. This may take a while...
Installing files...
Calling post-update helper scripts
Successfully installed 1 bundle
EOM
)
assert_is_output "$expected_output"
}