Skip to content

Commit 910f69a

Browse files
committed
Add some very basic tests
1 parent 0977088 commit 910f69a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/condor.jl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
@test Distributed.nprocs() == 1
2+
@test Distributed.nworkers() == 1
3+
@test Distributed.procs() == [1]
4+
@test Distributed.workers() == [1]
5+
6+
mgr = HTCManager(4)
7+
Distributed.addprocs(mgr)
8+
9+
@test Distributed.nprocs() == 5
10+
@test Distributed.nworkers() == 4
11+
@test Distributed.procs() == [1, 2, 3, 4, 5]
12+
@test Distributed.workers() == [2, 3, 4, 5]

0 commit comments

Comments
 (0)