5c49f522a506d14b682a0d931ccc06d964556b9d / tests/minunit.h · 808 bytes · raw
/**
* This is the MinUnit testing framework - http://www.jera.com/techinfo/jtns/jtn002.html
*/
#ifndef _MINUNIT_H_
#define _MINUNIT_H_
#define mu_assert(message, test) do { if (!(test)) return message; } while (0)
#define mu_run_test(test) do { const char *message = test(); tests_run++; \
if (message) return message; } while (0)
extern int tests_run;
static const char *test_sensor_paths(void);
static const char *test_fan_paths(void);
static const char *test_get_temp(void);
static const char *test_config_file(void);
static const char *test_settings(void);
static void handler(int signal);
static const char *test_sighup_receive(void);
static const char *test_settings_reload(void);
static const char *all_tests(void);
int tests(const char *program_path);
#endif