Skip to contentSkip to conversation

test_buildhistory: Add test to verify that LICENSE is added

PATCH New sana kazi 1 participant 1 message Jul 19, 2021

lore
Share & tools
lore

sana kazi

author
#0 lore raw

PATCH 1/1 test_buildhistory: Add test to verify that LICENSE is added

From: Sana Kazi <[email protected]>

Added test case which uses BUILDHISTORY_EXPORT_RECIPE_VARIABLES and BUILDHISTORY_EXPORT_PACKAGE_VARIABLES to add LICENSE for glibc as a sample recipe to buildhistory and the test verifies that expected license value is written in latest file.

---
 .../recipes-test/glibc/glibc_%.bbappend       |  2 +
 .../oeqa/selftest/cases/test_buildhistory.py  | 46 +++++++++++++++++++
 2 files changed, 48 insertions(+)
 create mode 100644 meta-selftest/recipes-test/glibc/glibc_%.bbappend
 create mode 100644 meta/lib/oeqa/selftest/cases/test_buildhistory.py
meta-selftest/recipes-test/glibc/glibc_%.bbappend new file +2 -0
new file mode 100644
index 0000000000..205720982c
@@ -0,0 +1,2 @@
+# This bbappend is used to alter the recipe using the test_recipe.inc file created by tests.
+include test_recipe.inc
meta/lib/oeqa/selftest/cases/test_buildhistory.py new file +46 -0

46 lines not on this page · raw message

Signature · 1 line
2.17.1