1import rtconfig
2Import('RTT_ROOT')
3from building import *
4
5# get current directory
6cwd = GetCurrentDir()
7path = [cwd]
8src = []
9
10if GetDepend('RTT_POSIX_TESTCASE_UNISTD_H'):
11    src += Glob('./definitions/*.c')
12
13if GetDepend('UNISTD_H_ACCESS'):
14    src += Glob('./functions/access_tc.c')
15
16if GetDepend('UNISTD_H_CHDIR'):
17    src += Glob('./functions/chdir_tc.c')
18
19if GetDepend('UNISTD_H_FTRUNCATE'):
20    src += Glob('./functions/ftruncate_tc.c')
21
22if GetDepend('UNISTD_H_ISATTY'):
23    src += Glob('./functions/isatty_tc.c')
24
25if GetDepend('UNISTD_H_FSYNC'):
26    src += Glob('./functions/open_read_write_fsync_close_tc.c')
27
28if GetDepend('UNISTD_H_RMDIR'):
29    src += Glob('./functions/rmdir_tc.c')
30
31group = DefineGroup('rtt_posix_testcase', src, depend = ['RTT_POSIX_TESTCASE_UNISTD_H'], CPPPATH = path)
32
33Return('group')
34