diff options
author | David Phillips <david@yeah.nah.nz> | 2021-02-27 20:31:17 +1300 |
---|---|---|
committer | David Phillips <david@yeah.nah.nz> | 2021-02-27 20:32:40 +1300 |
commit | e843e9da835f058e09810cfeba7c60d0b270e7b3 (patch) | |
tree | 37345174f2d1e6741da4016267ec27c5139b50c3 /test_runner.c | |
parent | d84f7a93151aad059d6780362dea1776ff8ea358 (diff) | |
download | altimeter-e843e9da835f058e09810cfeba7c60d0b270e7b3.tar.xz |
Move unity-test-runner to submodule
Diffstat (limited to 'test_runner.c')
-rw-r--r-- | test_runner.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/test_runner.c b/test_runner.c deleted file mode 100644 index 7887118..0000000 --- a/test_runner.c +++ /dev/null @@ -1,21 +0,0 @@ -#include <stdio.h> - -#include "test_runner.h" -#include "unity.h" - -/* unity requires these, even if empty */ -void setUp(){}; -void tearDown(){}; - -int main(void) -{ - struct test_fn *tests = list_head(struct test_fn, test_list); - size_t count = list_entry_count(struct test_fn, test_list); - printf("Suite has %zd tests\n", count); - UNITY_BEGIN(); - for (size_t i = 0; i < count; i++) { - UnitySetTestFile(tests[i].file); - UnityDefaultTestRun(tests[i].fn, tests[i].name, tests[i].line); - } - return UNITY_END(); -} |