summaryrefslogtreecommitdiff
path: root/testsuite/tests/cabal/cabal04/all.T
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/cabal/cabal04/all.T')
-rw-r--r--testsuite/tests/cabal/cabal04/all.T21
1 files changed, 21 insertions, 0 deletions
diff --git a/testsuite/tests/cabal/cabal04/all.T b/testsuite/tests/cabal/cabal04/all.T
new file mode 100644
index 0000000000..81c11f12b5
--- /dev/null
+++ b/testsuite/tests/cabal/cabal04/all.T
@@ -0,0 +1,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])