Add screen.[ch] and unit tests

This commit is contained in:
Pim van Pelt
2017-11-26 14:18:43 +01:00
parent 79bb900def
commit 3e2e9d4e5b
11 changed files with 344 additions and 46 deletions

View File

@ -1,8 +1,16 @@
#include "test.h"
int test_failures=0;
int assert_count=0;
int main() {
LOG(LL_INFO, ("test_widget"));
test_widget();
test_screen();
if (test_failures) {
LOG(LL_ERROR, ("%d test failures", test_failures));
return -1;
}
LOG(LL_INFO, ("All tests passed, %d assertions OK", assert_count));
return 0;
}