summaryrefslogtreecommitdiff
path: root/include/test/test.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2020-08-08 08:28:53 -0400
committerTom Rini <trini@konsulko.com>2020-08-08 08:28:53 -0400
commit626b2df302fce4bf91a240f186ba447046db4741 (patch)
treeb211041ab3bfd5876da4f6064bc7f666e0ab23c4 /include/test/test.h
parent7d914bc76b18b644e27d0cf367e745fc2c4fe1c7 (diff)
parentacb021e48c619b49029102acc781e904c6471c86 (diff)
Merge branch '2020-08-07-misc-improvements'
- SquashFS support - Assorted bugfixes
Diffstat (limited to 'include/test/test.h')
-rw-r--r--include/test/test.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/test/test.h b/include/test/test.h
index 029288de88..67c7d69d48 100644
--- a/include/test/test.h
+++ b/include/test/test.h
@@ -7,6 +7,7 @@
#define __TEST_TEST_H
#include <malloc.h>
+#include <linux/bitops.h>
/*
* struct unit_test_state - Entire state of test system
@@ -27,6 +28,16 @@ struct unit_test_state {
char actual_str[256];
};
+/* Test flags for each test */
+enum {
+ UT_TESTF_SCAN_PDATA = BIT(0), /* test needs platform data */
+ UT_TESTF_PROBE_TEST = BIT(1), /* probe test uclass */
+ UT_TESTF_SCAN_FDT = BIT(2), /* scan device tree */
+ UT_TESTF_FLAT_TREE = BIT(3), /* test needs flat DT */
+ UT_TESTF_LIVE_TREE = BIT(4), /* needs live device tree */
+ UT_TESTF_CONSOLE_REC = BIT(5), /* needs console recording */
+};
+
/**
* struct unit_test - Information about a unit test
*