Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Currently, PTL doesn't support running test case from non-test directory using pbs-_benchpress TestExecution option ('-t') i.e. a directory where all tests exist.

...

  1. When a test case is run using "pbs_benhcpress Execution option -t" option, PTL will look for the test case in current directory, if it doesn't find then it will search in PTL installed directory (Ex: /opt/ptl/tests)
  2. User can also specify path to tests directory it is not present in PTL installed directory. If user wish to place tests in some non-default directory, then user can mention using environment variable "PTL_TESTS_DIR".                        Ex: export PTL_TESTS_DIR=/home/user/temp/tests"
  3. If PTL_TESTS_DIR is mentioned, then PTL will search in PTL_TESTS_DIR directory only when it doesn't find test case in current and PTL installed directory.
  4. Currently PTL_TESTS_DIR is limited to single path specification. We can mention PTL_TESTS_DIR to point to single path.

...

PTL first tries to find test case in current directory, when if it fails to find then it will search in "/opt/ptl/tests/" path. If it fails to find there as well then it will search in user defined path given in environment variable "PTL_TESTS_DIR".

...

In this case when a test case is executed from /home/user directory, PTL throws error saying "Unknown testcasetest case" as it fails to find the test case in current directory as well as in PTL installed directory which is "/opt/ptl/tests/".

Scenario-4:

Assuming tests directory is moved to "/tmp/tests/" path and if user has set multiple paths in PTL_TESTS_DIR, then PTL will throw an error saying "Unknown testsuite/testcase"

Ex: export PTL_TESTS_DIR=/tmp/tests:/home/user/tests