/
How to Run a Basic PTL Test

How to Run a Basic PTL Test

To run PTL, PBS needs to be running.  To run a basic PTL test, you run the pbs_benchpress command from the directory where the test file resides:

Start PBS

   /etc/init.d/pbs start

or

   systemctl start pbs

Change Directory to Location of Test File

      cd pbspro/test/tests/

Run Your Tests Using pbs_benchpress

  • To run only test_TestCase1 from TestsuiteName:
      pbs_benchpress -t <TestsuiteName>.<test_TestCase1> -o ptl_test1.txt
  • To run all test cases in a test suite:
      pbs_benchpress -t <TestsuiteName> -o ptl_output.txt 
  • To run a test on a setup where the server runs on host M1 and MoMs run on hosts M1 and M2:
      pbs_benchpress -t <TestsuiteName>.<test_TestCase2> -o ptl_test2.txt -l <log level> -p "servers=M1,moms=M1:M2"      

Examples of Running Tests

  • Example of running the "smoketest" test file:
      pbs_benchpress -f pbspro/test/tests/pbs_smoketest.py -o ptl_output.txt            # Using test file name
  • Example of running the "smoketest" test suite:
      pbs_benchpress -t SmokeTest -o ptl_output.txt      

Related content

PTL FAQs and Tips & Tricks
PTL FAQs and Tips & Tricks
More like this
How to Verify PTL Results
How to Verify PTL Results
More like this
PTL Features for Testing PBS
PTL Features for Testing PBS
More like this
Using Tags in PTL
Using Tags in PTL
More like this
How to Write a PTL Test
How to Write a PTL Test
More like this
PTL Directory Structure
PTL Directory Structure
More like this