mirror of https://github.com/nirenjan/libx52.git
Cleanup generated test formatting
parent
7b423f4ea0
commit
87ad48a37f
|
@ -161,9 +161,7 @@ class Test():
|
||||||
print(_TEST_FUNCTION_FOOTER_NORMAL);
|
print(_TEST_FUNCTION_FOOTER_NORMAL);
|
||||||
|
|
||||||
_TEST_GROUP_HEADER = "const struct CMUnitTest tests[] = {"
|
_TEST_GROUP_HEADER = "const struct CMUnitTest tests[] = {"
|
||||||
_TEST_GROUP_FOOTER = """};
|
_TEST_GROUP_FOOTER = "};"
|
||||||
|
|
||||||
"""
|
|
||||||
|
|
||||||
class TestGroup():
|
class TestGroup():
|
||||||
"""Test group class, contains multiple tests"""
|
"""Test group class, contains multiple tests"""
|
||||||
|
@ -187,17 +185,6 @@ class TestGroup():
|
||||||
for test in self.tests:
|
for test in self.tests:
|
||||||
test.print()
|
test.print()
|
||||||
|
|
||||||
_MAIN_HEADER = """
|
|
||||||
int main(void)
|
|
||||||
{
|
|
||||||
cmocka_set_message_output(CM_OUTPUT_TAP);
|
|
||||||
|
|
||||||
"""
|
|
||||||
_MAIN_FOOTER = """
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
"""
|
|
||||||
|
|
||||||
_MAIN = """
|
_MAIN = """
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue