Skip to content

Commit 479c9ed

Browse files
Merge branch 'master' into Remove_cond_Directives
2 parents 7912b0a + 9670649 commit 479c9ed

File tree

241 files changed

+26311
-30603
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

241 files changed

+26311
-30603
lines changed

apps/examples/ble_rmc/ble_rmc_main.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,14 +198,16 @@ void restart_server(void) {
198198
RMC_LOG(RMC_SERVER_TAG, "Start adv ... ok\n");
199199
}
200200

201-
static void ble_server_connected_cb(ble_conn_handle con_handle, ble_server_connection_type_e conn_type, uint8_t mac[BLE_BD_ADDR_MAX_LEN])
201+
static void ble_server_connected_cb(ble_conn_handle con_handle, ble_server_connection_type_e conn_type, uint8_t mac[BLE_BD_ADDR_MAX_LEN], uint8_t adv_handle)
202202
{
203203
RMC_LOG(RMC_SERVER_TAG, "'%s' is called\n", __FUNCTION__);
204204
RMC_LOG(RMC_SERVER_TAG, "conn : %d / conn_type : %d\n", con_handle, conn_type);
205205
RMC_LOG(RMC_SERVER_TAG, "conn mac : %02x:%02x:%02x:%02x:%02x:%02x\n", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
206+
RMC_LOG(RMC_SERVER_TAG, "adv_handle : %d\n", adv_handle);
206207
if (conn_type == BLE_SERVER_DISCONNECTED) {
207208
restart_server();
208209
}
210+
adv_handle = 0xff;
209211
return;
210212
}
211213

apps/examples/testcase/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ source "$APPSDIR/examples/testcase/le_tc/drivers/Kconfig"
1919
source "$APPSDIR/examples/testcase/le_tc/filesystem/Kconfig"
2020
source "$APPSDIR/examples/testcase/le_tc/kernel/Kconfig"
2121
source "$APPSDIR/examples/testcase/le_tc/network/Kconfig"
22-
source "$APPSDIR/examples/testcase/le_tc/ttrace/Kconfig"
2322
source "$APPSDIR/examples/testcase/le_tc/tcp_tls/Kconfig"
2423
source "$APPSDIR/examples/testcase/ta_tc/arastorage/utc/Kconfig"
2524
source "$APPSDIR/examples/testcase/ta_tc/arastorage/itc/Kconfig"

apps/examples/testcase/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,6 @@ ifeq ($(CONFIG_EXAMPLES_TESTCASE_TASK_MANAGER_ITC),y)
208208
$(Q) $(call REGISTER,tm_itc,tm_itc_main,TASH_EXECMD_ASYNC,101,2048)
209209
$(Q) $(call REGISTER,start_itc_sampl,taskmanager_start_sample_main,TASH_EXECMD_ASYNC,101,2048)
210210
endif
211-
ifeq ($(CONFIG_EXAMPLES_TESTCASE_TTRACE),y)
212-
$(Q) $(call REGISTER,ttrace_tc,tc_ttrace_main,TASH_EXECMD_ASYNC,100,2048)
213-
endif
214211
ifeq ($(CONFIG_EXAMPLES_TESTCASE_WIFI_MANAGER_UTC),y)
215212
$(Q) $(call REGISTER,wifimgr_utc,utc_wifimanager_main,TASH_EXECMD_ASYNC,100,4096)
216213
endif

apps/examples/testcase/le_tc/compression/tc_compress_read.c

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,46 @@ static void tc_comp_name(void)
305305
TC_SUCCESS_RESULT();
306306
}
307307

308+
/****************************************************************************
309+
* Name: tc_comp_file_decomp
310+
*
311+
* Description:
312+
* Testing decompression of the compressed file
313+
*
314+
* Returned Value:
315+
* None
316+
****************************************************************************/
317+
static void tc_comp_file_decomp(void)
318+
{
319+
int ret;
320+
fd = get_compfd();
321+
322+
/*If FAIL : Failed to open testcase driver*/
323+
TC_ASSERT_GEQ("get_compfd", fd, OK);
324+
325+
// Before running check compressed file should exist /mnt/dummy_comp
326+
const char *file_path = "/mnt/dummy_comp.dat";
327+
328+
// initialising decompression framework in kernel
329+
ret = ioctl(fd, COMPIOC_FCOMP_INIT, file_path);
330+
TC_ASSERT_EQ("compress_init", ret, OK);
331+
332+
// to get buffer size require to hold decompressed data
333+
ret = ioctl(fd, COMPIOC_FCOMP_GET_BUFSIZE, NULL);
334+
TC_ASSERT_GT("get_compression_header", ret, OK);
335+
uint8_t *dst_buffer = (uint8_t *)malloc(ret);
336+
337+
// Test decompression method
338+
ret = ioctl(fd, COMPIOC_FCOMP_DECOMPRESS, dst_buffer);
339+
TC_ASSERT_EQ_CLEANUP("compress_read", ret, OK, free(dst_buffer));
340+
341+
ret = ioctl(fd, COMPIOC_FCOMP_DEINIT, NULL);
342+
TC_ASSERT_EQ_CLEANUP("compress_uninit", ret, OK, free(dst_buffer));
343+
344+
free(dst_buffer);
345+
TC_SUCCESS_RESULT();
346+
}
347+
308348
/****************************************************************************
309349
* Public Function
310350
****************************************************************************/
@@ -316,6 +356,7 @@ int tc_compress_main(void)
316356
tc_comp_decomp_buffer_lesser_output_size();
317357
tc_comp_decomp_buffer_greater_output_size();
318358
tc_compressed_file_read();
359+
tc_comp_file_decomp();
319360

320361
return 0;
321362
}

apps/examples/testcase/le_tc/ttrace/Kconfig

Lines changed: 0 additions & 12 deletions
This file was deleted.

apps/examples/testcase/le_tc/ttrace/Make.defs

Lines changed: 0 additions & 59 deletions
This file was deleted.

apps/examples/testcase/le_tc/ttrace/ReadMe.txt

Lines changed: 0 additions & 39 deletions
This file was deleted.

apps/examples/testcase/le_tc/ttrace/ttrace_tc_main.c

Lines changed: 0 additions & 157 deletions
This file was deleted.

0 commit comments

Comments
 (0)