summaryrefslogtreecommitdiff
path: root/testsuite/tests/dph/smvm/dph-smvm.T
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/dph/smvm/dph-smvm.T')
-rw-r--r--testsuite/tests/dph/smvm/dph-smvm.T30
1 files changed, 30 insertions, 0 deletions
diff --git a/testsuite/tests/dph/smvm/dph-smvm.T b/testsuite/tests/dph/smvm/dph-smvm.T
new file mode 100644
index 0000000000..d0a940a7c1
--- /dev/null
+++ b/testsuite/tests/dph/smvm/dph-smvm.T
@@ -0,0 +1,30 @@
+
+
+testFile = 'nothing'
+if config.platform.startswith('i386-'):
+ testFile = 'test-i386.dat'
+ outFile = 'result-i386.txt'
+
+elif config.platform.startswith('x86_64-'):
+ testFile = 'test-x86_64.dat'
+ outFile = 'result-x86_64.txt'
+
+elif config.platform.startswith('sparc-'):
+ testFile = 'test-sparc.dat'
+ outFile = 'result-sparc.txt'
+
+
+if testFile != 'nothing':
+ test ('dph-smvm'
+ , [ alone
+ , skip_if_fast
+ , reqlib('dph-par')
+ , reqlib('dph-prim-par')
+ , only_ways(['normal', 'threaded1', 'threaded2'])
+ , extra_run_opts(testFile + " " + outFile)
+ ]
+ , multimod_compile_and_run
+ , [ 'Main'
+ , '-Odph -fdph-par'])
+
+