summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-regress/cabal/cabal04/all.T
blob: 81c11f12b5cba6b9d12c440dbeb15a3d7aec756d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
setTestOpts(only_compiler_types(['ghc']))

if config.have_profiling:
    prof = '--enable-library-profiling'
else:
    prof = ''

if config.have_shared_libs:
    dyn = '--enable-shared'
else:
    dyn = ''

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

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