Initial checkin.

This commit is contained in:
Pim van Pelt
2018-01-05 16:58:15 +01:00
commit 4679636fdc
42 changed files with 9600 additions and 0 deletions

18
unittest/main.c Normal file

@ -0,0 +1,18 @@
#include "test.h"
int test_failures=0;
int assert_count=0;
uint32_t mqtt_pub_count;
uint32_t mqtt_sub_count;
int main() {
test_buttons();
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;
}