mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-09-05 21:21:49 +00:00
test: Rebalance weights
Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
This commit is contained in:
@@ -140,4 +140,4 @@ test_setup() {
|
||||
assert_file_exists "$TARGETDIR"/"$THIRD_PARTY_BUNDLES_DIR"/test-repo2/usr/share/clear/bundles/test-bundle2
|
||||
assert_file_exists "$TPSTATEDIR"/bundles/test-bundle2
|
||||
}
|
||||
#WEIGHT=21
|
||||
#WEIGHT=24
|
||||
|
||||
@@ -69,4 +69,4 @@ test_setup() {
|
||||
assert_file_not_exists "$TPSTATEDIR"/bundles/test-bundle3
|
||||
|
||||
}
|
||||
#WEIGHT=6
|
||||
#WEIGHT=7
|
||||
|
||||
@@ -142,3 +142,4 @@ test_setup() {
|
||||
assert_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=12
|
||||
|
||||
@@ -89,7 +89,6 @@ test_setup() {
|
||||
assert_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=8
|
||||
|
||||
@test "TPR068: Adding bundles that share a binary" {
|
||||
|
||||
@@ -202,3 +201,4 @@ test_setup() {
|
||||
assert_regex_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=22
|
||||
|
||||
@@ -76,4 +76,4 @@ test_setup() {
|
||||
assert_file_exists "$STATEDIR"/3rd-party/repo2/bundles/test-bundle1
|
||||
|
||||
}
|
||||
#WEIGHT=13
|
||||
#WEIGHT=15
|
||||
|
||||
@@ -45,3 +45,4 @@ test_setup() {
|
||||
assert_file_exists "$TARGETDIR"/"$THIRD_PARTY_BUNDLES_DIR"/repo1/boot/file_4
|
||||
|
||||
}
|
||||
#WEIGHT=5
|
||||
|
||||
@@ -45,3 +45,4 @@ test_setup() {
|
||||
assert_file_exists "$TARGETDIR"/"$THIRD_PARTY_BUNDLES_DIR"/test-repo1/usr/share/clear/bundles/test-bundle1
|
||||
|
||||
}
|
||||
#WEIGHT=5
|
||||
|
||||
@@ -155,4 +155,4 @@ global_setup() {
|
||||
assert_regex_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=9
|
||||
#WEIGHT=10
|
||||
|
||||
@@ -131,4 +131,4 @@ global_setup() {
|
||||
assert_is_output --identical "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=8
|
||||
#WEIGHT=10
|
||||
|
||||
@@ -69,4 +69,4 @@ global_setup() {
|
||||
assert_is_output --identical "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=8
|
||||
#WEIGHT=9
|
||||
|
||||
@@ -123,4 +123,4 @@ test_setup() {
|
||||
assert_file_not_exists "$TARGETDIR"/"$THIRD_PARTY_BUNDLES_DIR"/test-repo1/usr/share/clear/bundles/test-bundle1
|
||||
|
||||
}
|
||||
#WEIGHT=22
|
||||
#WEIGHT=24
|
||||
|
||||
@@ -49,7 +49,6 @@ test_setup() {
|
||||
assert_file_exists "$PATH_PREFIX"/"$THIRD_PARTY_BIN_DIR"/bin_file1
|
||||
|
||||
}
|
||||
#WEIGHT=5
|
||||
|
||||
@test "TPR070: Removing all third party bundles that exported a binary that is still needed but non-exported" {
|
||||
|
||||
@@ -120,3 +119,4 @@ test_setup() {
|
||||
assert_file_exists "$TPTARGETDIR"/usr/bin/bin_file1
|
||||
|
||||
}
|
||||
#WEIGHT=21
|
||||
|
||||
@@ -100,4 +100,4 @@ test_setup() {
|
||||
assert_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=29
|
||||
#WEIGHT=33
|
||||
|
||||
@@ -77,4 +77,4 @@ global_setup() {
|
||||
assert_is_output --identical "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=7
|
||||
#WEIGHT=8
|
||||
|
||||
+1
-1
@@ -217,4 +217,4 @@ global_setup() {
|
||||
assert_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=9
|
||||
#WEIGHT=10
|
||||
|
||||
@@ -60,3 +60,4 @@ test_setup() {
|
||||
assert_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=12
|
||||
|
||||
+1
-1
@@ -254,4 +254,4 @@ test_setup() {
|
||||
assert_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=38
|
||||
#WEIGHT=40
|
||||
|
||||
@@ -72,3 +72,4 @@ test_setup() {
|
||||
sudo grep -vq "TEST_STRING" "$TARGETDIR"/"$THIRD_PARTY_BIN_DIR"/binary_3 || exit 1
|
||||
|
||||
}
|
||||
#WEIGHT=5
|
||||
|
||||
@@ -96,3 +96,4 @@ test_setup() {
|
||||
assert_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=8
|
||||
|
||||
+1
-1
@@ -90,4 +90,4 @@ test_setup() {
|
||||
assert_is_output --identical "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=8
|
||||
#WEIGHT=9
|
||||
|
||||
@@ -52,3 +52,4 @@ test_setup() {
|
||||
assert_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=8
|
||||
|
||||
@@ -63,4 +63,4 @@ test_setup(){
|
||||
assert_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=11
|
||||
#WEIGHT=12
|
||||
|
||||
+1
-1
@@ -57,4 +57,4 @@ test_setup(){
|
||||
assert_file_exists "$PATH_PREFIX"/"$THIRD_PARTY_BIN_DIR"/binary_5
|
||||
|
||||
}
|
||||
#WEIGHT=11
|
||||
#WEIGHT=12
|
||||
|
||||
+1
-1
@@ -143,4 +143,4 @@ test_setup() {
|
||||
assert_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=32
|
||||
#WEIGHT=35
|
||||
|
||||
@@ -196,3 +196,4 @@ test_setup() {
|
||||
assert_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=20
|
||||
|
||||
@@ -219,3 +219,4 @@ test_setup() {
|
||||
assert_equal "$template_file" "$template"
|
||||
|
||||
}
|
||||
#WEIGHT=23
|
||||
|
||||
@@ -239,3 +239,4 @@ test_setup() {
|
||||
assert_equal "$template_file" "$template"
|
||||
|
||||
}
|
||||
#WEIGHT=24
|
||||
|
||||
@@ -85,4 +85,4 @@ test_setup() {
|
||||
sudo grep -vq "TEST_STRING" "$TARGETDIR"/"$THIRD_PARTY_BIN_DIR"/binary_2 || exit 1
|
||||
|
||||
}
|
||||
#WEIGHT=9
|
||||
#WEIGHT=14
|
||||
|
||||
@@ -68,4 +68,4 @@ test_setup() {
|
||||
assert_in_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=10
|
||||
#WEIGHT=12
|
||||
|
||||
@@ -33,3 +33,4 @@ test_setup() {
|
||||
assert_output_is_empty
|
||||
|
||||
}
|
||||
#WEIGHT=14
|
||||
|
||||
@@ -182,3 +182,4 @@ global_setup() {
|
||||
assert_is_output --identical "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=10
|
||||
|
||||
@@ -146,3 +146,4 @@ global_setup() {
|
||||
assert_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=10
|
||||
|
||||
@@ -31,3 +31,4 @@ test_setup() {
|
||||
assert_output_is_empty
|
||||
|
||||
}
|
||||
#WEIGHT=10
|
||||
|
||||
@@ -55,3 +55,4 @@ test_setup() {
|
||||
assert_output_is_empty
|
||||
|
||||
}
|
||||
#WEIGHT=21
|
||||
|
||||
@@ -70,3 +70,4 @@ test_setup() {
|
||||
assert_regex_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=13
|
||||
|
||||
@@ -62,3 +62,4 @@ global_setup() {
|
||||
assert_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=9
|
||||
|
||||
@@ -42,3 +42,4 @@ test_setup() {
|
||||
assert_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=9
|
||||
|
||||
@@ -62,3 +62,4 @@ test_setup() {
|
||||
assert_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=17
|
||||
|
||||
@@ -48,3 +48,4 @@ test_setup() {
|
||||
assert_output_is_empty
|
||||
|
||||
}
|
||||
#WEIGHT=24
|
||||
|
||||
@@ -49,3 +49,4 @@ test_setup() {
|
||||
|
||||
}
|
||||
|
||||
#WEIGHT=3
|
||||
|
||||
@@ -20,3 +20,4 @@ test_setup() {
|
||||
assert_output_is_empty
|
||||
|
||||
}
|
||||
#WEIGHT=2
|
||||
|
||||
@@ -97,3 +97,4 @@ global_setup() {
|
||||
assert_is_output --identical "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=6
|
||||
|
||||
@@ -106,3 +106,4 @@ global_setup() {
|
||||
assert_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=5
|
||||
|
||||
@@ -20,3 +20,4 @@ test_setup() {
|
||||
assert_output_is_empty
|
||||
|
||||
}
|
||||
#WEIGHT=2
|
||||
|
||||
@@ -36,3 +36,4 @@ test_setup() {
|
||||
assert_output_is_empty
|
||||
|
||||
}
|
||||
#WEIGHT=3
|
||||
|
||||
@@ -39,3 +39,4 @@ test_setup() {
|
||||
assert_regex_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=2
|
||||
|
||||
@@ -55,3 +55,4 @@ global_setup() {
|
||||
assert_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=6
|
||||
|
||||
@@ -23,3 +23,4 @@ global_setup() {
|
||||
assert_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=1
|
||||
|
||||
@@ -23,3 +23,4 @@ test_setup() {
|
||||
assert_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=1
|
||||
|
||||
@@ -20,3 +20,4 @@ global_setup() {
|
||||
assert_output_is_empty
|
||||
|
||||
}
|
||||
#WEIGHT=1
|
||||
|
||||
@@ -97,3 +97,4 @@ test_teardown() {
|
||||
assert_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=17
|
||||
|
||||
@@ -59,3 +59,4 @@ global_setup() {
|
||||
assert_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=4
|
||||
|
||||
@@ -34,3 +34,4 @@ test_setup() {
|
||||
assert_output_is_empty
|
||||
|
||||
}
|
||||
#WEIGHT=5
|
||||
|
||||
@@ -319,4 +319,4 @@ test_teardown() {
|
||||
assert_file_exists "$TARGETDIR"/usr/share/clear/bundles/alias-bundle1
|
||||
|
||||
}
|
||||
#WEIGHT=7
|
||||
#WEIGHT=8
|
||||
|
||||
@@ -81,4 +81,4 @@ test_setup() {
|
||||
assert_file_not_exists "$TARGETDIR"/usr/share/clear/bundles/test-bundle3
|
||||
|
||||
}
|
||||
#WEIGHT=8
|
||||
#WEIGHT=11
|
||||
|
||||
@@ -242,4 +242,4 @@ test_teardown() {
|
||||
assert_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=6
|
||||
#WEIGHT=7
|
||||
|
||||
@@ -98,4 +98,4 @@ test_setup() {
|
||||
assert_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=6
|
||||
#WEIGHT=7
|
||||
|
||||
@@ -140,4 +140,4 @@ test_setup() {
|
||||
assert_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=9
|
||||
#WEIGHT=11
|
||||
|
||||
@@ -149,4 +149,4 @@ test_setup() {
|
||||
assert_regex_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=13
|
||||
#WEIGHT=16
|
||||
|
||||
@@ -48,4 +48,4 @@ test_setup() {
|
||||
assert_file_exists "$TARGETDIR"/test-file
|
||||
|
||||
}
|
||||
#WEIGHT=3
|
||||
#WEIGHT=4
|
||||
|
||||
@@ -46,4 +46,4 @@ test_setup() {
|
||||
assert_file_exists "$TARGETDIR"/file1
|
||||
|
||||
}
|
||||
#WEIGHT=3
|
||||
#WEIGHT=4
|
||||
|
||||
@@ -133,4 +133,4 @@ global_setup() {
|
||||
assert_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=5
|
||||
#WEIGHT=6
|
||||
|
||||
@@ -122,4 +122,4 @@ global_setup() {
|
||||
assert_regex_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=4
|
||||
#WEIGHT=5
|
||||
|
||||
@@ -83,4 +83,4 @@ global_setup() {
|
||||
assert_regex_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=6
|
||||
#WEIGHT=7
|
||||
|
||||
@@ -78,4 +78,4 @@ global_setup() {
|
||||
assert_regex_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=5
|
||||
#WEIGHT=7
|
||||
|
||||
@@ -60,4 +60,4 @@ global_setup() {
|
||||
assert_regex_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=2
|
||||
#WEIGHT=3
|
||||
|
||||
@@ -51,4 +51,4 @@ test_setup() {
|
||||
assert_is_output --identical "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=6
|
||||
#WEIGHT=8
|
||||
|
||||
@@ -33,4 +33,4 @@ test_setup() {
|
||||
assert_is_output --identical "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=3
|
||||
#WEIGHT=4
|
||||
|
||||
@@ -56,4 +56,4 @@ test_setup() {
|
||||
assert_is_output --identical "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=6
|
||||
#WEIGHT=7
|
||||
|
||||
@@ -99,4 +99,4 @@ global_setup() {
|
||||
assert_is_output --identical "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=3
|
||||
#WEIGHT=4
|
||||
|
||||
@@ -27,4 +27,4 @@ test_setup() {
|
||||
assert_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=3
|
||||
#WEIGHT=4
|
||||
|
||||
@@ -32,4 +32,4 @@ test_setup() {
|
||||
assert_is_output --identical "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=3
|
||||
#WEIGHT=4
|
||||
|
||||
@@ -58,4 +58,4 @@ test_setup() {
|
||||
assert_is_output --identical "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=6
|
||||
#WEIGHT=8
|
||||
|
||||
@@ -51,4 +51,4 @@ test_setup() {
|
||||
assert_is_output --identical "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=5
|
||||
#WEIGHT=6
|
||||
|
||||
@@ -24,4 +24,4 @@ test_setup() {
|
||||
assert_is_output --identical "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=2
|
||||
#WEIGHT=3
|
||||
|
||||
@@ -65,4 +65,4 @@ test_setup() {
|
||||
assert_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=5
|
||||
#WEIGHT=7
|
||||
|
||||
@@ -24,4 +24,4 @@ test_setup() {
|
||||
assert_is_output --identical "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=2
|
||||
#WEIGHT=3
|
||||
|
||||
@@ -47,4 +47,4 @@ test_setup() {
|
||||
assert_is_output --identical "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=5
|
||||
#WEIGHT=6
|
||||
|
||||
@@ -197,4 +197,4 @@ test_teardown() {
|
||||
assert_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=5
|
||||
#WEIGHT=6
|
||||
|
||||
@@ -246,4 +246,4 @@ test_setup() {
|
||||
assert_file_exists "$TARGETDIR"/common
|
||||
|
||||
}
|
||||
#WEIGHT=17
|
||||
#WEIGHT=22
|
||||
|
||||
@@ -98,4 +98,4 @@ test_setup() {
|
||||
assert_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=6
|
||||
#WEIGHT=8
|
||||
|
||||
@@ -44,4 +44,4 @@ test_setup() {
|
||||
assert_file_not_exists "$TARGETDIR"/usr/share/clear/bundles/test-bundle3
|
||||
|
||||
}
|
||||
#WEIGHT=3
|
||||
#WEIGHT=4
|
||||
|
||||
@@ -225,4 +225,4 @@ test_setup() {
|
||||
assert_file_exists "$TARGETDIR"/test-file6
|
||||
|
||||
}
|
||||
#WEIGHT=21
|
||||
#WEIGHT=29
|
||||
|
||||
@@ -39,4 +39,4 @@ test_setup() {
|
||||
assert_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=2
|
||||
#WEIGHT=3
|
||||
|
||||
@@ -35,4 +35,4 @@ test_setup() {
|
||||
assert_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=1
|
||||
#WEIGHT=2
|
||||
|
||||
@@ -23,4 +23,4 @@ test_setup() {
|
||||
assert_in_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=1
|
||||
#WEIGHT=2
|
||||
|
||||
@@ -30,4 +30,4 @@ test_setup() {
|
||||
)
|
||||
assert_is_output "$expected_output"
|
||||
}
|
||||
#WEIGHT=4
|
||||
#WEIGHT=5
|
||||
|
||||
@@ -73,4 +73,4 @@ test_setup() {
|
||||
)
|
||||
assert_is_output "$expected_output"
|
||||
}
|
||||
#WEIGHT=7
|
||||
#WEIGHT=9
|
||||
|
||||
@@ -168,4 +168,4 @@ test_setup() {
|
||||
assert_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=18
|
||||
#WEIGHT=24
|
||||
|
||||
@@ -70,4 +70,4 @@ load "../testlib"
|
||||
assert_in_output "Error: --bundles and --extra-files-only options are mutually exclusive"
|
||||
|
||||
}
|
||||
#WEIGHT=2
|
||||
#WEIGHT=1
|
||||
|
||||
@@ -207,4 +207,4 @@ test_setup() {
|
||||
assert_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=33
|
||||
#WEIGHT=36
|
||||
|
||||
@@ -50,4 +50,4 @@ test_setup() {
|
||||
assert_file_exists "$TARGETDIR"/usr/share/defaults/swupd/contenturl
|
||||
|
||||
}
|
||||
#WEIGHT=4
|
||||
#WEIGHT=5
|
||||
|
||||
@@ -72,4 +72,4 @@ global_setup() {
|
||||
)
|
||||
assert_in_output "$expected_output"
|
||||
}
|
||||
#WEIGHT=72
|
||||
#WEIGHT=2
|
||||
|
||||
@@ -42,4 +42,4 @@ global_setup() {
|
||||
assert_regex_is_output "$expected_output"
|
||||
|
||||
}
|
||||
#WEIGHT=1
|
||||
#WEIGHT=2
|
||||
|
||||
@@ -52,4 +52,4 @@ test_setup() {
|
||||
assert_file_exists "$TARGETDIR"/bar/test-file3
|
||||
|
||||
}
|
||||
#WEIGHT=4
|
||||
#WEIGHT=5
|
||||
|
||||
@@ -94,4 +94,4 @@ test_setup() {
|
||||
assert_file_not_exists "$TARGETDIR"/core
|
||||
|
||||
}
|
||||
#WEIGHT=3
|
||||
#WEIGHT=4
|
||||
|
||||
@@ -56,3 +56,4 @@ test_setup() {
|
||||
assert_is_output "1"
|
||||
|
||||
}
|
||||
#WEIGHT=4
|
||||
|
||||
@@ -72,4 +72,4 @@ test_setup() {
|
||||
assert_in_output "$expected_output2"
|
||||
|
||||
}
|
||||
#WEIGHT=1
|
||||
#WEIGHT=2
|
||||
|
||||
@@ -105,4 +105,4 @@ test_setup() {
|
||||
assert_file_not_exists "$TARGETDIR"/bar/file_4
|
||||
|
||||
}
|
||||
#WEIGHT=4
|
||||
#WEIGHT=9
|
||||
|
||||
@@ -50,4 +50,4 @@ test_setup() {
|
||||
assert_file_not_exists "$TARGETDIR"/bar/test-file3
|
||||
|
||||
}
|
||||
#WEIGHT=4
|
||||
#WEIGHT=5
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user