Ticket 437 - Need tests for new commands
Summary: Need tests for new commands
Status: RESOLVED FIXED
Alias: None
Product: Slurm
Classification: Unclassified
Component: Test Suite (show other tickets)
Version: 14.03.x
Hardware: Linux Linux
: 5 - Enhancement
Assignee: Nathan Yee
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2013-10-01 09:04 MDT by Moe Jette
Modified: 2013-11-04 09:51 MST (History)
1 user (show)

See Also:
Site: SchedMD
Slinky Site: ---
Alineos Sites: ---
Atos/Eviden Sites: ---
Confidential Site: ---
Coreweave sites: ---
Cray Sites: ---
DS9 clusters: ---
Google sites: ---
HPCnow Sites: ---
HPE Sites: ---
IBM Sites: ---
NOAA SIte: ---
NoveTech Sites: ---
Nvidia HWinf-CS Sites: ---
OCF Sites: ---
Recursion Pharma Sites: ---
SFW Sites: ---
SNIC sites: ---
Tzag Elita Sites: ---
Linux Distro: ---
Machine Name:
CLE Version:
Version Fixed:
Target Release: ---
DevPrio: ---
Emory-Cloud Sites: ---


Attachments
Test for the qalter and qrerun options (20.98 KB, patch)
2013-11-02 08:00 MDT, Nathan Yee
Details | Diff

Note You need to log in before you can comment on or make changes to this ticket.
Description Moe Jette 2013-10-01 09:04:25 MDT
I need some tests for two new commands in the contrib/torque directory: qalter and qrerun. Each command has a help package (e.g. "qalter --help") that will describe the options to be tested.
Comment 1 Nathan Yee 2013-10-20 12:50:19 MDT
(In reply to Moe Jette from comment #0)
> I need some tests for two new commands in the contrib/torque directory:
> qalter and qrerun. Each command has a help package (e.g. "qalter --help")
> that will describe the options to be tested.

For these tests do I have to build a torque system? If I do is there documentation or instructions on how to do it that you could point me to?

Thanks
Comment 2 Nathan Yee 2013-10-23 16:31:27 MDT
Did you want a seperate test for all the options or do you want just one test that will test all of them?
Comment 3 Moe Jette 2013-10-24 03:46:29 MDT
Individual tests for each command please. Start with test20.5
Comment 4 Nathan Yee 2013-11-02 08:00:37 MDT
Created attachment 493 [details]
Test for the qalter and qrerun options

In test20.7 the qalter -o option test that changes the stdout path. when changing the path, it seems to only be set in the comment when doing a scontrol show job. I set this test to look at the comment value since the StdOut value is never changed. Not sure if this is standard behavior. If the test needs to be change please let me know.
Comment 5 Moe Jette 2013-11-04 02:38:17 MST
I needed to add the descriptions to README, added a time limit to the jobs (fyi, the format is "qsub -l walltime=1:00 ..."), otherwise just some minor cosmetic changes.
Comment 6 Moe Jette 2013-11-04 02:40:04 MST
One more thing, the commit is here:

https://github.com/SchedMD/slurm/commit/b27f177ea0bda2d411307a9c94c5498f80cea56b
Comment 7 Moe Jette 2013-11-04 09:51:49 MST
One more issue, the test id is always of the form "#.#" not "test#.#".