This repository contains the test cases and execution scripts for our homework assignment.
code01 server. Running these tests on your local machine may yield inaccurate results.
If you haven't already cloned this repository to your code01 workspace, do that first.
If you already have the repository cloned and just need to fetch the latest test cases or updates, navigate to the repository directory and pull the latest changes:
# Navigate to your project folder
cd /path/to/your/repo
# Clone the latest test cases
git clone https://github.com/Suave101/FITCoinTestCases.git
Make sure your homework source files are located in the same directory as the test scripts before running them.
To run the standard test cases for the main homework assignment, execute the main test script:
bash test.shThis script will compile your code (if applicable), run it against the provided test inputs, and output your results compared to the expected outputs.
If you attempted the extra credit portion of the assignment, there is a separate script to validate your extra credit file. Run the following command:
bash ecTest.sh- "Command not found" or "Permission denied": If bash complains about permissions, you can try granting execution rights to the scripts by running
chmod +x test.sh ecTest.sh, then run them using./test.shand./ecTest.sh. - Wrong Server: If you get strange environment errors, double-check that you are actually SSH'd into
username@code01.fit.eduand not your local terminal. - Missing Files: Ensure your assignment files are named exactly as specified in the homework instructions, as the bash scripts are likely looking for those specific filenames.