mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-12 16:30:14 +00:00
test:add mutex socket syscall directory
some test cases have been added that cover the functionality of fs, mutex, pthread, socket, and syscall Signed-off-by: tengshuangshuang <tengshuangshuang@xiaomi.com>
This commit is contained in:
parent
54b40ee5ee
commit
0957d4b006
160 changed files with 14162 additions and 1698 deletions
80
testing/testsuites/kernel/socket/include/SocketTest.h
Normal file
80
testing/testsuites/kernel/socket/include/SocketTest.h
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
/****************************************************************************
|
||||
* apps/testing/testsuites/kernel/socket/include/SocketTest.h
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
*The ASF licenses this file to you under the Apache License, Version 2.0
|
||||
*(the "License"); you may not use this file except in compliance with
|
||||
*the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
*WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
*implied. See the License for the specific language governing
|
||||
*permissions and limitations under the License.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __TEST_H
|
||||
#define __TEST_H
|
||||
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
#include <nuttx/config.h>
|
||||
#include <errno.h>
|
||||
#include <pthread.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <syslog.h>
|
||||
#include <stdarg.h>
|
||||
#include <stddef.h>
|
||||
#include <setjmp.h>
|
||||
#include <cmocka.h>
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
#define CLIENT_NUM 8
|
||||
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
/* test case function */
|
||||
|
||||
/* cases/net_socket_test_005.c
|
||||
* ***********************************************/
|
||||
|
||||
void test_nuttx_net_socket_test05(FAR void **state);
|
||||
|
||||
/* cases/net_socket_test_006.c
|
||||
* ************************************************/
|
||||
|
||||
void test_nuttx_net_socket_test06(FAR void **state);
|
||||
|
||||
/* cases/net_socket_test_008.c
|
||||
* ************************************************/
|
||||
|
||||
void test_nuttx_net_socket_test08(FAR void **state);
|
||||
|
||||
/* cases/net_socket_test_009.c
|
||||
* ************************************************/
|
||||
|
||||
void test_nuttx_net_socket_test09(FAR void **state);
|
||||
|
||||
/* cases/net_socket_test_010.c
|
||||
* ************************************************/
|
||||
|
||||
void test_nuttx_net_socket_test10(FAR void **state);
|
||||
|
||||
/* cases/net_socket_test_011.c
|
||||
* ************************************************/
|
||||
|
||||
void test_nuttx_net_socket_test11(FAR void **state);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue