diff mbox series

[yocto-autobuilder-helper] Add bitbake-extra-tests to cover taskexp ncurses UI.

Message ID 20240218124132.336444-1-richard.purdie@linuxfoundation.org
State New
Headers show
Series [yocto-autobuilder-helper] Add bitbake-extra-tests to cover taskexp ncurses UI. | expand

Commit Message

Richard Purdie Feb. 18, 2024, 12:41 p.m. UTC
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 config.json                 |  4 ++++
 scripts/bitbake-extra-tests | 14 ++++++++++++++
 2 files changed, 18 insertions(+)
 create mode 100755 scripts/bitbake-extra-tests
diff mbox series

Patch

diff --git a/config.json b/config.json
index 3032fd7..3a2ab49 100644
--- a/config.json
+++ b/config.json
@@ -276,6 +276,10 @@ 
             "step4" : {
                 "shortname" : "OEQA core tests",
                 "EXTRACMDS" : ["oe-test core"]
+            },
+            "step5" : {
+                "shortname" : "Bitbake extra tests",
+                "EXTRACMDS" : ["${SCRIPTSDIR}/bitbake-extra-tests"]
             }
         },
         "reproducible" : {
diff --git a/scripts/bitbake-extra-tests b/scripts/bitbake-extra-tests
new file mode 100755
index 0000000..39f248d
--- /dev/null
+++ b/scripts/bitbake-extra-tests
@@ -0,0 +1,14 @@ 
+#!/bin/bash
+TASK_EXP_UNIT_TEST=1 bitbake -g -u taskexp_ncurses zlib acl
+if [ $? -ne 0 ]; then
+    exit 1
+fi
+TASK_EXP_UNIT_TEST=1 bitbake -g -u taskexp_ncurses zlib acl foo
+if [ $? -ne 1 ]; then
+    exit 1
+fi
+TASK_EXP_UNIT_TEST_NOTERM=1 bitbake -g -u taskexp_ncurses quilt
+if [ $? -ne 0 ]; then
+    exit 1
+fi
+