[slurm-users] Question about unit tests

Andy Riebs andy at candooz.com
Wed Dec 9 14:30:00 UTC 2020


Did you do the first "make check" from the top-level Slurm directory 
(not testsuite/slurm_unit)?

On 12/8/2020 11:15 PM, Rikimaru Honjo wrote:
> Hi,
>
> I ran unit tests according to the following document.
>
> https://github.com/SchedMD/slurm/blob/master/testsuite/slurm_unit/README
>
> As a result, all unit tests are passed.
>
> But, I am concerned that test case number is too small. Total number 
> is 5.
> Is this correct? It seems that test code is not small.
>
> This is the console log.
> --------------------------------------
> root at ho-slurmctld:/work/slurm/testsuite/slurm_unit# make check
> [...]
> PASS: api-test
> ============================================================================ 
>
> Testsuite summary for slurm 20.02
> ============================================================================ 
>
> # TOTAL: 1
> # PASS:  1
> # SKIP:  0
> # XFAIL: 0
> # FAIL:  0
> # XPASS: 0
> # ERROR: 0
> ============================================================================ 
>
> [...]
> Making check in common
> [...]
> ============================================================================ 
>
> Testsuite summary for slurm 20.02
> ============================================================================ 
>
> # TOTAL: 0
> # PASS:  0
> # SKIP:  0
> # XFAIL: 0
> # FAIL:  0
> # XPASS: 0
> # ERROR: 0
> ============================================================================ 
>
> [...]
> Making check in slurmdb_pack
> [...]
> ============================================================================ 
>
> Testsuite summary for slurm 20.02
> ============================================================================ 
>
> # TOTAL: 0
> # PASS:  0
> # SKIP:  0
> # XFAIL: 0
> # FAIL:  0
> # XPASS: 0
> # ERROR: 0
> ============================================================================ 
>
> [...]
> make  bitstring-test job-resources-test log-test pack-test
> [...]
> PASS: bitstring-test
> PASS: job-resources-test
> PASS: log-test
> PASS: pack-test
> ============================================================================ 
>
> Testsuite summary for slurm 20.02
> ============================================================================ 
>
> # TOTAL: 4
> # PASS:  4
> # SKIP:  0
> # XFAIL: 0
> # FAIL:  0
> # XPASS: 0
> # ERROR: 0
> ============================================================================ 
>
> make[4]: Leaving directory '/work/slurm/testsuite/slurm_unit/common'
> make[3]: Leaving directory '/work/slurm/testsuite/slurm_unit/common'
> make[2]: Leaving directory '/work/slurm/testsuite/slurm_unit/common'
> make[1]: Leaving directory '/work/slurm/testsuite/slurm_unit/common'
> make[1]: Entering directory '/work/slurm/testsuite/slurm_unit'
> make[1]: Nothing to be done for 'check-am'.
> make[1]: Leaving directory '/work/slurm/testsuite/slurm_unit'
> --------------------------------------
>
> Best regards,



More information about the slurm-users mailing list