-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
testsuite: cover job ingest with valgrind
Have the valgrind sharness test execute everything under a workload.d subdirectory, then: workload.d/wreck - content originally from workload.sh workload.d/job - new coverage for job-ingest, job-manager
- Loading branch information
Showing
5 changed files
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
#!/bin/bash | ||
|
||
size=$(flux getattr size) | ||
NJOBS=$1 | ||
echo FLUX_URI=$FLUX_URI | ||
|
||
for i in `seq 1 $NJOBS`; do | ||
flux wreckrun --ntasks $size /bin/true | ||
for file in ${SHARNESS_TEST_SRCDIR:-..}/valgrind/workload.d/*; do | ||
echo Running $(basename $file) | ||
$file | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
runjob() { | ||
local size=$1 | ||
flux job submit <<EOT | ||
{"attributes":null,"tasks":[{"slot":"foo","count":{"per_slot":1},"command":"/bin/true"}],"version":1,"resources":[{"count":1,"type":"slot","with":[{"count":${size},"type":"node"}],"label":"foo"}]} | ||
EOT | ||
} | ||
|
||
NJOBS=10 | ||
NTASKS_PER_JOB=1 | ||
|
||
for i in `seq 1 $NJOBS`; do | ||
runjob ${NTASKS_PER_JOB} | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
size=$(flux getattr size) | ||
NJOBS=10 | ||
|
||
for i in `seq 1 $NJOBS`; do | ||
flux wreckrun --ntasks $size /bin/true | ||
done |