이런 세상..

[LINUX] LTP (Linux Test Project) 본문

> [IT]/>> Testing

[LINUX] LTP (Linux Test Project)

GANWI 2016. 1. 15. 13:31

[LINUX] LTP (Linux Test Project)

 

**제작사 웹페이지 : http://linux-test-project.github.io/#



 


[0] 사전 환경 (관련 툴 설치)

# yum install autotools-dev automake unzip autoconf gcc



[1] 다운로드

# wget https://github.com/linux-test-project/ltp/archive/master.zip

# unzip master.zip

# cd ltp-master



[2] 빌드

# make autotools

# ./configure

# make

# make install



[3] 실행

# cd /opt/ltp

./runltp


... 진행...결과...

-----------------------------------------------

Total Tests: 1949

Total Skipped Tests: 371

Total Failures: 30

Kernel Version: 2.6.32

Machine Architecture: x86_64

Hostname: TEST



**응용

# ./runltp -p -l result.log -C result.fail -o result.output -S qemu.skiplist


-p : 보기 좋게 출력

-l : 결과 로그 파일

-C : fail 결과 로그 파일

-o : 출력 모든 로그 파일

-S : 제외할 항목 파일





**GCOV(LCOV)

 

[1] KERNEL 패치

# cd /usr/src/kernels/k2.6.32

make menuconfig

-> KERNEL 소스 파일의 옵션에서 GCOV 옵션 활성화(2군데)



# make

# make modules && make modules_install

# make install


# reboot


# cat /boot/grub/grub.conf 확인



[2] GCOV 초기화

# lcov --zerocounters



[3] LTP 실행



[4] GCOV 캡쳐

# lcov –capture –output-file kernel.info



[5] 캡쳐된 파일을 html으로 변환 

genhtml -o lcov_result kernel.info        //  lcov_result/index.html 디렉토리/파일에 변환 저장




Comments