mirror of
https://github.com/eclipse/tinydtls.git
synced 2025-10-16 23:40:14 +08:00

Test vectors are from https://mailarchive.ietf.org/arch/msg/tls/fzVCzk-z3FShgGJ6DOXqM1ydxms/ and generated by https://github.com/obgm/tls12_prf Change-Id: I19b4dd9fdca21b7deb568fce35e7b4270b529b27
31 lines
558 B
C
31 lines
558 B
C
#include <stdio.h>
|
|
|
|
#include <CUnit/CUnit.h>
|
|
#include <CUnit/Basic.h>
|
|
|
|
#include "test_ccm.h"
|
|
#include "test_ecc.h"
|
|
#include "test_prf.h"
|
|
#include "tinydtls.h"
|
|
|
|
int main(void) {
|
|
CU_ErrorCode result;
|
|
CU_BasicRunMode run_mode = CU_BRM_VERBOSE;
|
|
|
|
if (CU_initialize_registry() != CUE_SUCCESS) {
|
|
fprintf(stderr, "E: test framework initialization failed\n");
|
|
return -2;
|
|
}
|
|
|
|
t_init_ccm_tests();
|
|
t_init_ecc_tests();
|
|
t_init_prf_tests();
|
|
|
|
CU_basic_set_mode(run_mode);
|
|
result = CU_basic_run_tests();
|
|
|
|
CU_cleanup_registry();
|
|
|
|
return result;
|
|
}
|