Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-orbit
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Katerina Roukounaki
cloud-orbit
Commits
c5b5bd5e
Commit
c5b5bd5e
authored
Jan 08, 2015
by
Yiannis Tsiouris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Tests after
bcd47c37
parent
bcd47c37
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
29 deletions
+33
-29
Bench.hs
Bench.hs
+1
-0
Tests.hs
Tests.hs
+32
-29
No files found.
Bench.hs
View file @
c5b5bd5e
...
@@ -5,6 +5,7 @@ module Bench( -- sequential benchmarks
...
@@ -5,6 +5,7 @@ module Bench( -- sequential benchmarks
--
distributed
benhcmarks
--
distributed
benhcmarks
,
dist
,
dist
,
main
,
main
,
sz
)
where
)
where
import
Control.Distributed.Process
import
Control.Distributed.Process
...
...
Tests.hs
View file @
c5b5bd5e
...
@@ -13,8 +13,7 @@ import Test.Framework.Providers.HUnit (testCase)
...
@@ -13,8 +13,7 @@ import Test.Framework.Providers.HUnit (testCase)
import
Test.HUnit
(
Assertion
)
import
Test.HUnit
(
Assertion
)
import
Test.HUnit.Base
(
assertBool
)
import
Test.HUnit.Base
(
assertBool
)
import
Bench
(
seq
,
par
,
par_seq
,
import
Bench
(
seq
,
par
,
dist
,
sz
)
dist
,
dist_seq
)
import
MasterWorker
(
__remoteTable
)
import
MasterWorker
(
__remoteTable
)
import
Utils
import
Utils
...
@@ -23,81 +22,81 @@ import Utils
...
@@ -23,81 +22,81 @@ import Utils
testSeqShort
::
TestResult
String
->
Process
()
testSeqShort
::
TestResult
String
->
Process
()
testSeqShort
result
=
do
testSeqShort
result
=
do
x
<-
seq
gg13
11
x
<-
seq
gg13
11
stash
result
x
stash
result
(
getRes
x
)
testSeqIntermediate
::
TestResult
String
->
Process
()
testSeqIntermediate
::
TestResult
String
->
Process
()
testSeqIntermediate
result
=
do
testSeqIntermediate
result
=
do
x
<-
seq
gg124
157
x
<-
seq
gg124
157
stash
result
x
stash
result
(
getRes
x
)
testSeqLong
::
TestResult
String
->
Process
()
testSeqLong
::
TestResult
String
->
Process
()
testSeqLong
result
=
do
testSeqLong
result
=
do
x
<-
seq
gg1245
157
x
<-
seq
gg1245
157
stash
result
x
stash
result
(
getRes
x
)
--
Parallel
Tests
--
Parallel
Tests
testParShort
::
TestResult
String
->
Process
()
testParShort
::
TestResult
String
->
Process
()
testParShort
result
=
do
testParShort
result
=
do
x
<-
par
gg13
11
2
x
<-
par
True
gg13
11
2
stash
result
x
stash
result
(
getRes
x
)
testParIntermediate
::
TestResult
String
->
Process
()
testParIntermediate
::
TestResult
String
->
Process
()
testParIntermediate
result
=
do
testParIntermediate
result
=
do
x
<-
par
gg124
157
2
x
<-
par
True
gg124
157
2
stash
result
x
stash
result
(
getRes
x
)
testParLong
::
TestResult
String
->
Process
()
testParLong
::
TestResult
String
->
Process
()
testParLong
result
=
do
testParLong
result
=
do
x
<-
par
gg1245
157
2
x
<-
par
True
gg1245
157
2
stash
result
x
stash
result
(
getRes
x
)
testParSeqShort
::
TestResult
String
->
Process
()
testParSeqShort
::
TestResult
String
->
Process
()
testParSeqShort
result
=
do
testParSeqShort
result
=
do
x
<-
par
_seq
gg13
11
2
x
<-
par
False
gg13
11
2
stash
result
x
stash
result
(
getRes
x
)
testParSeqIntermediate
::
TestResult
String
->
Process
()
testParSeqIntermediate
::
TestResult
String
->
Process
()
testParSeqIntermediate
result
=
do
testParSeqIntermediate
result
=
do
x
<-
par
_seq
gg124
157
2
x
<-
par
False
gg124
157
2
stash
result
x
stash
result
(
getRes
x
)
testParSeqLong
::
TestResult
String
->
Process
()
testParSeqLong
::
TestResult
String
->
Process
()
testParSeqLong
result
=
do
testParSeqLong
result
=
do
x
<-
par
_seq
gg1245
157
2
x
<-
par
False
gg1245
157
2
stash
result
x
stash
result
(
getRes
x
)
--
Distributed
Tests
--
Distributed
Tests
testDistShort
::
[
NodeId
]
->
TestResult
String
->
Process
()
testDistShort
::
[
NodeId
]
->
TestResult
String
->
Process
()
testDistShort
nodes
result
=
do
testDistShort
nodes
result
=
do
x
<-
dist
gg13
11
2
nodes
x
<-
dist
True
gg13
11
2
nodes
stash
result
x
stash
result
(
getRes
x
)
testDistIntermediate
::
[
NodeId
]
->
TestResult
String
->
Process
()
testDistIntermediate
::
[
NodeId
]
->
TestResult
String
->
Process
()
testDistIntermediate
nodes
result
=
do
testDistIntermediate
nodes
result
=
do
x
<-
dist
gg124
157
2
nodes
x
<-
dist
True
gg124
157
2
nodes
stash
result
x
stash
result
(
getRes
x
)
testDistLong
::
[
NodeId
]
->
TestResult
String
->
Process
()
testDistLong
::
[
NodeId
]
->
TestResult
String
->
Process
()
testDistLong
nodes
result
=
do
testDistLong
nodes
result
=
do
x
<-
dist
gg1245
157
2
nodes
x
<-
dist
True
gg1245
157
2
nodes
stash
result
x
stash
result
(
getRes
x
)
testDistSeqShort
::
[
NodeId
]
->
TestResult
String
->
Process
()
testDistSeqShort
::
[
NodeId
]
->
TestResult
String
->
Process
()
testDistSeqShort
nodes
result
=
do
testDistSeqShort
nodes
result
=
do
x
<-
dist
_seq
gg13
11
2
nodes
x
<-
dist
False
gg13
11
2
nodes
stash
result
x
stash
result
(
getRes
x
)
testDistSeqIntermediate
::
[
NodeId
]
->
TestResult
String
->
Process
()
testDistSeqIntermediate
::
[
NodeId
]
->
TestResult
String
->
Process
()
testDistSeqIntermediate
nodes
result
=
do
testDistSeqIntermediate
nodes
result
=
do
x
<-
dist
_seq
gg124
157
2
nodes
x
<-
dist
False
gg124
157
2
nodes
stash
result
x
stash
result
(
getRes
x
)
testDistSeqLong
::
[
NodeId
]
->
TestResult
String
->
Process
()
testDistSeqLong
::
[
NodeId
]
->
TestResult
String
->
Process
()
testDistSeqLong
nodes
result
=
do
testDistSeqLong
nodes
result
=
do
x
<-
dist
_seq
gg1245
157
2
nodes
x
<-
dist
False
gg1245
157
2
nodes
stash
result
x
stash
result
(
getRes
x
)
--
Batch
the
tests
--
Batch
the
tests
...
@@ -166,6 +165,10 @@ main = testMain $ orbitTests
...
@@ -166,6 +165,10 @@ main = testMain $ orbitTests
--
Auxiliary
functions
--
Auxiliary
functions
-------------------------------------------------------------------
-------------------------------------------------------------------
--
|
Gets
the
size
from
MasterStats
.
getRes
=
Result
->
String
getRes
=
sz
.
snd
--
|
A
mutable
cell
containing
a
test
result
.
--
|
A
mutable
cell
containing
a
test
result
.
type
TestResult
a
=
MVar
a
type
TestResult
a
=
MVar
a
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment