summaryrefslogtreecommitdiff
path: root/examples/utest/testcases/posix/unistd_h/SConscript
blob: bf3668e794be493c2d174266ef95b8f60cb42297 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import rtconfig
Import('RTT_ROOT')
from building import *

# get current directory
cwd = GetCurrentDir()
path = [cwd]
src = []

if GetDepend('RTT_POSIX_TESTCASE_UNISTD_H'):
    src += Glob('./definitions/*.c')

if GetDepend('UNISTD_H_ACCESS'):
    src += Glob('./functions/access_tc.c')

if GetDepend('UNISTD_H_CHDIR'):
    src += Glob('./functions/chdir_tc.c')

if GetDepend('UNISTD_H_FTRUNCATE'):
    src += Glob('./functions/ftruncate_tc.c')

if GetDepend('UNISTD_H_ISATTY'):
    src += Glob('./functions/isatty_tc.c')

if GetDepend('UNISTD_H_FSYNC'):
    src += Glob('./functions/open_read_write_fsync_close_tc.c')

if GetDepend('UNISTD_H_RMDIR'):
    src += Glob('./functions/rmdir_tc.c')

group = DefineGroup('rtt_posix_testcase', src, depend = ['RTT_POSIX_TESTCASE_UNISTD_H'], CPPPATH = path)

Return('group')