Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename unit test files #788

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@

# Cleaning up Eclipse headers
019c299b7183d49f975384651f2cf37ec60930d7
# Cleaning up unit test files
920c6cf29ada2fddb7bce3c80592e201fe538c60
28 changes: 14 additions & 14 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@ include(../wakaama.cmake)
include(tests.cmake)

set(TEST_SOURCES
block1tests.c
block2tests.c
cbor_tests.c
convert_numbers_test.c
er_coap_coap_parse_message.c
registration_tests.c
list_tests.c
logging_tests.c
senml_json_tests.c
senml_cbor_tests.c
helper/log_handler.c
coap_block1tests.c
coap_block2tests.c
coap_parse_message.c
data_cbor_tests.c
core_convert_numbers_test.c
core_list_tests.c
core_logging_tests.c
core_registration_tests.c
core_uritests.c
data_senml_cbor_tests.c
data_senml_json_tests.c
data_tlv_json_lwm2m_data_test.c
data_tlvtests.c
tests.h
tlv_json_lwm2m_data_test.c
tlvtests.c
unittests.c
uritests.c
helper/log_handler.c
)

if(LWM2M_CLIENT_MODE AND NOT WAKAAMA_MODE_BOOTSTRAP_SERVER)
Expand Down
12 changes: 5 additions & 7 deletions tests/block1tests.c → tests/coap_block1tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
*
*******************************************************************************/

#include "tests.h"
#include "CUnit/Basic.h"
#include "internals.h"
#include "liblwm2m.h"
#include "tests.h"

static const char *URI = "/1/2/3";
static const uint16_t BLOCK_SIZE = 5;
Expand All @@ -44,9 +44,8 @@ static uint8_t handle_67(lwm2m_block_data_t **blk1, uint8_t **resultBuffer, size
resultBuffer, resultLen);
}

static void test_block1_nominal(void)
{
lwm2m_block_data_t * blk1 = NULL;
static void test_block1_nominal(void) {
lwm2m_block_data_t *blk1 = NULL;

uint8_t *resultBuffer = NULL;
size_t resultLen = 0;
Expand All @@ -67,9 +66,8 @@ static void test_block1_nominal(void)
free_block_data(blk1);
}

static void test_block1_retransmit(void)
{
lwm2m_block_data_t * blk1 = NULL;
static void test_block1_retransmit(void) {
lwm2m_block_data_t *blk1 = NULL;

uint8_t *resultBuffer = NULL;
size_t resultLen = 0;
Expand Down
File renamed without changes.
File renamed without changes.
Loading
Loading