Testing
Some of Sibyl's tests connect to the database and expect certain objects to exist in it and certain privileges granted:
- At least the HR demo schema should be installed.
- While there is no need to install other demo schemas at least
MEDIA_DIRshould be created (see$ORACLE_HOME/demo/schema/mk_dir.sql) and point to the directory with demo files. The latter can be found inproduct_mediain the db-sample-schemas.zip. - Some of the LOB tests need text files with the the expected content. Those can be found in
etc/mediaand copied intoMEDIA_DIR. - A test user should be created. That user needs access to the
HRschema and to theMEDIA_DIRdirectory. Seeetc/create_sandbox.sqlfor an example of how it can be accomplished. - The test user needs
SELECTaccess toV$SESSIONas some tests use it for validation.
GRANT SELECT ON V_$SESSION TO sibyl;
- Tests that connect to the database use environment variables -
DBNAME,DBUSERandDBPASS- to identify the database, user and password respectively. These variables should be set before executingcargo test.