AutoTest is a program that automatically tests the minidb program. It will run the minidb program with a series of test cases and compare the output with the expected output.
- For the functional test, there are five kinds of test cases: Basic, Simple, Intermediate, Complex and Advanced, each with two test cases.
- For the format test, there are two test cases in the 5_format folder. test10 is for the 2 decimals of the float elements. And test11 is to test if users can save the database on the disk.
- compile the AutoTest program and get an executable binary file windows.exe
g++ windows.cpp -o windows- run windows.exe with your minidb executable binary file
windows.exe C:\UFUG2601Project\minidb.exe- compile the AutoTest program and get an executable binary file unix
g++ unix.cpp -o unix- run unix with your minidb executable binary file
./unix /mnt/UFUG2601Project/build/minidb- You need to delete the previous output of the minidb program before running the AutoTest program.
