make format
There are a few ways you can build the project:
- Use your favourite IDE, e.g. Visual Studio or CLion.
- Use the Bash scripts provided in
Team28/Code28/scripts
(see Installing Python and its packages). You can run either:Team28/Code28/scripts/build.sh
, which builds the project, orTeam28/Code28/scripts/build_and_autotest.sh
, which builds the project and runs the system tests defined inTeam28/Tests28
using autotester.
There are a few ways you can run autotester:
- Powershell
- Build the project (see Building the project).
- Run Windows Powershell as Administrator.
- You may need to run
Set-ExecutionPolicy Unrestricted
to enable execution of remote scripts. - Run
cd Team28\Code28\scripts
. - Run
.\autotest.ps1
.
- Python
- Install Python 3.6+ and some packages (see Installing Python and its packages).
- Build the project (see Building the project).
- Run
python autotest.py PATH_TO_AUTOTESTER_BINARY
(replacePATH_TO_AUTOTESTER_BINARY
with the path to your autotester binary).
- Bash
- Install Python 3.6+ and some packages (see Installing Python and its packages).
- Run
Team28/Code28/scripts/build_and_autotest.sh
.
Some of our scripts in Team28/Code28/scripts
, namely build.sh
, build_and_autotest.sh
, and autotest.py
, depend on Python 3.6+ and some packages which can be installed from pip.
To run these scripts:
- Ensure that Python 3.6+ is installed.
- Run
pip install -r Team28/Code28/scripts/requirements.txt
.