コマンドファイルとテスト想定を用意したら、makeまたはmake checkでテストを実行できます。
$ ls 0.txt Makefile cmd desc.txt $ make 有効な不等辺三角形をあらわすテスト・ケース 01_scalene: Test Success 2011-01-10 10:09:55 Detail in /home/foo/triangle/test/01_scalene/detail.log
表示される項目は、次のとおりです。
正しいテスト想定を作成していた場合にバグを含む三角形判定プログラムでテストを実行すると、次のように表示されます。
$ make make: [diff.log] Error 1 (ignored) 有効な不等辺三角形をあらわすテスト・ケース 01_scalene: Test Failure 2011-01-10 20:25:16 Detail in /home/foo/triangle/test/01_scalene/detail.log