Project 4: Testing & Actions Posted: Mar 21
Project 4 is due by Midnight on Friday Apr 5
Implement the following for the Makefile repository in the new branch actions:
Part A: Create a testsuite:
- Must be in the test directory testsuite
- Must have a separate CMakeLists.txt in the test directory (linked into the main CMakeLists.txt)
- Must have at least 5 tests. They can be shell scripts, or executable programs.
- Must be able to be run via
ctest
- All tests must pass
Part B: Create a GitHub Action workflow to build and run tests:
- Triggered manually at GitHub
- Produces a downloaded test report and other artifacts
- Works on both Ubuntu and macOS. Should be easily adaptable to Windows also.
- Must use at least
cmake
3.28
As with all topics in this class, an iterative process of a small edit followed by build and test is core to DevOps (in general, not just this class). Failure to do so on this project will lead to a lower score.