Test *tests_fmt_tests(void) { EMB_UNIT_TESTFIXTURES(fixtures) { new_TestFixture(test_fmt_byte_hex), new_TestFixture(test_fmt_bytes_hex_reverse), new_TestFixture(test_fmt_u32_hex), new_TestFixture(test_fmt_u64_hex), new_TestFixture(test_fmt_u32_dec), new_TestFixture(test_fmt_u64_dec_a), new_TestFixture(test_fmt_u64_dec_b), new_TestFixture(test_fmt_u64_dec_c), new_TestFixture(test_fmt_u16_dec), new_TestFixture(test_fmt_s32_dec), new_TestFixture(test_fmt_s16_dec), new_TestFixture(test_fmt_s16_dfp), new_TestFixture(test_fmt_s32_dfp), new_TestFixture(test_fmt_strlen), new_TestFixture(test_fmt_str), new_TestFixture(test_scn_u32_dec), new_TestFixture(test_fmt_lpad), }; EMB_UNIT_TESTCALLER(fmt_tests, NULL, NULL, fixtures); return (Test *)&fmt_tests; }
Test *tests_netif_tests(void) { EMB_UNIT_TESTFIXTURES(fixtures) { new_TestFixture(test_ng_netif_add__KERNEL_PID_UNDEF), new_TestFixture(test_ng_netif_add__memfull), new_TestFixture(test_ng_netif_add__success), new_TestFixture(test_ng_netif_add__duplicate_entry), new_TestFixture(test_ng_netif_remove__KERNEL_PID_UNDEF), new_TestFixture(test_ng_netif_remove__not_an_if), new_TestFixture(test_ng_netif_remove__success), new_TestFixture(test_ng_netif_get__empty), new_TestFixture(test_ng_netif_get__success_3_minus_one), new_TestFixture(test_ng_netif_get__full), new_TestFixture(test_ng_netif_addr_to_str__out_too_short), new_TestFixture(test_ng_netif_addr_to_str__success), new_TestFixture(test_ng_netif_addr_from_str__out_too_short), new_TestFixture(test_ng_netif_addr_from_str__omitted_delimitter), new_TestFixture(test_ng_netif_addr_from_str__ill_formated2), new_TestFixture(test_ng_netif_addr_from_str__dash_delimitter), new_TestFixture(test_ng_netif_addr_from_str__zero_omitted_back), new_TestFixture(test_ng_netif_addr_from_str__zero_omitted_front), new_TestFixture(test_ng_netif_addr_from_str__ill_trailing_delimitter), new_TestFixture(test_ng_netif_addr_from_str__ill_leading_delimitter), new_TestFixture(test_ng_netif_addr_from_str__ill_extra_delimitter), new_TestFixture(test_ng_netif_addr_from_str__success), }; EMB_UNIT_TESTCALLER(netif_tests, set_up, NULL, fixtures); return (Test *)&netif_tests; }
Test *tests_nanocoap_tests(void) { EMB_UNIT_TESTFIXTURES(fixtures) { new_TestFixture(test_nanocoap__hdr), new_TestFixture(test_nanocoap__get_req), new_TestFixture(test_nanocoap__put_req), new_TestFixture(test_nanocoap__get_multi_path), new_TestFixture(test_nanocoap__get_path_trailing_slash), new_TestFixture(test_nanocoap__get_root_path), new_TestFixture(test_nanocoap__get_max_path), new_TestFixture(test_nanocoap__get_path_too_long), new_TestFixture(test_nanocoap__get_query), new_TestFixture(test_nanocoap__get_multi_query), new_TestFixture(test_nanocoap__option_add_buffer_max), new_TestFixture(test_nanocoap__server_get_req), new_TestFixture(test_nanocoap__server_reply_simple), new_TestFixture(test_nanocoap__server_get_req_con), new_TestFixture(test_nanocoap__server_reply_simple_con), new_TestFixture(test_nanocoap__server_option_count_overflow_check), new_TestFixture(test_nanocoap__server_option_count_overflow), }; EMB_UNIT_TESTCALLER(nanocoap_tests, NULL, NULL, fixtures); return (Test *)&nanocoap_tests; }
TestRef TwoWirePlus_BaseTest_RunTests(void) { EMB_UNIT_TESTFIXTURES(fixtures) { new_TestFixture("Parameter: Check TWOWIREPLUS_RINGBUFFER_SIZE", TwoWirePlus_BaseTest_Parameter_TC1), new_TestFixture("Constructor: Register initialization", TwoWirePlus_BaseTest_Constructor_TC1), new_TestFixture("Constructor: Ring buffer initialization", TwoWirePlus_BaseTest_Constructor_TC2), new_TestFixture("beginTransmission: Check correct address is sent", TwoWirePlus_BaseTest_beginTransmission_TC1), new_TestFixture("beginTransmission: No changes to TWDR", TwoWirePlus_BaseTest_beginTransmission_TC2), new_TestFixture("write: Check data is written to TWDR", TwoWirePlus_BaseTest_write_TC1), new_TestFixture("write: Check data is written to ring-buffer", TwoWirePlus_BaseTest_write_TC2), new_TestFixture("beginReception: Check correct address is sent", TwoWirePlus_BaseTest_beginReception_TC1), new_TestFixture("beginReception: No changes to TWDR", TwoWirePlus_BaseTest_beginReception_TC2), new_TestFixture("requestBytes: Check TwoWirePlus_bytesToReceive", TwoWirePlus_BaseTest_requestBytes_TC1), new_TestFixture("available: Check if available bytes are correct", TwoWirePlus_BaseTest_available_TC1), new_TestFixture("read: Check normal buffer read", TwoWirePlus_BaseTest_read_TC1), new_TestFixture("read: Check buffer read when buffer was used", TwoWirePlus_BaseTest_read_TC2), new_TestFixture("read: Check return value if more bytes read than available in buffer", TwoWirePlus_BaseTest_read_TC3), new_TestFixture("getBytesToBeReceived: Check return value",TwoWirePlus_BaseTest_getBytesToBeReceived_TC1), new_TestFixture("getStatus: Check return value", TwoWirePlus_BaseTest_getStatus_TC1), new_TestFixture("ISR: Check if status is reported", TwoWirePlus_BaseTest_ISR_TC1), new_TestFixture("ISR: Check TW_MR_SLA_NACK", TwoWirePlus_BaseTest_ISR_TC2), new_TestFixture("ISR: Check TW_MR_SLA_NACK, TW_MT_SLA_ACK, TW_MR_SLA_ACK, TW_MT_SLA_NACK, TW_MT_DATA_NACK, TW_MT_DATA_ACK", TwoWirePlus_BaseTest_ISR_TC3), new_TestFixture("ISR: Check data bytes are sent", TwoWirePlus_BaseTest_ISR_TC4), new_TestFixture("ISR: Check TW_INT is cleared", TwoWirePlus_BaseTest_ISR_TC5), new_TestFixture("ISR: Check master receiver NACK for last byte", TwoWirePlus_BaseTest_ISR_TC6), new_TestFixture("begin: Check if begin does nothing", TwoWirePlus_BaseTest_begin_TC1), new_TestFixture("RingBuffer: Increment index test", TwoWirePlus_BaseTest_RingBuffer_TC1), new_TestFixture("RingBuffer: Full/Empty test", TwoWirePlus_BaseTest_RingBuffer_TC2), new_TestFixture("Master Receiver: ",TwoWirePlus_BaseTest_MasterReceiver_TC1), new_TestFixture("Master Receiver: ",TwoWirePlus_BaseTest_MasterReceiver_TC2), }; EMB_UNIT_TESTCALLER(TwoWirePlus_BaseTest,"TwoWirePlus_BaseTest",setUp,tearDown, fixtures); return (TestRef)&TwoWirePlus_BaseTest; }
Test *tests_core_atomic_tests(void) { EMB_UNIT_TESTFIXTURES(fixtures) { new_TestFixture(test_atomic_set_to_one_one), new_TestFixture(test_atomic_set_to_one_zero), new_TestFixture(test_atomic_set_to_one_twice), new_TestFixture(test_atomic_set_to_zero_one), new_TestFixture(test_atomic_set_to_zero_zero), new_TestFixture(test_atomic_set_to_zero_twice), new_TestFixture(test_atomic_inc_positive), new_TestFixture(test_atomic_inc_negative), new_TestFixture(test_atomic_inc_rollover), new_TestFixture(test_atomic_dec_positive), new_TestFixture(test_atomic_dec_negative), new_TestFixture(test_atomic_dec_rollover), new_TestFixture(test_atomic_cas_same), new_TestFixture(test_atomic_cas_diff), new_TestFixture(test_atomic_value), }; EMB_UNIT_TESTCALLER(core_atomic_tests, NULL, NULL, fixtures); return (Test *)&core_atomic_tests; }
Test *tests_core_bitarithm_tests(void) { EMB_UNIT_TESTFIXTURES(fixtures) { new_TestFixture(test_SETBIT_null_null), new_TestFixture(test_SETBIT_null_limit), new_TestFixture(test_SETBIT_limit_null), new_TestFixture(test_SETBIT_limit_limit), new_TestFixture(test_SETBIT_null_one), new_TestFixture(test_SETBIT_one_null), new_TestFixture(test_SETBIT_one_random), new_TestFixture(test_CLRBIT_null_null), new_TestFixture(test_CLRBIT_null_limit), new_TestFixture(test_CLRBIT_limit_null), new_TestFixture(test_CLRBIT_limit_limit), new_TestFixture(test_CLRBIT_null_one), new_TestFixture(test_CLRBIT_one_null), new_TestFixture(test_CLRBIT_one_random), new_TestFixture(test_bitarithm_msb_one), new_TestFixture(test_bitarithm_msb_limit), new_TestFixture(test_bitarithm_msb_random), new_TestFixture(test_bitarithm_lsb_one), new_TestFixture(test_bitarithm_lsb_limit), new_TestFixture(test_bitarithm_lsb_random), new_TestFixture(test_bitarithm_bits_set_null), new_TestFixture(test_bitarithm_bits_set_one), new_TestFixture(test_bitarithm_bits_set_limit), new_TestFixture(test_bitarithm_bits_set_random), }; EMB_UNIT_TESTCALLER(core_bitarithm_tests, NULL, NULL, fixtures); return (Test *)&core_bitarithm_tests; }
Test *tests_fib_tests(void) { fib_init(); EMB_UNIT_TESTFIXTURES(fixtures) { new_TestFixture(test_fib_01_fill_unique_entries), new_TestFixture(test_fib_02_fill_multiple_entries), new_TestFixture(test_fib_03_removing_all_entries), new_TestFixture(test_fib_04_remove_lower_half), new_TestFixture(test_fib_05_remove_upper_half), new_TestFixture(test_fib_06_remove_one_entry), new_TestFixture(test_fib_07_remove_one_entry_multiple_times), new_TestFixture(test_fib_08_remove_unknown), new_TestFixture(test_fib_09_update_entry), new_TestFixture(test_fib_10_add_exceed), new_TestFixture(test_fib_11_get_next_hop_success), new_TestFixture(test_fib_12_get_next_hop_fail), new_TestFixture(test_fib_13_get_next_hop_fail_on_buffer_size), new_TestFixture(test_fib_14_exact_and_prefix_match), new_TestFixture(test_fib_15_get_lifetime), new_TestFixture(test_fib_16_prefix_match), new_TestFixture(test_fib_17_get_entry_set), }; EMB_UNIT_TESTCALLER(fib_tests, NULL, NULL, fixtures); return (Test *)&fib_tests; }
TestRef t2_instance(void) { EMB_UNIT_TESTFIXTURES(fixtures) { new_TestFixture("test_t2_instance",test_t2_instance) }; EMB_UNIT_TESTCALLER(testCall,"mc_taskTermination_s2",NULL,NULL,fixtures); return (TestRef)&testCall; }
TestRef t1_instance(void) { EMB_UNIT_TESTFIXTURES(fixtures) { new_TestFixture("test_t1_instance",test_t1_instance) }; EMB_UNIT_TESTCALLER(caller,"mc_alarms_s1",NULL,NULL,fixtures); return (TestRef)&caller; }
TestRef PriorityDonateChainTest() { EMB_UNIT_TESTFIXTURES( fixture ) { new_TestFixture( "PriorityDonateChain", TestPriorityDonateChain ) }; EMB_UNIT_TESTCALLER( PriorityDonateChainCaller,"ThreadPriorityBasedTests", Setup, TearDown, fixture ); return (TestRef)&PriorityDonateChainCaller; }
Test *tests_pktbuf_tests(void) { EMB_UNIT_TESTFIXTURES(fixtures) { new_TestFixture(test_pktbuf_init), new_TestFixture(test_pktbuf_add__pkt_NULL__data_NULL__size_0), new_TestFixture(test_pktbuf_add__pkt_NOT_NULL__data_NULL__size_0), new_TestFixture(test_pktbuf_add__pkt_NULL__data_NOT_NULL__size_0), new_TestFixture(test_pktbuf_add__pkt_NOT_NULL__data_NOT_NULL__size_0), new_TestFixture(test_pktbuf_add__pkt_NULL__data_NULL__size_not_0), new_TestFixture(test_pktbuf_add__pkt_NOT_NULL__data_NULL__size_not_0), new_TestFixture(test_pktbuf_add__pkt_NOT_NULL__data_NOT_NULL__size_not_0), #ifndef MODULE_GNRC_PKTBUF_MALLOC new_TestFixture(test_pktbuf_add__memfull), #endif new_TestFixture(test_pktbuf_add__success), new_TestFixture(test_pktbuf_add__packed_struct), #ifndef MODULE_GNRC_PKTBUF_MALLOC new_TestFixture(test_pktbuf_add__unaligned_in_aligned_hole), #endif new_TestFixture(test_pktbuf_add__0_sized_release), new_TestFixture(test_pktbuf_mark__pkt_NULL__size_0), new_TestFixture(test_pktbuf_mark__pkt_NULL__size_not_0), new_TestFixture(test_pktbuf_mark__pkt_NOT_NULL__size_0), new_TestFixture(test_pktbuf_mark__pkt_NOT_NULL__size_greater_than_pkt_size), new_TestFixture(test_pktbuf_mark__pkt_NOT_NULL__pkt_data_NULL), new_TestFixture(test_pktbuf_mark__success_large), new_TestFixture(test_pktbuf_mark__success_aligned), new_TestFixture(test_pktbuf_mark__success_small), new_TestFixture(test_pktbuf_mark__success_equally_sized), new_TestFixture(test_pktbuf_realloc_data__size_0), #ifndef MODULE_GNRC_PKTBUF_MALLOC new_TestFixture(test_pktbuf_realloc_data__memfull), #endif new_TestFixture(test_pktbuf_realloc_data__nomemenough), new_TestFixture(test_pktbuf_realloc_data__shrink), new_TestFixture(test_pktbuf_realloc_data__memenough), new_TestFixture(test_pktbuf_realloc_data__alignment), new_TestFixture(test_pktbuf_realloc_data__success), new_TestFixture(test_pktbuf_realloc_data__success2), new_TestFixture(test_pktbuf_realloc_data__success3), new_TestFixture(test_pktbuf_hold__pkt_null), new_TestFixture(test_pktbuf_hold__pkt_external), new_TestFixture(test_pktbuf_hold__success), new_TestFixture(test_pktbuf_hold__success2), new_TestFixture(test_pktbuf_release__short_pktsnips), new_TestFixture(test_pktbuf_release__success), new_TestFixture(test_pktbuf_start_write__NULL), new_TestFixture(test_pktbuf_start_write__pkt_users_1), new_TestFixture(test_pktbuf_start_write__pkt_users_2), new_TestFixture(test_pktbuf_get_iovec__1_elem), new_TestFixture(test_pktbuf_get_iovec__3_elem), new_TestFixture(test_pktbuf_get_iovec__null), }; EMB_UNIT_TESTCALLER(gnrc_pktbuf_tests, set_up, NULL, fixtures); return (Test *)&gnrc_pktbuf_tests; }
/*create the test suite with all the test cases*/ TestRef COMInternalTest_seq5_t6_instance2(void) { EMB_UNIT_TESTFIXTURES(fixtures) { new_TestFixture("test_t6_instance2",test_t6_instance2) }; EMB_UNIT_TESTCALLER(COMInternalTest,"COMInternalTest_sequence5",NULL,NULL,fixtures); return (TestRef)&COMInternalTest; }
/*create the test suite with all the test cases*/ TestRef AlarmsTest_seq9_t2_instance(void) { EMB_UNIT_TESTFIXTURES(fixtures) { new_TestFixture("test_t2_instance",test_t2_instance) }; EMB_UNIT_TESTCALLER(AlarmsTest,"AlarmsTest_sequence9",NULL,NULL,fixtures); return (TestRef)&AlarmsTest; }
/*create the test suite with all the test cases*/ TestRef TaskManagementTest_seq11_t4_instance(void) { EMB_UNIT_TESTFIXTURES(fixtures) { new_TestFixture("test_t4_instance",test_t4_instance) }; EMB_UNIT_TESTCALLER(TaskManagementTest,"TaskManagementTest_sequence11",NULL,NULL,fixtures); return (TestRef)&TaskManagementTest; }
/*create the test suite with all the test cases*/ TestRef InterruptsTest_seq4_t1_instance(void) { EMB_UNIT_TESTFIXTURES(fixtures) { new_TestFixture("test_t1_instance",test_t1_instance) }; EMB_UNIT_TESTCALLER(InterruptsTest,"InterruptsTest_sequence4",NULL,NULL,fixtures); return (TestRef)&InterruptsTest; }
/*create the test suite with all the test cases*/ TestRef InterruptProcessingTest_seq6_error_instance15(void) { EMB_UNIT_TESTFIXTURES(fixtures) { new_TestFixture("test_error_instance15",test_error_instance15) }; EMB_UNIT_TESTCALLER(InterruptProcessingTest,"InterruptProcessingTest_sequence6",NULL,NULL,fixtures); return (TestRef)&InterruptProcessingTest; }
/*create the test suite with all the test cases*/ TestRef AutosarTPTest_seq1_protection_instance2(void) { EMB_UNIT_TESTFIXTURES(fixtures) { new_TestFixture("test_protection_instance2",test_protection_instance2) }; EMB_UNIT_TESTCALLER(AutosarTPTest,"AutosarTPTest_sequence1",NULL,NULL,fixtures); return (TestRef)&AutosarTPTest; }
/*create the test suite with all the test cases*/ TestRef ALARMSTest_seq11_t3_instance(void) { EMB_UNIT_TESTFIXTURES(fixtures) { new_TestFixture("test_t3_instance",test_t3_instance) }; EMB_UNIT_TESTCALLER(ALARMSTest,"ALARMSTest_sequence11",NULL,NULL,fixtures); return (TestRef)&ALARMSTest; }
/*create the test suite with all the test cases*/ TestRef ResourceManagementTest_seq4_t1_instance(void) { EMB_UNIT_TESTFIXTURES(fixtures) { new_TestFixture("test_t1_instance",test_t1_instance) }; EMB_UNIT_TESTCALLER(ResourceManagementTest,"ResourceManagementTest_sequence4",NULL,NULL,fixtures); return (TestRef)&ResourceManagementTest; }
/*create the test suite with all the test cases*/ TestRef COMInternalTest_seq1_comerror_instance5(void) { EMB_UNIT_TESTFIXTURES(fixtures) { new_TestFixture("test_comerror_instance5",test_comerror_instance5) }; EMB_UNIT_TESTCALLER(COMInternalTest,"COMInternalTest_sequence1",NULL,NULL,fixtures); return (TestRef)&COMInternalTest; }
/*create the test suite with all the test cases*/ TestRef AutosarSTSTest_seq10_t2_instance2(void) { EMB_UNIT_TESTFIXTURES(fixtures) { new_TestFixture("test_t2_instance2",test_t2_instance2) }; EMB_UNIT_TESTCALLER(AutosarSTSTest,"AutosarSTSTest_sequence10",NULL,NULL,fixtures); return (TestRef)&AutosarSTSTest; }
/*create the test suite with all the test cases*/ TestRef HookTest_seq6_t1_instance(void) { EMB_UNIT_TESTFIXTURES(fixtures) { new_TestFixture("test_t1_instance",test_t1_instance) }; EMB_UNIT_TESTCALLER(HookTest,"HookTest_sequence6",NULL,NULL,fixtures); return (TestRef)&HookTest; }
/*create the test suite with all the test cases*/ TestRef AutosarSTTest_seq1_error_instance6(void) { EMB_UNIT_TESTFIXTURES(fixtures) { new_TestFixture("test_error_instance6",test_error_instance6) }; EMB_UNIT_TESTCALLER(AutosarSTTest,"AutosarSTTest_sequence1",NULL,NULL,fixtures); return (TestRef)&AutosarSTTest; }
/*create the test suite with all the test cases*/ TestRef COMInternalTest_seq6_t2_instance3(void) { EMB_UNIT_TESTFIXTURES(fixtures) { new_TestFixture("test_t2_instance3",test_t2_instance3) }; EMB_UNIT_TESTCALLER(COMInternalTest,"COMInternalTest_sequence6",NULL,NULL,fixtures); return (TestRef)&COMInternalTest; }
/*create the test suite with all the test cases*/ TestRef AutosarTPTest_seq7_t1_instance(void) { EMB_UNIT_TESTFIXTURES(fixtures) { new_TestFixture("test_t1_instance",test_t1_instance) }; EMB_UNIT_TESTCALLER(AutosarTPTest,"AutosarTPTest_sequence7",NULL,NULL,fixtures); return (TestRef)&AutosarTPTest; }
/*create the test suite with all the test cases*/ TestRef EventMechanismTest_seq2_t2_instance(void) { EMB_UNIT_TESTFIXTURES(fixtures) { new_TestFixture("test_t2_instance",test_t2_instance) }; EMB_UNIT_TESTCALLER(EventMechanismTest,"EventMechanismTest_sequence2",NULL,NULL,fixtures); return (TestRef)&EventMechanismTest; }
/*create the test suite with all the test cases*/ TestRef AutosarAPPTest_seq4_t3_instance1(void) { EMB_UNIT_TESTFIXTURES(fixtures) { new_TestFixture("test_t3_instance1",test_t3_instance1) }; EMB_UNIT_TESTCALLER(AutosarAPPTest,"AutosarAPPTest_sequence4",NULL,NULL,fixtures); return (TestRef)&AutosarAPPTest; }
/*create the test suite with all the test cases*/ TestRef InterruptProcessingTest_seq1_isr2_instance8(void) { EMB_UNIT_TESTFIXTURES(fixtures) { new_TestFixture("test_isr2_instance8",test_isr2_instance8) }; EMB_UNIT_TESTCALLER(InterruptProcessingTest,"InterruptProcessingTest_sequence1",NULL,NULL,fixtures); return (TestRef)&InterruptProcessingTest; }
/*create the test suite with all the test cases*/ TestRef AutosarSPTest_seq3_error_instance4(void) { EMB_UNIT_TESTFIXTURES(fixtures) { new_TestFixture("test_error_instance4",test_error_instance4) }; EMB_UNIT_TESTCALLER(AutosarSPTest,"AutosarSPTest_sequence3",NULL,NULL,fixtures); return (TestRef)&AutosarSPTest; }
/*create the test suite with all the test cases*/ TestRef HookTest_seq4_pretask_instance2(void) { EMB_UNIT_TESTFIXTURES(fixtures) { new_TestFixture("test_pretask_instance2",test_pretask_instance2) }; EMB_UNIT_TESTCALLER(HookTest,"HookTest_sequence4",NULL,NULL,fixtures); return (TestRef)&HookTest; }