프로그램 사용/cunit
ubuntu에서 cunit
구차니
2021. 4. 6. 11:04
일단 돌려보는게 목적이니 대충 해볼까..
$ sudo apt-get install libcunit1-dev $ gcc cunit.c -lcunit |
실행하면 아래와 같이 결과가 나온다.
$ ./a.out
CUnit - A unit testing framework for C - Version 2.1-3
http://cunit.sourceforge.net/
Suite: Suite_1
Test: test of fprintf() ...passed
Test: test of fread() ...passed
Run Summary: Type Total Ran Passed Failed Inactive
suites 1 1 n/a 0 0
tests 2 2 2 0 0
asserts 5 5 5 0 n/a
Elapsed time = 0.000 seconds
[링크 : http://cunit.sourceforge.net/example.html]
[링크 : https://sharpis0826.blogspot.com/2013/11/cunit-cunit_17.html]