all.T 611 Bytes
Newer Older
1 2
setTestOpts(only_compiler_types(['ghc']))

3 4 5 6 7
if config.have_vanilla:
    vanilla = '--enable-library-vanilla'
else:
    vanilla = '--disable-library-vanilla'

Simon Marlow's avatar
Simon Marlow committed
8 9 10
if config.have_profiling:
    prof = '--enable-library-profiling'
else:
11 12 13 14 15 16
    prof = '--disable-library-profiling'

if config.have_shared_libs:
    dyn = '--enable-shared'
else:
    dyn = '--disable-shared'
Simon Marlow's avatar
Simon Marlow committed
17

18 19 20 21 22
if default_testopts.cleanup != '':
   cleanup = 'CLEANUP=1'
else:
   cleanup = ''

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