From: Prarit Bhargava <prarit(a)redhat.com>
self-test: Add test for DIST=".eln"
There's never a dist-git commit with eln data so there's no self-test data
generated for DIST=".eln". To avoid any future errors with
DIST=".eln",
add a test to verify that it results in BUILD_TARGET value being set to
"eln".
Signed-off-by: Prarit Bhargava <prarit(a)redhat.com>
diff --git a/redhat/self-test/1005-dist-dump-variables.bats
b/redhat/self-test/1005-dist-dump-variables.bats
index blahblah..blahblah 100644
--- a/redhat/self-test/1005-dist-dump-variables.bats
+++ b/redhat/self-test/1005-dist-dump-variables.bats
@@ -16,3 +16,10 @@ load test-lib.bash
[ -d $BATS_TMPDIR ] && rm -rf $BATS_TMPDIR/data
check_status
}
+
+# Purpose: This test verifies the BUILD_TARGET value is "eln" for
DIST=".eln".
+@test "eln BUILD_TARGET test" {
+ bt=$(make DIST=".eln" dist-dump-variables | grep "BUILD_TARGET=" |
cut -d"=" -f2)
+ run [ "$bt" != "eln" ]
+ check_status
+}
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1919