Skip to content

Commit

Permalink
tests: add or_slot flexible tests
Browse files Browse the repository at this point in the history
Problem: there are no tests for or_slots

Add tests
  • Loading branch information
zekemorton committed Sep 19, 2024
1 parent e93cfbf commit 29bb462
Show file tree
Hide file tree
Showing 26 changed files with 809 additions and 0 deletions.
1 change: 1 addition & 0 deletions t/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ set(ALL_TESTS
t3034-resource-pconstraints.t
t3035-resource-remove.t
t3036-rq2.t
t3037-resource-flexible.t
t3300-system-dontblock.t
t3301-system-latestart.t
t4000-match-params.t
Expand Down
10 changes: 10 additions & 0 deletions t/data/resource/commands/flexible/cmds01.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
match allocate @TEST_SRCDIR@/data/resource/jobspecs/flexible/test001.yaml
match allocate @TEST_SRCDIR@/data/resource/jobspecs/flexible/test001.yaml
match allocate @TEST_SRCDIR@/data/resource/jobspecs/flexible/test001.yaml
match allocate @TEST_SRCDIR@/data/resource/jobspecs/flexible/test001.yaml
match allocate @TEST_SRCDIR@/data/resource/jobspecs/flexible/test001.yaml
match allocate @TEST_SRCDIR@/data/resource/jobspecs/flexible/test001.yaml
match allocate @TEST_SRCDIR@/data/resource/jobspecs/flexible/test001.yaml
match allocate @TEST_SRCDIR@/data/resource/jobspecs/flexible/test001.yaml
match allocate @TEST_SRCDIR@/data/resource/jobspecs/flexible/test001.yaml
quit
6 changes: 6 additions & 0 deletions t/data/resource/commands/flexible/cmds02.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
match allocate @TEST_SRCDIR@/data/resource/jobspecs/flexible/test002.yaml
match allocate @TEST_SRCDIR@/data/resource/jobspecs/flexible/test002.yaml
match allocate @TEST_SRCDIR@/data/resource/jobspecs/flexible/test002.yaml
match allocate @TEST_SRCDIR@/data/resource/jobspecs/flexible/test002.yaml
match allocate @TEST_SRCDIR@/data/resource/jobspecs/flexible/test002.yaml
quit
6 changes: 6 additions & 0 deletions t/data/resource/commands/flexible/cmds03.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
match allocate @TEST_SRCDIR@/data/resource/jobspecs/flexible/test003.yaml
match allocate @TEST_SRCDIR@/data/resource/jobspecs/flexible/test003.yaml
match allocate @TEST_SRCDIR@/data/resource/jobspecs/flexible/test003.yaml
match allocate @TEST_SRCDIR@/data/resource/jobspecs/flexible/test003.yaml
match allocate @TEST_SRCDIR@/data/resource/jobspecs/flexible/test003.yaml
quit
2 changes: 2 additions & 0 deletions t/data/resource/commands/flexible/cmds04.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
match allocate @TEST_SRCDIR@/data/resource/jobspecs/flexible/test004.yaml
quit
3 changes: 3 additions & 0 deletions t/data/resource/commands/flexible/cmds05.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
match allocate @TEST_SRCDIR@/data/resource/jobspecs/flexible/test005.yaml
match allocate @TEST_SRCDIR@/data/resource/jobspecs/flexible/test005.yaml
quit
2 changes: 2 additions & 0 deletions t/data/resource/commands/flexible/cmds06.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
match allocate @TEST_SRCDIR@/data/resource/jobspecs/flexible/test006.yaml
quit
2 changes: 2 additions & 0 deletions t/data/resource/commands/flexible/cmds07.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
match allocate @TEST_SRCDIR@/data/resource/jobspecs/flexible/test007.yaml
quit
2 changes: 2 additions & 0 deletions t/data/resource/commands/flexible/cmds08.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
match allocate @TEST_SRCDIR@/data/resource/jobspecs/flexible/test008.yaml
quit
152 changes: 152 additions & 0 deletions t/data/resource/expected/flexible/001.R.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
---------------core28[1:x]
---------------core29[1:x]
---------------core30[1:x]
---------------core31[1:x]
---------------core32[1:x]
---------------core33[1:x]
---------------core34[1:x]
---------------core35[1:x]
---------------gpu1[1:x]
------------socket1[1:s]
---------node1[1:s]
------rack0[1:s]
---tiny0[1:s]
INFO: =============================
INFO: JOBID=1
INFO: RESOURCES=ALLOCATED
INFO: SCHEDULED AT=Now
INFO: =============================
---------------core18[1:x]
---------------core19[1:x]
---------------core20[1:x]
---------------core21[1:x]
---------------core22[1:x]
---------------core23[1:x]
---------------core24[1:x]
---------------core25[1:x]
---------------core26[1:x]
---------------core27[1:x]
------------socket1[1:s]
---------node1[1:s]
------rack0[1:s]
---tiny0[1:s]
INFO: =============================
INFO: JOBID=2
INFO: RESOURCES=ALLOCATED
INFO: SCHEDULED AT=Now
INFO: =============================
---------------core10[1:x]
---------------core11[1:x]
---------------core12[1:x]
---------------core13[1:x]
---------------core14[1:x]
---------------core15[1:x]
---------------core16[1:x]
---------------core17[1:x]
---------------gpu0[1:x]
------------socket0[1:s]
---------node1[1:s]
------rack0[1:s]
---tiny0[1:s]
INFO: =============================
INFO: JOBID=3
INFO: RESOURCES=ALLOCATED
INFO: SCHEDULED AT=Now
INFO: =============================
---------------core0[1:x]
---------------core1[1:x]
---------------core2[1:x]
---------------core3[1:x]
---------------core4[1:x]
---------------core5[1:x]
---------------core6[1:x]
---------------core7[1:x]
---------------core8[1:x]
---------------core9[1:x]
------------socket0[1:s]
---------node1[1:s]
------rack0[1:s]
---tiny0[1:s]
INFO: =============================
INFO: JOBID=4
INFO: RESOURCES=ALLOCATED
INFO: SCHEDULED AT=Now
INFO: =============================
---------------core28[1:x]
---------------core29[1:x]
---------------core30[1:x]
---------------core31[1:x]
---------------core32[1:x]
---------------core33[1:x]
---------------core34[1:x]
---------------core35[1:x]
---------------gpu1[1:x]
------------socket1[1:s]
---------node0[1:s]
------rack0[1:s]
---tiny0[1:s]
INFO: =============================
INFO: JOBID=5
INFO: RESOURCES=ALLOCATED
INFO: SCHEDULED AT=Now
INFO: =============================
---------------core18[1:x]
---------------core19[1:x]
---------------core20[1:x]
---------------core21[1:x]
---------------core22[1:x]
---------------core23[1:x]
---------------core24[1:x]
---------------core25[1:x]
---------------core26[1:x]
---------------core27[1:x]
------------socket1[1:s]
---------node0[1:s]
------rack0[1:s]
---tiny0[1:s]
INFO: =============================
INFO: JOBID=6
INFO: RESOURCES=ALLOCATED
INFO: SCHEDULED AT=Now
INFO: =============================
---------------core10[1:x]
---------------core11[1:x]
---------------core12[1:x]
---------------core13[1:x]
---------------core14[1:x]
---------------core15[1:x]
---------------core16[1:x]
---------------core17[1:x]
---------------gpu0[1:x]
------------socket0[1:s]
---------node0[1:s]
------rack0[1:s]
---tiny0[1:s]
INFO: =============================
INFO: JOBID=7
INFO: RESOURCES=ALLOCATED
INFO: SCHEDULED AT=Now
INFO: =============================
---------------core0[1:x]
---------------core1[1:x]
---------------core2[1:x]
---------------core3[1:x]
---------------core4[1:x]
---------------core5[1:x]
---------------core6[1:x]
---------------core7[1:x]
---------------core8[1:x]
---------------core9[1:x]
------------socket0[1:s]
---------node0[1:s]
------rack0[1:s]
---tiny0[1:s]
INFO: =============================
INFO: JOBID=8
INFO: RESOURCES=ALLOCATED
INFO: SCHEDULED AT=Now
INFO: =============================
INFO: =============================
INFO: No matching resources found
INFO: JOBID=9
INFO: =============================
76 changes: 76 additions & 0 deletions t/data/resource/expected/flexible/002.R.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
---------------core28[1:x]
---------------core29[1:x]
---------------core30[1:x]
---------------core31[1:x]
---------------core32[1:x]
---------------core33[1:x]
---------------core34[1:x]
---------------core35[1:x]
---------------gpu1[1:x]
------------socket1[1:s]
---------node1[1:s]
------rack0[1:s]
---tiny0[1:s]
INFO: =============================
INFO: JOBID=1
INFO: RESOURCES=ALLOCATED
INFO: SCHEDULED AT=Now
INFO: =============================
---------------core10[1:x]
---------------core11[1:x]
---------------core12[1:x]
---------------core13[1:x]
---------------core14[1:x]
---------------core15[1:x]
---------------core16[1:x]
---------------core17[1:x]
---------------gpu0[1:x]
------------socket0[1:s]
---------node1[1:s]
------rack0[1:s]
---tiny0[1:s]
INFO: =============================
INFO: JOBID=2
INFO: RESOURCES=ALLOCATED
INFO: SCHEDULED AT=Now
INFO: =============================
---------------core28[1:x]
---------------core29[1:x]
---------------core30[1:x]
---------------core31[1:x]
---------------core32[1:x]
---------------core33[1:x]
---------------core34[1:x]
---------------core35[1:x]
---------------gpu1[1:x]
------------socket1[1:s]
---------node0[1:s]
------rack0[1:s]
---tiny0[1:s]
INFO: =============================
INFO: JOBID=3
INFO: RESOURCES=ALLOCATED
INFO: SCHEDULED AT=Now
INFO: =============================
---------------core10[1:x]
---------------core11[1:x]
---------------core12[1:x]
---------------core13[1:x]
---------------core14[1:x]
---------------core15[1:x]
---------------core16[1:x]
---------------core17[1:x]
---------------gpu0[1:x]
------------socket0[1:s]
---------node0[1:s]
------rack0[1:s]
---tiny0[1:s]
INFO: =============================
INFO: JOBID=4
INFO: RESOURCES=ALLOCATED
INFO: SCHEDULED AT=Now
INFO: =============================
INFO: =============================
INFO: No matching resources found
INFO: JOBID=5
INFO: =============================
Loading

0 comments on commit 29bb462

Please sign in to comment.