summaryrefslogtreecommitdiff
path: root/README.tests
blob: 52bea2ae4fecceabbd668355f6cb24d2c6b80055 (plain)
  1. Test file number allocation:
  2. 00 - 09: General base checks
  3. 10 - 39: Module checks, no LSMB database required
  4. 40: Set up test LSMB database
  5. 41 - 59: Operational checks, LSMB database required
  6. 60 - 88: Interface checks
  7. 89: Clean up test LSMB database
  8. 90 - 99: Packaging checks
  9. Environment variables can be used as flags to disable/enable tests >= 40
  10. LSMB_TEST_DB must be set to a defined value if databases are going to be tested.
  11. if LSMB_NEW_DB is set, test 40 (when it is complete) will create a database with
  12. the name from this environment variable, and subsequent database tests will run
  13. against that database. If this is not set, and PGDATABASE is set, tests will
  14. run on that database. If neither are set, the tests will bail out.
  15. Special notes on specific test cases:
  16. 42-dbobject.t: Some tests will run even if LSMB_TEST_DB is not enabled. These
  17. tests do not require a database connection.
  18. 43-dbtest.t: This runs defined test cases from sql/modules/test/. If new
  19. scripts are added, they must be listed in this script as well.
  20. 62-api.t uses request hashes defined in t/data/62-request-data. This
  21. script employs a database commit filter to prevent commits to the db. It is
  22. safe to run on existing databases.
  23. 63-lwp.t will re-use the request hashes defined in test/data/62-request-data.
  24. It does NOT employ a commit filter, so is NOT safe to run against production
  25. data. It will only run if the environment variable LSMB_TEST_LWN is set to true.