Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  1. After you write your test cases and you execute the command to test it out (i.e. "pbs_benchpress -t CgroupsTests") on your test you may get an error message like
    "2016-08-15 21:37:05,960 ERROR    unknown testsuite(s): CgroupsTestsTestCgroups"
    1. To resolve this try to first run python -tt <ptl_test_file> to verify that no syntax error were made
    2. If test file has executable permission then remove it (recommended permission for test file is 0644)
    3. If that doesn't work provide the path to the ptl_test_file using the -f
      1. pbs_benchpress -f pbs_cgroups_tests.py -t CgroupsTestsTestCgroups
  2. Should I run the PTL test suite on my production environment
    1. Never run ptl test cases in the production environment. It will only take once before you regret it. PTL is designed to delete all of the job and restore the system to the default config that it needs to run the tests
  3. Where should I place the new tests.
    1. I recommend placing them under pbspro/test/tests
  4. What should I name the tests?
    1. Name the tests something that will help the user identify what is in the tests. For example pbs_cgroups_tests.py instead of the ticket id that is useful but not very informative without searching the DB
    2. Name should have 'pbs_' prefix.
    3. Follow instructions from this page
  5. How can I find the file when pbs_benchpress cant find it?
    1. pbs_benchpress -f <my_tests.py>
  6. How can I run only a specific test?
    1. For example if I had a test suite called CgroupsTests TestCgroups in file pbs_cgroups_tests.py I would execute the following
      1. pbs_benchpress -f pbs_cgroups_tests.py -t CgroupsTestsTestCgroups
    2. If I wanted to run two specific tests in the CgroupsTests TestCgroups I would do
      1. pbs_benchpress -f pbs_cgroups_tests.py -t CgroupsTestsTestCgroups.test_t4b,CgroupsTestsTestCgroups.test_t4c

Site Map

Developer Guide Pages