nuttx-apps/testing/drivertest
anjiahao 59855a1a67 remove <nuttx/xxx.h> in stdio need add depend header file
libuv:
CC:  pthread/pthread_mutexattr_setrobust.c libuv/src/unix/thread.c: In function ‘uv_thread_create_ex’:
libuv/src/unix/thread.c:174:24: error: storage size of ‘param’ isn’t known
  174 |     struct sched_param param;
      |                        ^~~~~

btsak_main:
In file included from btsak_main.c:39:
btsak.h:149:1: error: unknown type name ‘bool’
  149 | bool btsak_str2bool(FAR const char *str);

pipe_main.c:
CC:  sim/sim_registerdump.c pipe_main.c:44:30: error: unknown type name ‘pthread_addr_t’
   44 | static void *open_write_only(pthread_addr_t pvarg)
      |                              ^~~~~~~~~~~~~~
pipe_main.c: In function ‘pipe_main’:
pipe_main.c:81:3: error: unknown type name ‘pthread_t’
   81 |   pthread_t writeonly;

redirect_test.c: In function ‘redirection_test’:
redirect_test.c:205:3: error: unknown type name ‘pthread_t’
  205 |   pthread_t readerid;
      |   ^~~~~~~~~
redirect_test.c:206:3: error: unknown type name ‘pthread_t’
  206 |   pthread_t writerid;
      |   ^~~~~~~~~

drivertest_posix_timer.c:48:29: error: ‘optarg’ undeclared (first use in this function)
   48 |       value = (type)strtoul(optarg, &ptr, base);                      \

drivertest_posix_timer.c:208:3: warning: implicit declaration of function ‘sleep’ [-Wimplicit-function-declaration]
  208 |   sleep(SLEEPSECONDS);
      |   ^~~~~

drivertest_uart.c:92:13: warning: implicit declaration of function ‘read’; did you mean ‘fread’? [-Wimplicit-function-declaration]
   92 |       len = read(fd, &tmp_char, 1);
      |             ^~~~
      |             fread

drivertest_uart.c:323:44: error: ‘optopt’ undeclared (first use in this function)
  323 |             printf("Unknown option: %c\n", optopt);

kernel/fs/cases/fs_getfilep_test.c:71:9: warning: implicit declaration of function ‘fs_getfilep’ [-Wimplicit-function-declaration]
   71 |   ret = fs_getfilep(fileno(fp), &filep);
      |         ^~~~~~~~~~~

kernel/mm/cases/mm_test_008.c:148:9: warning: implicit declaration of function ‘task_create’; did you mean ‘timer_create’? [-Wimplicit-function-declaration]
  148 |   pid = task_create("TestNuttx08_routine_1",
      |         ^~~~~~~~~~~
      |         timer_create

/home/ajh/work/nuttxwork/apps/testing/cmocka/cmocka_main.c:171:11: warning: implicit declaration of function ‘setenv’ [-Wimplicit-function-declaration]
  171 |           setenv("CMOCKA_XML_FILE", xml_path, 1);
      |           ^~~~~~

drivertest_pm_runtime.c:123:7: warning: implicit declaration of function ‘usleep’ [-Wimplicit-function-declaration]
  123 |       usleep(210 * 1000);
      |       ^~~~~~

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-11-13 16:49:12 +08:00
..
CMakeLists.txt testing/drivertest: add pm_smp test 2024-10-28 22:51:12 +08:00
drivertest_adc.c drivertest/adc : support cmocka_driver_adc 2023-08-11 13:51:30 +08:00
drivertest_audio.c drivertest: Fix drivertest_audio crash 2023-12-28 05:38:58 -08:00
drivertest_block.c testing/drivertest_block.c: Fix cmoka driver block test error 2024-10-16 07:18:20 +08:00
drivertest_framebuffer.c drivertest: Fix cmocka_driver_framebuffer is not displayed 2024-08-20 02:50:29 +08:00
drivertest_gpio.c drivertest/gpio:Add FAR to the pointer 2023-02-22 16:17:04 +08:00
drivertest_i2c_read.c i2c slave: add i2c slave test code 2024-09-13 12:33:25 +08:00
drivertest_i2c_spi.c drivertest_i2c_spi: Supports incoming device nodes so we can test both iic and spi 2024-10-18 19:56:40 +08:00
drivertest_i2c_write.c drivertest: Modify output format 2024-09-13 12:33:25 +08:00
drivertest_lcd.c Change all sizeof(arr)/sizeof(arr[0]) to nitems 2023-08-17 22:51:51 +03:00
drivertest_mps2.c testing: add case for irqprio, should only work with qemu MPS2_AN500 2024-08-26 01:52:06 +08:00
drivertest_mps2_zerointerrupt.c mps2: add zero-latency-interrupt case on mps2 2024-10-07 05:10:07 +08:00
drivertest_oneshot.c apps: Fix compilation error after nuttx/arch.h excluded. 2024-10-16 07:12:40 +08:00
drivertest_pm.c testing/drivertest: add pm_smp test 2024-10-28 22:51:12 +08:00
drivertest_pm_runtime.c remove <nuttx/xxx.h> in stdio need add depend header file 2024-11-13 16:49:12 +08:00
drivertest_pm_smp.c testing/pm_smp: delay_yield ticks 1->2, avoid idle canot run one cycle 2024-10-28 22:51:12 +08:00
drivertest_posix_timer.c remove <nuttx/xxx.h> in stdio need add depend header file 2024-11-13 16:49:12 +08:00
drivertest_pwm.c apps/testing/drivertest_pwm.c: Fix apps/testing/drivertest_pwm.c compile_error 2024-08-24 11:13:42 +08:00
drivertest_regulator.c drivertest:add include file depended by cmocka 2024-09-30 18:31:03 +08:00
drivertest_relay.c drivertest_relay: add relay test case 2023-02-17 23:43:11 +08:00
drivertest_rtc.c remove <nuttx/xxx.h> in stdio need add depend header file 2024-11-13 16:49:12 +08:00
drivertest_simple.c Fix drivertest_watchdog.c:207:30: error: 'struct wdg_state_s' has no member named 'infopath' 2023-09-25 01:08:49 +03:00
drivertest_timer.c drivertest:fix timer testcase 2023-08-10 20:41:05 +08:00
drivertest_touchpanel.c apps/dirvertest: Fix cmocka --list serial port hang 2024-08-20 02:50:29 +08:00
drivertest_uart.c remove <nuttx/xxx.h> in stdio need add depend header file 2024-11-13 16:49:12 +08:00
drivertest_watchdog.c apps: Fix compilation error after nuttx/arch.h excluded. 2024-10-16 07:12:40 +08:00
Kconfig skip oneshot timer test 2024-10-28 22:51:12 +08:00
Make.defs testing/drivertest: add drivertest for cmocka driver testcases 2023-02-02 22:14:27 +08:00
Makefile testing/drivertest: add pm_smp test 2024-10-28 22:51:12 +08:00
test_content_gen.py drivertest/drivertest_uart: uart driver testcase 2023-02-24 17:13:06 +08:00