일단 돌려보는게 목적이니 대충 해볼까..
$ 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]
'프로그램 사용 > cunit' 카테고리의 다른 글
cunit test mode - auto / basic / console / ncurse (0) | 2021.04.06 |
---|---|
CI/CD - Continuous integration continuous delivery (0) | 2021.04.05 |
cunit (0) | 2021.04.05 |
CUnit (0) | 2014.03.11 |