Initialize reference files

The first time you run tests, execute the build and run targets, as follows:
main.sh build
main.sh run

These two steps prepare the database, run the test scripts, and generate .log files. The results of all tests are unknown (no reference file).

Check the results in each .log file to determine if the test returned the correct result. The expected result (which was entered with the test data in BladeSmith) is shown in a comment.

If the results are incorrect, you might need to fix the DataBlade® module C code. In other cases, the test data can be incorrect.

When the tests return correct results, create reference files by executing the save target, as follows:
main.sh save

After reference files have been saved, use the all shortcut target to build and run the tests and clean up the database and test directory.