A suite of automation scripts that streamline the sqlancer testing process.
- Python 3.7 or above
- Java 11 or above
- Docker
python3 start.py build --dbms all
- --dbms all: build all the database images
python3 start.py build --dbms <dbms_name>
-
<dbms_name>: e.g., mysql, postgres, sqlite, etc.
-
Example:
python3 start.py build --dbms mysql
python3 start.py build --sqlancer
python3 start.py test --dbms all [--cache]
-
--dbms all: test all the databases
-
--cache(optional): skip pulling/building Docker image
python3 start.py test --dbms <dbms_name> --config <path/to/config.json> [--cache]
-
<dbms_name>: e.g., mysql, postgres, sqlite, etc.
-
--config: Path to the config file for the selected DBMS.
-
Example:
python3 start.py test --dbms mysql --config mysql/config.json
python3 start.py test --dockerfile <path/to/Dockerfile> --config <path/to/config.json> [--cache]
-
--dockerfile: Path to the custom Dockerfile to build the DBMS image.
-
--config: Path to the DBMS config file.
-
Example:
python3 start.py test --dockerfile ./Dockerfile --config ./config.json