SlideShare ist ein Scribd-Unternehmen logo
1 von 14
Downloaden Sie, um offline zu lesen
LTP Introduction
Caspar Zhang
caspar@casparzhang.com
May 28, 2015
Agenda
Introduction
Build & Run LTP
Build & Run
Define Your Own Test Set
My Previous Work
How to Involve
LTP Introduction 2/14
What is LTP
Linux Test Project
Test Suite
Validate reliability, robustness, and stability of Linux
Automated, semi-automated tests
Testing Linux kernel and related features
Dominant: ANSI-C (94%), Bash (5%), Perl (0.62%)
Highlight cases;
testcases/open posix testsuite (mqueue, semaphore,
threads, timer);
testcases/kernel/: fs, syscalls, mm, etc;
testcases/network: nfs, rpc, sctp, etc;
testcases/mce-test;
testcases/numa;
tools/pounder30 (IBM testsuite)
LTP Introduction 3/14
Get LTP
Tar ball: http://sourceforge.net/projects/ltp/files/
git tree: https://github.com/linux-test-project/ltp.git
LTP Introduction 4/14
Structure
testcases/: source codes of all test cases
commands
kdump
mce-test
misc
crash
math
kernel
connectors
containers
controllers
syscalls,mm,fs,io,ipc,pty,sched,etc
network, etc
runtest/: command files used by ltp-pan to run tests
testscripts/: scripts that execute certain test sets
runltp, ltp-pan: driver script to run tests
runalltests.sh, runltplite.sh: run all/subset of ltp tests
LTP Introduction 5/14
Build & Run LTP
Build: ./configure && make && make install
Get LTP built and installed before running;
Default target dir: /opt/ltp;
To build a git version, run “make autotools” first.
Run: $LTPROOT/runltp
-f: list of test cases (separated with “,”), which may be
command files under “runtest/”, or
user-defined command files.
-p: human readable logfiles
-d: dir to put temp files
-l: logfile of test results
-o: test output
Run: $LTPROOT/runalltests.sh
No param
Default log location: $LTPROOT/output/, $LTPROOT/results
Run: $LTPROOT/runltplite.sh: similar arguments to ‘runltp’
(without -f option)
LTP Introduction 6/14
Define Your Own Test Set
new file under /path/to/ltp/runtest/, e.g.: my-tests
copy testcases items to the file my-tests, e.g:
oom01 oom01
run your own tests with command /path/to/ltp/runltp -f
my-tests
LTP Introduction 7/14
My Previous Work
Fix bugs under testcases/kernel/*
Compose New cases against mm sub-system, including
NUMA, oom, cgroup, etc.
Review and ACK patches from LTP community.
LTP Introduction 8/14
How to Involve - Help to Debug
Target: pass all tests
Collect reproducing steps, circumstance, error log (run log,
result log)
strace, gdb, printf/echo, set -x, etc. . .
LTP Introduction 9/14
How to Involve - Submit Patch
Submit patch to upstream:
Use git;
check your patch format with checkpatch.pl tool from
Kernel source;
Send your patch to ltp-list@lists.sourceforge.net
LTP Introduction 10/14
How to Involve - Write New Testcase
New case under $LTPROOT/testcases/ and new commands
under $LTPROOT/runtest/
Necessary comments and description
Formats (code style, breaking-line, short description,
pre-defined functions, etc)
Let everyone uderstand why you add this testcase.
LTP Introduction 11/14
Useful Links
http://ltp.sourceforge.net/
ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
http://news.gmane.org/gmane.linux.ltp
LTP Introduction 12/14
Q&A
LTP Introduction 13/14
Thank you!
LTP Introduction 14/14

Weitere ähnliche Inhalte

Was ist angesagt?

Linux Kernel Image
Linux Kernel ImageLinux Kernel Image
Linux Kernel Image
艾鍗科技
 

Was ist angesagt? (20)

LFCollab14: Xen vs Xen Automotive
LFCollab14: Xen vs Xen AutomotiveLFCollab14: Xen vs Xen Automotive
LFCollab14: Xen vs Xen Automotive
 
Embedded linux
Embedded linuxEmbedded linux
Embedded linux
 
Yocto project and open embedded training
Yocto project and open embedded trainingYocto project and open embedded training
Yocto project and open embedded training
 
Distributed and clustered systems
Distributed and clustered systemsDistributed and clustered systems
Distributed and clustered systems
 
Linux command ppt
Linux command pptLinux command ppt
Linux command ppt
 
Kernel debug log and console on openSUSE
Kernel debug log and console on openSUSEKernel debug log and console on openSUSE
Kernel debug log and console on openSUSE
 
Linux Kernel Image
Linux Kernel ImageLinux Kernel Image
Linux Kernel Image
 
File systems for Embedded Linux
File systems for Embedded LinuxFile systems for Embedded Linux
File systems for Embedded Linux
 
Os lab manual
Os lab manualOs lab manual
Os lab manual
 
y2038 issue
y2038 issuey2038 issue
y2038 issue
 
SyScan360 - Stefan Esser - OS X El Capitan sinking the S\H/IP
SyScan360 - Stefan Esser - OS X El Capitan sinking the S\H/IPSyScan360 - Stefan Esser - OS X El Capitan sinking the S\H/IP
SyScan360 - Stefan Esser - OS X El Capitan sinking the S\H/IP
 
The immersed boundary method, from 2D fibres to 3D finite elements
The immersed boundary method, from 2D fibres to 3D finite elementsThe immersed boundary method, from 2D fibres to 3D finite elements
The immersed boundary method, from 2D fibres to 3D finite elements
 
Linux Internals - Kernel/Core
Linux Internals - Kernel/CoreLinux Internals - Kernel/Core
Linux Internals - Kernel/Core
 
Luca Ceresoli - Buildroot vs Yocto: Differences for Your Daily Job
Luca Ceresoli - Buildroot vs Yocto: Differences for Your Daily JobLuca Ceresoli - Buildroot vs Yocto: Differences for Your Daily Job
Luca Ceresoli - Buildroot vs Yocto: Differences for Your Daily Job
 
Introduction to SLURM
Introduction to SLURMIntroduction to SLURM
Introduction to SLURM
 
Introduction to distributed system
Introduction to distributed systemIntroduction to distributed system
Introduction to distributed system
 
Introduction to Shell script
Introduction to Shell scriptIntroduction to Shell script
Introduction to Shell script
 
Linux kernel debugging
Linux kernel debuggingLinux kernel debugging
Linux kernel debugging
 
LBNL Node Health Check Update
LBNL Node Health Check UpdateLBNL Node Health Check Update
LBNL Node Health Check Update
 
4.7. chomskian hierarchy of languages
4.7. chomskian hierarchy of languages4.7. chomskian hierarchy of languages
4.7. chomskian hierarchy of languages
 

Ähnlich wie LTP

Running and Developing Tests with the Apache::Test Framework
Running and Developing Tests with the Apache::Test FrameworkRunning and Developing Tests with the Apache::Test Framework
Running and Developing Tests with the Apache::Test Framework
webhostingguy
 
SANS @Night There's Gold in Them Thar Package Management Databases
SANS @Night There's Gold in Them Thar Package Management DatabasesSANS @Night There's Gold in Them Thar Package Management Databases
SANS @Night There's Gold in Them Thar Package Management Databases
Phil Hagen
 
Qtp Training Deepti 1 Of 4187
Qtp Training Deepti 1 Of 4187Qtp Training Deepti 1 Of 4187
Qtp Training Deepti 1 Of 4187
Azhar Satti
 

Ähnlich wie LTP (20)

Running and Developing Tests with the Apache::Test Framework
Running and Developing Tests with the Apache::Test FrameworkRunning and Developing Tests with the Apache::Test Framework
Running and Developing Tests with the Apache::Test Framework
 
Automated Unit Testing
Automated Unit TestingAutomated Unit Testing
Automated Unit Testing
 
30 Minutes To CPAN
30 Minutes To CPAN30 Minutes To CPAN
30 Minutes To CPAN
 
Integration Group - Robot Framework
Integration Group - Robot Framework Integration Group - Robot Framework
Integration Group - Robot Framework
 
PHPNW Test Fest Pre-presentation
PHPNW Test Fest Pre-presentationPHPNW Test Fest Pre-presentation
PHPNW Test Fest Pre-presentation
 
Nagios Conference 2011 - Nathan Vonnahme - Integrating Nagios With Test Drive...
Nagios Conference 2011 - Nathan Vonnahme - Integrating Nagios With Test Drive...Nagios Conference 2011 - Nathan Vonnahme - Integrating Nagios With Test Drive...
Nagios Conference 2011 - Nathan Vonnahme - Integrating Nagios With Test Drive...
 
Test automation principles, terminologies and implementations
Test automation principles, terminologies and implementationsTest automation principles, terminologies and implementations
Test automation principles, terminologies and implementations
 
Automating Security Testing with the OWTF
Automating Security Testing with the OWTFAutomating Security Testing with the OWTF
Automating Security Testing with the OWTF
 
Continuous testing and deployment in Perl (London.pm Technical Meeting Octobe...
Continuous testing and deployment in Perl (London.pm Technical Meeting Octobe...Continuous testing and deployment in Perl (London.pm Technical Meeting Octobe...
Continuous testing and deployment in Perl (London.pm Technical Meeting Octobe...
 
"Introduction to JMeter" @ CPTM 3rd Session
"Introduction to JMeter" @ CPTM 3rd Session"Introduction to JMeter" @ CPTM 3rd Session
"Introduction to JMeter" @ CPTM 3rd Session
 
Practical SPARQL Benchmarking Revisited
Practical SPARQL Benchmarking RevisitedPractical SPARQL Benchmarking Revisited
Practical SPARQL Benchmarking Revisited
 
Unit tests in_symfony
Unit tests in_symfonyUnit tests in_symfony
Unit tests in_symfony
 
Unit Testing Lots of Perl
Unit Testing Lots of PerlUnit Testing Lots of Perl
Unit Testing Lots of Perl
 
Transforming the Ceph Integration Tests with OpenStack
Transforming the Ceph Integration Tests with OpenStack Transforming the Ceph Integration Tests with OpenStack
Transforming the Ceph Integration Tests with OpenStack
 
Os Selbak
Os SelbakOs Selbak
Os Selbak
 
OpenStack Tempest and REST API testing
OpenStack Tempest and REST API testingOpenStack Tempest and REST API testing
OpenStack Tempest and REST API testing
 
SANS @Night There's Gold in Them Thar Package Management Databases
SANS @Night There's Gold in Them Thar Package Management DatabasesSANS @Night There's Gold in Them Thar Package Management Databases
SANS @Night There's Gold in Them Thar Package Management Databases
 
SOFTWARE TESTING COURSE MODULES BY WWW.QATESTINGONLINETRAINING.COM
SOFTWARE TESTING COURSE MODULES BY WWW.QATESTINGONLINETRAINING.COMSOFTWARE TESTING COURSE MODULES BY WWW.QATESTINGONLINETRAINING.COM
SOFTWARE TESTING COURSE MODULES BY WWW.QATESTINGONLINETRAINING.COM
 
Qtp Training Deepti 1 Of 4187
Qtp Training Deepti 1 Of 4187Qtp Training Deepti 1 Of 4187
Qtp Training Deepti 1 Of 4187
 
Perl Modules
Perl ModulesPerl Modules
Perl Modules
 

Kürzlich hochgeladen

一比一原版犹他大学毕业证如何办理
一比一原版犹他大学毕业证如何办理一比一原版犹他大学毕业证如何办理
一比一原版犹他大学毕业证如何办理
F
 
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdfpdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
JOHNBEBONYAP1
 
一比一原版奥兹学院毕业证如何办理
一比一原版奥兹学院毕业证如何办理一比一原版奥兹学院毕业证如何办理
一比一原版奥兹学院毕业证如何办理
F
 
call girls in Anand Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7
call girls in Anand Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7call girls in Anand Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7
call girls in Anand Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Russian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Russian Escort Abu Dhabi 0503464457 Abu DHabi EscortsRussian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Russian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Monica Sydney
 
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
ayvbos
 

Kürzlich hochgeladen (20)

Best SEO Services Company in Dallas | Best SEO Agency Dallas
Best SEO Services Company in Dallas | Best SEO Agency DallasBest SEO Services Company in Dallas | Best SEO Agency Dallas
Best SEO Services Company in Dallas | Best SEO Agency Dallas
 
一比一原版犹他大学毕业证如何办理
一比一原版犹他大学毕业证如何办理一比一原版犹他大学毕业证如何办理
一比一原版犹他大学毕业证如何办理
 
Call girls Service in Ajman 0505086370 Ajman call girls
Call girls Service in Ajman 0505086370 Ajman call girlsCall girls Service in Ajman 0505086370 Ajman call girls
Call girls Service in Ajman 0505086370 Ajman call girls
 
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
 
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdfpdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
 
Research Assignment - NIST SP800 [172 A] - Presentation.pptx
Research Assignment - NIST SP800 [172 A] - Presentation.pptxResearch Assignment - NIST SP800 [172 A] - Presentation.pptx
Research Assignment - NIST SP800 [172 A] - Presentation.pptx
 
一比一原版奥兹学院毕业证如何办理
一比一原版奥兹学院毕业证如何办理一比一原版奥兹学院毕业证如何办理
一比一原版奥兹学院毕业证如何办理
 
"Boost Your Digital Presence: Partner with a Leading SEO Agency"
"Boost Your Digital Presence: Partner with a Leading SEO Agency""Boost Your Digital Presence: Partner with a Leading SEO Agency"
"Boost Your Digital Presence: Partner with a Leading SEO Agency"
 
Down bad crying at the gym t shirtsDown bad crying at the gym t shirts
Down bad crying at the gym t shirtsDown bad crying at the gym t shirtsDown bad crying at the gym t shirtsDown bad crying at the gym t shirts
Down bad crying at the gym t shirtsDown bad crying at the gym t shirts
 
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrStory Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
 
20240507 QFM013 Machine Intelligence Reading List April 2024.pdf
20240507 QFM013 Machine Intelligence Reading List April 2024.pdf20240507 QFM013 Machine Intelligence Reading List April 2024.pdf
20240507 QFM013 Machine Intelligence Reading List April 2024.pdf
 
20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf
 
call girls in Anand Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7
call girls in Anand Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7call girls in Anand Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7
call girls in Anand Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7
 
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
 
Mira Road Housewife Call Girls 07506202331, Nalasopara Call Girls
Mira Road Housewife Call Girls 07506202331, Nalasopara Call GirlsMira Road Housewife Call Girls 07506202331, Nalasopara Call Girls
Mira Road Housewife Call Girls 07506202331, Nalasopara Call Girls
 
Russian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Russian Escort Abu Dhabi 0503464457 Abu DHabi EscortsRussian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Russian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
 
Meaning of On page SEO & its process in detail.
Meaning of On page SEO & its process in detail.Meaning of On page SEO & its process in detail.
Meaning of On page SEO & its process in detail.
 
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
 
💚 Call Girls Bahraich 9332606886 High Profile Call Girls You Can Get The S...
💚 Call Girls Bahraich   9332606886  High Profile Call Girls You Can Get The S...💚 Call Girls Bahraich   9332606886  High Profile Call Girls You Can Get The S...
💚 Call Girls Bahraich 9332606886 High Profile Call Girls You Can Get The S...
 
Local Call Girls in Gomati 9332606886 HOT & SEXY Models beautiful and charmi...
Local Call Girls in Gomati  9332606886 HOT & SEXY Models beautiful and charmi...Local Call Girls in Gomati  9332606886 HOT & SEXY Models beautiful and charmi...
Local Call Girls in Gomati 9332606886 HOT & SEXY Models beautiful and charmi...
 

LTP

  • 2. Agenda Introduction Build & Run LTP Build & Run Define Your Own Test Set My Previous Work How to Involve LTP Introduction 2/14
  • 3. What is LTP Linux Test Project Test Suite Validate reliability, robustness, and stability of Linux Automated, semi-automated tests Testing Linux kernel and related features Dominant: ANSI-C (94%), Bash (5%), Perl (0.62%) Highlight cases; testcases/open posix testsuite (mqueue, semaphore, threads, timer); testcases/kernel/: fs, syscalls, mm, etc; testcases/network: nfs, rpc, sctp, etc; testcases/mce-test; testcases/numa; tools/pounder30 (IBM testsuite) LTP Introduction 3/14
  • 4. Get LTP Tar ball: http://sourceforge.net/projects/ltp/files/ git tree: https://github.com/linux-test-project/ltp.git LTP Introduction 4/14
  • 5. Structure testcases/: source codes of all test cases commands kdump mce-test misc crash math kernel connectors containers controllers syscalls,mm,fs,io,ipc,pty,sched,etc network, etc runtest/: command files used by ltp-pan to run tests testscripts/: scripts that execute certain test sets runltp, ltp-pan: driver script to run tests runalltests.sh, runltplite.sh: run all/subset of ltp tests LTP Introduction 5/14
  • 6. Build & Run LTP Build: ./configure && make && make install Get LTP built and installed before running; Default target dir: /opt/ltp; To build a git version, run “make autotools” first. Run: $LTPROOT/runltp -f: list of test cases (separated with “,”), which may be command files under “runtest/”, or user-defined command files. -p: human readable logfiles -d: dir to put temp files -l: logfile of test results -o: test output Run: $LTPROOT/runalltests.sh No param Default log location: $LTPROOT/output/, $LTPROOT/results Run: $LTPROOT/runltplite.sh: similar arguments to ‘runltp’ (without -f option) LTP Introduction 6/14
  • 7. Define Your Own Test Set new file under /path/to/ltp/runtest/, e.g.: my-tests copy testcases items to the file my-tests, e.g: oom01 oom01 run your own tests with command /path/to/ltp/runltp -f my-tests LTP Introduction 7/14
  • 8. My Previous Work Fix bugs under testcases/kernel/* Compose New cases against mm sub-system, including NUMA, oom, cgroup, etc. Review and ACK patches from LTP community. LTP Introduction 8/14
  • 9. How to Involve - Help to Debug Target: pass all tests Collect reproducing steps, circumstance, error log (run log, result log) strace, gdb, printf/echo, set -x, etc. . . LTP Introduction 9/14
  • 10. How to Involve - Submit Patch Submit patch to upstream: Use git; check your patch format with checkpatch.pl tool from Kernel source; Send your patch to ltp-list@lists.sourceforge.net LTP Introduction 10/14
  • 11. How to Involve - Write New Testcase New case under $LTPROOT/testcases/ and new commands under $LTPROOT/runtest/ Necessary comments and description Formats (code style, breaking-line, short description, pre-defined functions, etc) Let everyone uderstand why you add this testcase. LTP Introduction 11/14