all.T 568 Bytes
Newer Older
1 2 3 4 5
if config.have_vanilla:
    vanilla = '--enable-library-vanilla'
else:
    vanilla = '--disable-library-vanilla'

6 7 8
if config.have_profiling:
    prof = '--enable-library-profiling'
else:
9
    prof = '--disable-library-profiling'
10 11 12 13

if config.have_shared_libs:
    dyn = '--enable-shared'
else:
14
    dyn = '--disable-shared'
15 16 17 18 19 20 21

if default_testopts.cleanup != '':
   cleanup = 'CLEANUP=1'
else:
   cleanup = ''

test('cabal04',
22
     normal,
23
     run_command, 
24
     ['$MAKE -s --no-print-directory cabal04 VANILLA=' + vanilla + ' PROF=' + prof + ' DYN=' + dyn + ' ' + cleanup])