|
CTS-SAT-1-OBC-Firmware
|
#include <stdlib.h>#include <stdio.h>#include <string.h>#include <setjmp.h>#include <time.h>
Go to the source code of this file.
Classes | |
| struct | greatest_suite_info |
| struct | greatest_type_info |
| struct | greatest_run_info |
Typedefs | |
| typedef struct greatest_suite_info | greatest_suite_info |
| typedef void | greatest_suite_cb(void) |
| typedef void | greatest_setup_cb(void *udata) |
| typedef void | greatest_teardown_cb(void *udata) |
| typedef int | greatest_equal_cb(const void *exp, const void *got, void *udata) |
| typedef int | greatest_printf_cb(const void *t, void *udata) |
| typedef struct greatest_type_info | greatest_type_info |
| typedef struct greatest_run_info | greatest_run_info |
Enumerations | |
| enum | GREATEST_FLAG { GREATEST_FLAG_VERBOSE = 0x01 , GREATEST_FLAG_FIRST_FAIL = 0x02 , GREATEST_FLAG_LIST_ONLY = 0x04 } |
| enum | greatest_test_res { GREATEST_TEST_RES_PASS = 0 , GREATEST_TEST_RES_FAIL = -1 , GREATEST_TEST_RES_SKIP = 1 } |
Functions | |
| void | greatest_do_pass (const char *name) |
| void | greatest_do_fail (const char *name) |
| void | greatest_do_skip (const char *name) |
| int | greatest_pre_test (const char *name) |
| void | greatest_post_test (const char *name, int res) |
| void | greatest_usage (const char *name) |
| int | greatest_do_assert_equal_t (const void *exp, const void *got, greatest_type_info *type_info, void *udata) |
| void | GREATEST_SET_SETUP_CB (greatest_setup_cb *cb, void *udata) |
| void | GREATEST_SET_TEARDOWN_CB (greatest_teardown_cb *cb, void *udata) |
| int | greatest_all_passed (void) |
Variables | |
| greatest_type_info | greatest_type_info_string |
| greatest_run_info | greatest_info |
| #define ASSERT GREATEST_ASSERT |
| #define ASSERT_EQ GREATEST_ASSERT_EQ |
| #define ASSERT_EQ_FMT GREATEST_ASSERT_EQ_FMT |
| #define ASSERT_EQ_FMTm GREATEST_ASSERT_EQ_FMTm |
| #define ASSERT_EQm GREATEST_ASSERT_EQm |
| #define ASSERT_EQUAL_T GREATEST_ASSERT_EQUAL_T |
| #define ASSERT_EQUAL_Tm GREATEST_ASSERT_EQUAL_Tm |
| #define ASSERT_FALSE GREATEST_ASSERT_FALSE |
| #define ASSERT_FALSEm GREATEST_ASSERT_FALSEm |
| #define ASSERT_IN_RANGE GREATEST_ASSERT_IN_RANGE |
| #define ASSERT_IN_RANGEm GREATEST_ASSERT_IN_RANGEm |
| #define ASSERT_OR_LONGJMP GREATEST_ASSERT_OR_LONGJMP |
| #define ASSERT_OR_LONGJMPm GREATEST_ASSERT_OR_LONGJMPm |
| #define ASSERT_STR_EQ GREATEST_ASSERT_STR_EQ |
| #define ASSERT_STR_EQm GREATEST_ASSERT_STR_EQm |
| #define ASSERTm GREATEST_ASSERTm |
| #define CHECK_CALL GREATEST_CHECK_CALL |
| #define FAIL GREATEST_FAIL |
| #define FAIL_WITH_LONGJMP GREATEST_FAIL_WITH_LONGJMP |
| #define FAIL_WITH_LONGJMPm GREATEST_FAIL_WITH_LONGJMPm |
| #define FAILm GREATEST_FAILm |
| #define GREATEST_ASSERT | ( | COND | ) |
| #define GREATEST_ASSERT_EQ | ( | EXP, | |
| GOT ) |
| #define GREATEST_ASSERT_EQ_FMT | ( | EXP, | |
| GOT, | |||
| FMT ) |
| #define GREATEST_ASSERT_EQ_FMTm | ( | MSG, | |
| EXP, | |||
| GOT, | |||
| FMT ) |
| #define GREATEST_ASSERT_EQm | ( | MSG, | |
| EXP, | |||
| GOT ) |
| #define GREATEST_ASSERT_EQUAL_T | ( | EXP, | |
| GOT, | |||
| TYPE_INFO, | |||
| UDATA ) |
| #define GREATEST_ASSERT_EQUAL_Tm | ( | MSG, | |
| EXP, | |||
| GOT, | |||
| TYPE_INFO, | |||
| UDATA ) |
| #define GREATEST_ASSERT_FALSE | ( | COND | ) |
| #define GREATEST_ASSERT_FALSEm | ( | MSG, | |
| COND ) |
| #define GREATEST_ASSERT_IN_RANGE | ( | EXP, | |
| GOT, | |||
| TOL ) |
| #define GREATEST_ASSERT_IN_RANGEm | ( | MSG, | |
| EXP, | |||
| GOT, | |||
| TOL ) |
| #define GREATEST_ASSERT_OR_LONGJMP | ( | COND | ) |
| #define GREATEST_ASSERT_OR_LONGJMPm | ( | MSG, | |
| COND ) |
| #define GREATEST_ASSERT_STR_EQ | ( | EXP, | |
| GOT ) |
| #define GREATEST_ASSERT_STR_EQm | ( | MSG, | |
| EXP, | |||
| GOT ) |
| #define GREATEST_ASSERTm | ( | MSG, | |
| COND ) |
| #define GREATEST_CHECK_CALL | ( | RES | ) |
| #define GREATEST_CLOCK_DIFF | ( | C1, | |
| C2 ) |
| #define GREATEST_DEFAULT_WIDTH 72 |
| #define GREATEST_FAIL | ( | ) |
| #define GREATEST_FAIL_WITH_LONGJMP | ( | ) |
| #define GREATEST_FAIL_WITH_LONGJMPm | ( | MSG | ) |
| #define GREATEST_FAILm | ( | MSG | ) |
| #define GREATEST_FAILURE_ABORT | ( | ) |
| #define GREATEST_FIRST_FAIL | ( | ) |
| #define GREATEST_FLOAT double |
| #define GREATEST_FLOAT_FMT "%g" |
| #define GREATEST_INIT | ( | ) |
| #define GREATEST_IS_VERBOSE | ( | ) |
| #define GREATEST_LIST_ONLY | ( | ) |
| #define GREATEST_MAIN_BEGIN | ( | ) |
| #define GREATEST_MAIN_DEFS | ( | ) |
| #define GREATEST_MAIN_END | ( | ) |
| #define GREATEST_PASS | ( | ) |
| #define GREATEST_PASSm | ( | MSG | ) |
| #define GREATEST_REPORT | ( | ) |
| #define GREATEST_RUN_SUITE | ( | S_NAME | ) |
| #define GREATEST_RUN_TEST | ( | TEST | ) |
| #define GREATEST_RUN_TEST1 | ( | TEST, | |
| ENV ) |
| #define GREATEST_SAVE_CONTEXT | ( | ) |
| #define GREATEST_SET_TIME | ( | NAME | ) |
| #define GREATEST_SKIP | ( | ) |
| #define GREATEST_SKIPm | ( | MSG | ) |
| #define GREATEST_STDOUT stdout |
| #define GREATEST_SUITE | ( | NAME | ) |
| #define GREATEST_TEST static greatest_test_res |
| #define GREATEST_USE_ABBREVS 1 |
| #define GREATEST_USE_LONGJMP 1 |
| #define GREATEST_USE_TIME 1 |
| #define GREATEST_VERSION_MAJOR 1 |
| #define GREATEST_VERSION_MINOR 0 |
| #define GREATEST_VERSION_PATCH 0 |
| #define PASS GREATEST_PASS |
| #define PASSm GREATEST_PASSm |
| #define RUN_SUITE GREATEST_RUN_SUITE |
| #define RUN_TEST GREATEST_RUN_TEST |
| #define RUN_TEST1 GREATEST_RUN_TEST1 |
| #define SET_SETUP GREATEST_SET_SETUP_CB |
| #define SET_TEARDOWN GREATEST_SET_TEARDOWN_CB |
| #define SKIP GREATEST_SKIP |
| #define SKIPm GREATEST_SKIPm |
| #define SUITE GREATEST_SUITE |
| #define TEST GREATEST_TEST |
| typedef int greatest_equal_cb(const void *exp, const void *got, void *udata) |
| typedef int greatest_printf_cb(const void *t, void *udata) |
| typedef struct greatest_run_info greatest_run_info |
| typedef void greatest_setup_cb(void *udata) |
| typedef void greatest_suite_cb(void) |
| typedef struct greatest_suite_info greatest_suite_info |
| typedef void greatest_teardown_cb(void *udata) |
| typedef struct greatest_type_info greatest_type_info |
| enum GREATEST_FLAG |
| enum greatest_test_res |
| int greatest_all_passed | ( | void | ) |
| int greatest_do_assert_equal_t | ( | const void * | exp, |
| const void * | got, | ||
| greatest_type_info * | type_info, | ||
| void * | udata ) |
| void greatest_do_fail | ( | const char * | name | ) |
| void greatest_do_pass | ( | const char * | name | ) |
| void greatest_do_skip | ( | const char * | name | ) |
| void greatest_post_test | ( | const char * | name, |
| int | res ) |
| int greatest_pre_test | ( | const char * | name | ) |
| void GREATEST_SET_SETUP_CB | ( | greatest_setup_cb * | cb, |
| void * | udata ) |
| void GREATEST_SET_TEARDOWN_CB | ( | greatest_teardown_cb * | cb, |
| void * | udata ) |
| void greatest_usage | ( | const char * | name | ) |
|
extern |
|
extern |