mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
Add tests for popen()/pclose() and dpopen()/dpclose() that work in both shell (NSH) and no-shell (direct posix_spawnp) modes. The test binary doubles as its own target via the --echo sub-command. Tests: 1-4: popen - basic read, multi-arg, pclose, invalid mode 5-7: dpopen - basic read, multi-arg, dpclose Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
16 lines
413 B
Text
16 lines
413 B
Text
#
|
|
# For a description of the syntax of this configuration file,
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
#
|
|
|
|
config TESTING_POPEN
|
|
tristate "popen()/dpopen() test"
|
|
default n
|
|
depends on SYSTEM_POPEN
|
|
---help---
|
|
Test popen()/pclose() and dpopen()/dpclose() in both shell
|
|
and no-shell modes. The test binary doubles as its own
|
|
popen/dpopen target via --echo.
|
|
|
|
if TESTING_POPEN
|
|
endif
|