IMPORTANT - This program works using relative paths from the working directory (wherever it was executed from, not the executable path of the program).
- Clone recursively (as Unity testing framework is a submodule) using
git clone --recursive git@gitlab.com:comp1921/20/sc19rag.git
- Run the
build.sh
script- What
build.sh
does: - Creates a build folder
build/
andcd
to it - Create makefiles using CMake
cmake ..
- Make the project using
make
- What
- That's it!
The test program expects a testfiles/
directory with the test files in them. This directory is provided as testfiles/
The test program will also expect a database/
subdirectory to write to.
Additionally, the test program will attempt to save dummy data into the database/
directory. Any saved state in there will be deleted, test.sh
automatically tries to make a copy of database/
if it exists.
- Run
test.sh
- That's it!
- Ensure a
testfiles/
subdirectory exists with the testfiles in them. - Ensure a
database/
subdirectory exists. - Run the program.
- That's it!
- Run
run.sh
- That's it!
- Ensure a
database/
directory exists - Run the program
- That's it!