Welcome to the Automarker system! This README will guide you through the process of setting up the Automarker environment and using it to compare your assignment outputs. Follow these steps to get started.
Before using the Automarker, please complete the following setup steps:
First, clone the repository to your local machine. This will create a copy of the Automarker system in your chosen directory. Open your terminal and run:
git clone [email protected]:keraan/COMP3311-24T1-Assignment-1-Automarker.git
Next, you need to copy your ass1.sql
file into the cloned repository directory. This file contains the SQL queries you've written and wish to test with the Automarker. You can do this by running:
cp /path/to/your/ass1.sql /path/to/cloned/repository
Make sure to replace /path/to/your/ass1.sql
with the actual path to your assignment file and /path/to/cloned/repository
with the path to the cloned repository directory.
The Automarker relies on a Bash script named compare_outputs.sh
to function. You must make this script executable with the following command:
chmod +x compare_outputs.sh
Navigate to the repository directory in your terminal before running this command.
Once you have completed the one-time setup, follow these steps each time you want to use the Automarker to compare outputs.
-
Initialize Your Environment:
Before starting the server, you need to initialize your environment by sourcing the environment file located at
/localstorage/$USER/env
. Run:source /localstorage/$USER/env
-
Start the Server:
After setting up your environment, start the server by running:
p1
To compare your assignment outputs using the Automarker, execute the compare_outputs.sh
script followed by the question number you want to compare. For example:
./compare_outputs.sh question_number
Replace question_number
with the actual number of the question you're testing.
Currently, the automarker is only updated to support questions 1-7. (Q8, Q9, Q10 not yet supported).
You're all set! By following these setup and usage instructions, you should be able to efficiently use the Automarker system to compare your assignment outputs. If you encounter any issues, please refer back to this README for guidance.