2022-07-04 10:20:04 +08:00
|
|
|
import rtconfig
|
|
|
|
Import('RTT_ROOT')
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
# get current directory
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
path = [cwd]
|
|
|
|
src = []
|
|
|
|
|
|
|
|
if GetDepend('RTT_POSIX_TESTCASE_STDIO_H'):
|
|
|
|
src += Glob('./definitions/*.c')
|
|
|
|
|
|
|
|
|
|
|
|
if GetDepend('STDIO_H_CLEARERR'):
|
2023-06-20 05:38:05 +08:00
|
|
|
src += Glob('./functions/clearerr_tc.c')
|
2022-07-04 10:20:04 +08:00
|
|
|
|
|
|
|
if GetDepend('STDIO_H_FCLOSE'):
|
2023-06-20 05:38:05 +08:00
|
|
|
src += Glob('./functions/fclose_tc.c')
|
2022-07-04 10:20:04 +08:00
|
|
|
|
|
|
|
if GetDepend('STDIO_H_FDOPEN'):
|
|
|
|
src += Glob('./functions/fdopen_tc.c')
|
|
|
|
|
|
|
|
if GetDepend('STDIO_H_FEOF'):
|
2023-06-20 05:38:05 +08:00
|
|
|
src += Glob('./functions/feof_tc.c')
|
2022-07-04 10:20:04 +08:00
|
|
|
|
|
|
|
if GetDepend('STDIO_H_FERROR'):
|
2023-06-20 05:38:05 +08:00
|
|
|
src += Glob('./functions/ferror_tc.c')
|
2022-07-04 10:20:04 +08:00
|
|
|
|
|
|
|
if GetDepend('STDIO_H_FFLUSH'):
|
2023-06-20 05:38:05 +08:00
|
|
|
src += Glob('./functions/fflush_tc.c')
|
2022-07-04 10:20:04 +08:00
|
|
|
|
|
|
|
if GetDepend('STDIO_H_FGETC'):
|
2023-06-20 05:38:05 +08:00
|
|
|
src += Glob('./functions/fgetc_tc.c')
|
2022-07-04 10:20:04 +08:00
|
|
|
|
|
|
|
if GetDepend('STDIO_H_FGETS'):
|
2023-06-20 05:38:05 +08:00
|
|
|
src += Glob('./functions/fgets_tc.c')
|
2022-07-04 10:20:04 +08:00
|
|
|
|
|
|
|
if GetDepend('STDIO_H_FILENO'):
|
2023-06-20 05:38:05 +08:00
|
|
|
src += Glob('./functions/fileno_tc.c')
|
2022-07-04 10:20:04 +08:00
|
|
|
|
|
|
|
if GetDepend('STDIO_H_FOPEN'):
|
2023-06-20 05:38:05 +08:00
|
|
|
src += Glob('./functions/fopen_tc.c')
|
2022-07-04 10:20:04 +08:00
|
|
|
|
|
|
|
if GetDepend('STDIO_H_FPRINTF'):
|
2023-06-20 05:38:05 +08:00
|
|
|
src += Glob('./functions/fprintf_tc.c')
|
2022-07-04 10:20:04 +08:00
|
|
|
|
|
|
|
if GetDepend('STDIO_H_FPUTC'):
|
2023-06-20 05:38:05 +08:00
|
|
|
src += Glob('./functions/fputc_tc.c')
|
2022-07-04 10:20:04 +08:00
|
|
|
|
|
|
|
if GetDepend('STDIO_H_FPUTS'):
|
2023-06-20 05:38:05 +08:00
|
|
|
src += Glob('./functions/fputs_tc.c')
|
2022-07-04 10:20:04 +08:00
|
|
|
|
|
|
|
if GetDepend('STDIO_H_FREAD'):
|
2023-06-20 05:38:05 +08:00
|
|
|
src += Glob('./functions/fread_tc.c')
|
2022-07-04 10:20:04 +08:00
|
|
|
|
|
|
|
if GetDepend('STDIO_H_FSCANF'):
|
2023-06-20 05:38:05 +08:00
|
|
|
src += Glob('./functions/fscanf_tc.c')
|
2022-07-04 10:20:04 +08:00
|
|
|
|
|
|
|
if GetDepend('STDIO_H_FSEEK'):
|
2023-06-20 05:38:05 +08:00
|
|
|
src += Glob('./functions/fseek_tc.c')
|
2022-07-04 10:20:04 +08:00
|
|
|
|
|
|
|
if GetDepend('STDIO_H_FTELL'):
|
2023-06-20 05:38:05 +08:00
|
|
|
src += Glob('./functions/ftell_tc.c')
|
2022-07-04 10:20:04 +08:00
|
|
|
|
|
|
|
if GetDepend('STDIO_H_FWRITE'):
|
2023-06-20 05:38:05 +08:00
|
|
|
src += Glob('./functions/fwrite_tc.c')
|
2022-07-04 10:20:04 +08:00
|
|
|
|
|
|
|
|
|
|
|
if GetDepend('STDIO_H_PERROR'):
|
2023-06-20 05:38:05 +08:00
|
|
|
src += Glob('./functions/perror_tc.c')
|
2022-07-04 10:20:04 +08:00
|
|
|
|
|
|
|
if GetDepend('STDIO_H_PRINTF'):
|
2023-06-20 05:38:05 +08:00
|
|
|
src += Glob('./functions/printf_tc.c')
|
2022-07-04 10:20:04 +08:00
|
|
|
|
|
|
|
if GetDepend('STDIO_H_PUTC'):
|
2023-06-20 05:38:05 +08:00
|
|
|
src += Glob('./functions/putc_tc.c')
|
|
|
|
|
|
|
|
if GetDepend('STDIO_H_PUTCHAR'):
|
|
|
|
src += Glob('./functions/putchar_tc.c')
|
|
|
|
|
|
|
|
if GetDepend('STDIO_H_PUTS'):
|
|
|
|
src += Glob('./functions/puts_tc.c')
|
2022-07-04 10:20:04 +08:00
|
|
|
|
|
|
|
if GetDepend('STDIO_H_REMOVE'):
|
2023-06-20 05:38:05 +08:00
|
|
|
src += Glob('./functions/remove_tc.c')
|
2022-07-04 10:20:04 +08:00
|
|
|
|
|
|
|
if GetDepend('STDIO_H_RENAME'):
|
2023-06-20 05:38:05 +08:00
|
|
|
src += Glob('./functions/rename_tc.c')
|
2022-07-04 10:20:04 +08:00
|
|
|
|
|
|
|
if GetDepend('STDIO_H_REWIND'):
|
2023-06-20 05:38:05 +08:00
|
|
|
src += Glob('./functions/rewind_tc.c')
|
2022-07-04 10:20:04 +08:00
|
|
|
|
|
|
|
if GetDepend('STDIO_H_SETBUF'):
|
2023-06-20 05:38:05 +08:00
|
|
|
src += Glob('./functions/setbuf_tc.c')
|
2022-07-04 10:20:04 +08:00
|
|
|
|
|
|
|
if GetDepend('STDIO_H_SETVBUF'):
|
2023-06-20 05:38:05 +08:00
|
|
|
src += Glob('./functions/setvbuf_tc.c')
|
2022-07-04 10:20:04 +08:00
|
|
|
|
|
|
|
if GetDepend('STDIO_H_SNPRINTF'):
|
2023-06-20 05:38:05 +08:00
|
|
|
src += Glob('./functions/snprintf_tc.c')
|
2022-07-04 10:20:04 +08:00
|
|
|
|
|
|
|
if GetDepend('STDIO_H_SPRINTF'):
|
2023-06-20 05:38:05 +08:00
|
|
|
src += Glob('./functions/sprintf_tc.c')
|
2022-07-04 10:20:04 +08:00
|
|
|
|
|
|
|
if GetDepend('STDIO_H_SSCANF'):
|
2023-06-20 05:38:05 +08:00
|
|
|
src += Glob('./functions/sscanf_tc.c')
|
2022-07-04 10:20:04 +08:00
|
|
|
|
|
|
|
if GetDepend('STDIO_H_VFPRINTF'):
|
2023-06-20 05:38:05 +08:00
|
|
|
src += Glob('./functions/vfprintf_tc.c')
|
2022-07-04 10:20:04 +08:00
|
|
|
|
|
|
|
if GetDepend('STDIO_H_VPRINTF'):
|
2023-06-20 05:38:05 +08:00
|
|
|
src += Glob('./functions/vprintf_tc.c')
|
2022-07-04 10:20:04 +08:00
|
|
|
|
|
|
|
if GetDepend('STDIO_H_VSNPRINTF'):
|
2023-06-20 05:38:05 +08:00
|
|
|
src += Glob('./functions/vsnprintf_tc.c')
|
2022-07-04 10:20:04 +08:00
|
|
|
|
|
|
|
if GetDepend('STDIO_H_VSPRINTF'):
|
2023-06-20 05:38:05 +08:00
|
|
|
src += Glob('./functions/vsprintf_tc.c')
|
2022-07-04 10:20:04 +08:00
|
|
|
|
|
|
|
group = DefineGroup('rtt_posix_testcase', src, depend = ['RTT_POSIX_TESTCASE_STDIO_H'], CPPPATH = path)
|
|
|
|
|
|
|
|
Return('group')
|