Skip to content

Commit

Permalink
testsuite: add partial cancel tests for rv1exec
Browse files Browse the repository at this point in the history
  • Loading branch information
milroy committed Jun 24, 2024
1 parent 1277524 commit 87600df
Show file tree
Hide file tree
Showing 12 changed files with 652 additions and 1 deletion.
3 changes: 3 additions & 0 deletions t/data/resource/commands/cancel/cmds03.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
match allocate_orelse_reserve @TEST_SRCDIR@/data/resource/jobspecs/cancel/test018.yaml
partial-cancel 1 foo @TEST_SRCDIR@/data/resource/rv1exec/cancel/rank1_cancel.json
quit
8 changes: 8 additions & 0 deletions t/data/resource/commands/cancel/cmds04.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
match allocate @TEST_SRCDIR@/data/resource/jobspecs/cancel/test018.yaml
find sched-now=allocated
partial-cancel 1 rv1exec @TEST_SRCDIR@/data/resource/rv1exec/cancel/rank1_cancel.json
find sched-now=allocated
info 1
match allocate @TEST_SRCDIR@/data/resource/jobspecs/cancel/test019.yaml
find sched-now=allocated
quit
4 changes: 4 additions & 0 deletions t/data/resource/commands/cancel/cmds05.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
match allocate_orelse_reserve @TEST_SRCDIR@/data/resource/jobspecs/cancel/test018.yaml
match allocate_orelse_reserve @TEST_SRCDIR@/data/resource/jobspecs/cancel/test018.yaml
partial-cancel 2 rv1exec @TEST_SRCDIR@/data/resource/rv1exec/cancel/rank1_cancel.json
quit
9 changes: 9 additions & 0 deletions t/data/resource/commands/cancel/cmds06.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
match allocate @TEST_SRCDIR@/data/resource/jobspecs/cancel/test019.yaml
match allocate @TEST_SRCDIR@/data/resource/jobspecs/cancel/test019.yaml
find sched-now=allocated
partial-cancel 2 rv1exec @TEST_SRCDIR@/data/resource/rv1exec/cancel/rank1_cancel.json
find sched-now=allocated
info 2
match allocate @TEST_SRCDIR@/data/resource/jobspecs/cancel/test019.yaml
find sched-now=allocated
quit
49 changes: 49 additions & 0 deletions t/data/resource/expected/cancel/015.R.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---------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]
---------core10[1:x]
---------core11[1:x]
---------core12[1:x]
---------core13[1:x]
---------core14[1:x]
---------core15[1:x]
---------gpu0[1:x]
---------gpu1[1:x]
---------gpu2[1:x]
---------gpu3[1:x]
------node0[1:x]
---------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]
---------core10[1:x]
---------core11[1:x]
---------core12[1:x]
---------core13[1:x]
---------core14[1:x]
---------core15[1:x]
---------gpu0[1:x]
---------gpu1[1:x]
---------gpu2[1:x]
---------gpu3[1:x]
------node1[1:x]
---cluster0[1:s]
INFO: =============================
INFO: JOBID=1
INFO: RESOURCES=ALLOCATED
INFO: SCHEDULED AT=Now
INFO: =============================
ERROR: unsupported reader foo
192 changes: 192 additions & 0 deletions t/data/resource/expected/cancel/016.R.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,192 @@
---------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]
---------core10[1:x]
---------core11[1:x]
---------core12[1:x]
---------core13[1:x]
---------core14[1:x]
---------core15[1:x]
---------gpu0[1:x]
---------gpu1[1:x]
---------gpu2[1:x]
---------gpu3[1:x]
------node0[1:x]
---------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]
---------core10[1:x]
---------core11[1:x]
---------core12[1:x]
---------core13[1:x]
---------core14[1:x]
---------core15[1:x]
---------gpu0[1:x]
---------gpu1[1:x]
---------gpu2[1:x]
---------gpu3[1:x]
------node1[1:x]
---cluster0[1:s]
INFO: =============================
INFO: JOBID=1
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]
---------core10[1:x]
---------core11[1:x]
---------core12[1:x]
---------core13[1:x]
---------core14[1:x]
---------core15[1:x]
---------gpu0[1:x]
---------gpu1[1:x]
---------gpu2[1:x]
---------gpu3[1:x]
------node0[1:x]
---------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]
---------core10[1:x]
---------core11[1:x]
---------core12[1:x]
---------core13[1:x]
---------core14[1:x]
---------core15[1:x]
---------gpu0[1:x]
---------gpu1[1:x]
---------gpu2[1:x]
---------gpu3[1:x]
------node1[1:x]
---cluster0[1:x]
INFO: =============================
INFO: EXPRESSION="sched-now=allocated"
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]
---------core10[1:x]
---------core11[1:x]
---------core12[1:x]
---------core13[1:x]
---------core14[1:x]
---------core15[1:x]
---------gpu0[1:x]
---------gpu1[1:x]
---------gpu2[1:x]
---------gpu3[1:x]
------node0[1:x]
---cluster0[1:x]
INFO: =============================
INFO: EXPRESSION="sched-now=allocated"
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]
---------core10[1:x]
---------core11[1:x]
---------core12[1:x]
---------core13[1:x]
---------core14[1:x]
---------core15[1:x]
---------gpu0[1:x]
---------gpu1[1:x]
---------gpu2[1:x]
---------gpu3[1:x]
------node1[1:x]
---cluster0[1:s]
INFO: =============================
INFO: JOBID=2
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]
---------core10[1:x]
---------core11[1:x]
---------core12[1:x]
---------core13[1:x]
---------core14[1:x]
---------core15[1:x]
---------gpu0[1:x]
---------gpu1[1:x]
---------gpu2[1:x]
---------gpu3[1:x]
------node0[1:x]
---------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]
---------core10[1:x]
---------core11[1:x]
---------core12[1:x]
---------core13[1:x]
---------core14[1:x]
---------core15[1:x]
---------gpu0[1:x]
---------gpu1[1:x]
---------gpu2[1:x]
---------gpu3[1:x]
------node1[1:x]
---cluster0[1:x]
INFO: =============================
INFO: EXPRESSION="sched-now=allocated"
INFO: =============================
97 changes: 97 additions & 0 deletions t/data/resource/expected/cancel/017.R.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
---------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]
---------core10[1:x]
---------core11[1:x]
---------core12[1:x]
---------core13[1:x]
---------core14[1:x]
---------core15[1:x]
---------gpu0[1:x]
---------gpu1[1:x]
---------gpu2[1:x]
---------gpu3[1:x]
------node0[1:x]
---------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]
---------core10[1:x]
---------core11[1:x]
---------core12[1:x]
---------core13[1:x]
---------core14[1:x]
---------core15[1:x]
---------gpu0[1:x]
---------gpu1[1:x]
---------gpu2[1:x]
---------gpu3[1:x]
------node1[1:x]
---cluster0[1:s]
INFO: =============================
INFO: JOBID=1
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]
---------core10[1:x]
---------core11[1:x]
---------core12[1:x]
---------core13[1:x]
---------core14[1:x]
---------core15[1:x]
---------gpu0[1:x]
---------gpu1[1:x]
---------gpu2[1:x]
---------gpu3[1:x]
------node0[1:x]
---------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]
---------core10[1:x]
---------core11[1:x]
---------core12[1:x]
---------core13[1:x]
---------core14[1:x]
---------core15[1:x]
---------gpu0[1:x]
---------gpu1[1:x]
---------gpu2[1:x]
---------gpu3[1:x]
------node1[1:x]
---cluster0[1:s]
INFO: =============================
INFO: JOBID=2
INFO: RESOURCES=RESERVED
INFO: SCHEDULED AT=3600
INFO: =============================
ERROR: reservations not currently supported by partial cancel
Loading

0 comments on commit 87600df

Please sign in to comment.