Skip to content
Snippets Groups Projects
Commit bfdca00d authored by 이화진's avatar 이화진
Browse files

Add SW testing part

parent bde6d305
No related branches found
No related tags found
No related merge requests found
......@@ -305,6 +305,22 @@ fx_s1516_longlong_div2: 142857
- ```make CFLAGS=-D[MACRO]```
- ```./fx_test.exe```
## SW TESTING
### 정적 테스트(MISRA_C_2012 기반)
- fx_s1516_longlong.c fx_s1516_longlong.h test.c 에서 총 30개의 위배가 나옴.
- 정적 테스트 위배 상세 내용은 violations.pdf 파일을 통해 확인할 수 있다.
### 동적 테스트
![test_1](./images/test_1.png)
- 전체 COVERAGE는 100%가 나왔다. DIV 연산에서는 DIVIDE BY ZERO 때문에 오류가 난 테스트 케이스가 있었다.
![test_1](./images/test_2.png)
- 테스트 케이스를 다른 값으로 바꿔 오류를 제거했다.
## References
###### Randy Yates, Fixed-Point Arithmetic: An Introudction. pp6-pp11
......
images/test_1.PNG

220 KiB

images/test_2.PNG

294 KiB

File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment