I’m working on a bug report, but would also like to create a PTL test that shows the bug. However, I don’t want to install the test in /opt/ptl/tests until I have debugged it. I’ve read through the docs under https://openpbs.atlassian.net/wiki/spaces/DG/pages/518029315/Testing+Your+Code and https://openpbs.atlassian.net/wiki/spaces/PD/pages/1319829507/Enhancement+of+pbs+benchpress+to+run+test+case+from+non-test+directory, but am not having much luck.
Could someone show me the steps to use pbs_benchpress to run a new test (assuming I have PTL running fine for the existing tests)?
For a concrete example, make a local copy of the test at /opt/ptl/tests/functional/pbs_dup_acc_log_for_resv.py, change it to have a reserve_end 61 seconds in the future, and test the result. (This is not the bug, just a simple test.)
This is what I get:
$ pwd
/home/dtalcott/work/ptl_tests
$ pbs_benchpress -f ./pbs_dup_acc_log_for_resv.py -L -l DEBUG
2021-09-08 11:50:56,177 DEBUG included_tests:{'__only__ts__': ['PBSTestSuite'], '__only__tc__': []}
2021-09-08 11:50:56,178 DEBUG included_tests(copy):{'__only__ts__': ['PBSTestSuite'], '__only__tc__': []}
2021-09-08 11:50:56,178 DEBUG excluded_tests:{'__only__ts__': [], '__only__tc__': []}
2021-09-08 11:50:56,184 DEBUG check_unknown called
2021-09-08 11:50:56,184 ERROR unknown testsuite(s): PBSTestSuite
Nothing I have tried gets past the “unknown testsuite(s)” error. I can use -t xyz to change the suite it complains about, but that’s it. I haven’t found a value for xyz that it likes.
Thanks.