1848b8605SmrgImport('*')
2848b8605Smrg
3848b8605Smrgenv = env.Clone()
4848b8605Smrg
5848b8605Smrgenv.Prepend(LIBS = [mesautil, gallium])
6848b8605Smrg
7848b8605Smrgif env['platform'] in ('freebsd8', 'sunos'):
8848b8605Smrg    env.Append(LIBS = ['m'])
9848b8605Smrg
10848b8605Smrgif env['platform'] == 'freebsd8':
11848b8605Smrg    env.Append(LIBS = ['pthread'])
12848b8605Smrg
13848b8605Smrgprogs = [
14848b8605Smrg    'pipe_barrier_test',
15848b8605Smrg    'u_cache_test',
16848b8605Smrg    'u_format_test',
17848b8605Smrg    'u_format_compatible_test',
18848b8605Smrg    'u_half_test',
19848b8605Smrg    'translate_test'
20848b8605Smrg]
21848b8605Smrg
22848b8605Smrgfor progname in progs:
23848b8605Smrg    prog = env.Program(
24848b8605Smrg        target = progname,
25848b8605Smrg        source = progname + '.c',
26848b8605Smrg    )
27b8e80941Smrg    if progname not in [
28b8e80941Smrg        'u_cache_test', # too long
29b8e80941Smrg        'translate_test', # unreliable
30b8e80941Smrg    ]:
31b8e80941Smrg       env.UnitTest(progname, prog)
32