Re: [OS-BUILD PATCHv3] Enable KUNIT tests for redhat kernel-modules-internal

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Nico Pache on gitlab.com
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1422#note_1051740936

Seems like a easy fix, Ill produce a test build and an commit with the
following changes. Ill follow up tomorrow!

```
diff --git a/include/kunit/test.h b/include/kunit/test.h
index 00b9ff7783ab..a635862228b3 100644
--- a/include/kunit/test.h
+++ b/include/kunit/test.h
@@ -373,13 +373,17 @@ static inline int kunit_run_all_tests(void)
  * module.
  *
  */
+#ifdef CONFIG_KUNIT
 #define kunit_test_suites(__suites...)
\
        __kunit_test_suites(__UNIQUE_ID(array),                         \
                            __UNIQUE_ID(suites),                        \
                            ##__suites)

 #define kunit_test_suite(suite)        kunit_test_suites(&suite)
-
+#else
+#define kunit_test_suites(__suites...)
+#define kunit_test_suite(suite)
+#endif
 #define kunit_suite_for_each_test_case(suite, test_case)               \
        for (test_case = suite->test_cases; test_case->run_case; test_case++)
```
_______________________________________________
kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux