nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 1 | #LyX 1.1 created this file. For more info see http://www.lyx.org/ |
| 2 | \lyxformat 2.16 |
| 3 | \textclass docbook |
| 4 | \begin_preamble |
| 5 | <!entity header system "header.sgml"> |
| 6 | \end_preamble |
| 7 | \language default |
| 8 | \inputencoding default |
| 9 | \fontscheme default |
| 10 | \graphics default |
| 11 | \paperfontsize default |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 12 | \spacing single |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 13 | \papersize Default |
| 14 | \paperpackage a4 |
| 15 | \use_geometry 0 |
| 16 | \use_amsmath 0 |
| 17 | \paperorientation portrait |
| 18 | \secnumdepth 3 |
| 19 | \tocdepth 3 |
| 20 | \paragraph_separation indent |
| 21 | \defskip medskip |
| 22 | \quotes_language english |
| 23 | \quotes_times 2 |
| 24 | \papercolumns 1 |
| 25 | \papersides 1 |
| 26 | \paperpagestyle default |
| 27 | |
| 28 | \layout Title |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 29 | \added_space_top vfill \added_space_bottom vfill |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 30 | Linux Test Project HOWTO |
| 31 | \layout Date |
| 32 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 33 | 10 October 2000 |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 34 | \layout Author |
| 35 | |
| 36 | Nate Straz |
| 37 | \layout Abstract |
| 38 | |
| 39 | This document explains some of the more in depth topics of the Linux Test |
| 40 | Project and related testing issues. |
| 41 | It does not cover basic installation procedures. |
| 42 | See the INSTALL and README files in the tarball for that information. |
| 43 | \layout Section |
| 44 | |
| 45 | Preface |
| 46 | \layout Standard |
| 47 | |
| 48 | This document was written to help bring the community up to speed on the |
| 49 | ins and outs of the Linux Test Project. |
| 50 | \layout Subsection |
| 51 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 52 | Copyright |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 53 | \layout Standard |
| 54 | |
| 55 | Copyright (c) 2000 by SGI, Inc. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 56 | |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 57 | \layout Standard |
| 58 | |
| 59 | Please freely copy and distribute (sell or give away) this document in any |
| 60 | format. |
| 61 | It's requested that corrections and/or comments be fowarded to the document |
| 62 | maintainer. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 63 | You may create a derivative work and distribute it provided that you: |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 64 | \layout Itemize |
| 65 | |
| 66 | Send your derivative work (in the most suitable format such as sgml) to |
| 67 | the LDP (Linux Documentation Project) or the like for posting on the Internet. |
| 68 | If not the LDP, then let the LDP know where it is available. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 69 | |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 70 | \layout Itemize |
| 71 | |
| 72 | License the derivative work with this same license or use GPL. |
| 73 | Include a copyright notice and at least a pointer to the license used. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 74 | |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 75 | \layout Itemize |
| 76 | |
| 77 | Give due credit to previous authors and major contributors. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 78 | |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 79 | \layout Standard |
| 80 | |
| 81 | If you're considering making a derived work other than a translation, it's |
| 82 | requested that you discuss your plans with the current maintainer. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 83 | |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 84 | \layout Subsection |
| 85 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 86 | Disclaimer |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 87 | \layout Standard |
| 88 | |
| 89 | Use the information in this document at your own risk. |
| 90 | I disavow any potential liability for the contents of this document. |
| 91 | Use of the concepts, examples, and/or other content of this document is |
| 92 | entirely at your own risk. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 93 | |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 94 | \layout Standard |
| 95 | |
| 96 | All copyrights are owned by their owners, unless specifically noted otherwise. |
| 97 | Use of a term in this document should not be regarded as affecting the |
| 98 | validity of any trademark or service mark. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 99 | |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 100 | \layout Standard |
| 101 | |
| 102 | Naming of particular products or brands should not be seen as endorsements. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 103 | |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 104 | \layout Standard |
| 105 | |
| 106 | You are strongly recommended to take a backup of your system before major |
| 107 | installation and backups at regular intervals. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 108 | |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 109 | \layout Section |
| 110 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 111 | Introduction |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 112 | \layout Subsection |
| 113 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 114 | What is the Linux Test Project? |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 115 | \layout Standard |
| 116 | |
| 117 | The Linux Test Project (LTP) is an effort to create a set of tools and tests |
| 118 | to verify the functionality and stability of the Linux kernel. |
| 119 | We hope this will support Linux development by making unit testing more |
| 120 | complete and minimizing user impact by building a barrier to keep bugs |
| 121 | from making it to the user. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 122 | |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 123 | \layout Subsection |
| 124 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 125 | What is wrong with the current testing model? |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 126 | \layout Standard |
| 127 | |
| 128 | The Linux development community utilizes two important (some out argue most |
| 129 | important) testing techniques in its normal operations: Design and Code |
| 130 | Inspections. |
| 131 | The intent of LTP is to support this by giving developers an ever growing |
| 132 | set of tools to help identify any operational problems in their code that |
| 133 | may be missed by human review. |
| 134 | One of the toughest categories of problems to catch with inspection is |
| 135 | that of interaction of features. |
| 136 | With a continuously improving set of tests and tools, developers can get |
| 137 | an indication of whether their changes may have broken some other functionality. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 138 | |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 139 | \layout Standard |
| 140 | |
| 141 | There is no such thing as a perfect test base. |
| 142 | It is only useful it if keeps up with new and changing functionality, |
| 143 | and if it actually gets used. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 144 | |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 145 | \layout Subsection |
| 146 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 147 | Are you doing benchmarking? |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 148 | \layout Standard |
| 149 | |
| 150 | Not at this time. |
| 151 | We are more interested in functional, regression, and stress testing the |
| 152 | Linux kernel. |
| 153 | Benchmarking may be workable to compare the performance among kernel versions. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 154 | |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 155 | \layout Subsection |
| 156 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 157 | Are you doing standards testing? |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 158 | \layout Standard |
| 159 | |
| 160 | No, we are leaving that to the Linux Standards Base (LSB). |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 161 | See the Linux Standards Base |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 162 | \begin_inset LatexCommand \htmlurl[web site]{http://www.linuxbase.org/} |
| 163 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 164 | \end_inset |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 165 | |
| 166 | for more information. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 167 | |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 168 | \layout Section |
| 169 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 170 | Structure |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 171 | \layout Standard |
| 172 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 173 | The basic building block of the test project is a |
| 174 | \series bold |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 175 | test case |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 176 | \series default |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 177 | that consists of a single action and a verification that the action worked. |
| 178 | The result of the test case is usually restricted to PASS/FAIL. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 179 | |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 180 | \layout Standard |
| 181 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 182 | A |
| 183 | \series bold |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 184 | test program |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 185 | \series default |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 186 | is a runnable program that contains one or more test cases. |
| 187 | Test programs often understand command line options which alter their behavior. |
| 188 | The options could determine the amount of memory tested, the location of |
| 189 | temporary files, the type of network packet used, or any other useful parameter. |
| 190 | \layout Standard |
| 191 | |
| 192 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 193 | \series bold |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 194 | Test tags |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 195 | \series default |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 196 | are used to pair a unique identifier with a test program and a set of command |
| 197 | line options. |
| 198 | Test tags are the basis for test suites. |
| 199 | \layout Section |
| 200 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 201 | Writing Tests |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 202 | \layout Standard |
| 203 | |
| 204 | Writing a test case is a lot easier than most people think. |
| 205 | Any code that you write to examine how a part of the kernel works can |
| 206 | be adapted into a test case. |
| 207 | All that is needed is a way to report the result of the action to the |
| 208 | rest of the world. |
| 209 | There are several ways of doing this, some more involved than others. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 210 | |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 211 | \layout Subsection |
| 212 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 213 | Exit Style Tests |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 214 | \layout Standard |
| 215 | |
| 216 | Probably the simplest way of reporting the results of a test case is the |
| 217 | exit status of your program. |
| 218 | If your test program encounters unexpected or incorrect results, exit |
| 219 | the test program with a non-zero exit status, i.e. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 220 | |
| 221 | \family typewriter |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 222 | exit(1) |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 223 | \family default |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 224 | . |
| 225 | Conversely, if your program completes as expected, return a zero exit status, |
| 226 | i.e. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 227 | |
| 228 | \family typewriter |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 229 | exit(0) |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 230 | \family default |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 231 | . |
| 232 | Any test driver should be able to handle this type of error reporting. |
| 233 | If a test program has multiple test cases you won't know which test case |
| 234 | failed, but you will know the program that failed. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 235 | |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 236 | \layout Subsection |
| 237 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 238 | Formatted Output Tests |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 239 | \layout Standard |
| 240 | |
| 241 | The next easiest way of reporting the results is to write the results of |
| 242 | each test case to standard output. |
| 243 | This allows for the testing results to be more understandable to both the |
| 244 | tester and the analysis tools. |
| 245 | When the results are written in a standard way, tools can be used to analyze |
| 246 | the results. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 247 | |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 248 | \layout Section |
| 249 | |
| 250 | Testing Tools |
| 251 | \layout Standard |
| 252 | |
| 253 | The Linux Test Project has not yet decided on a "final" test harness. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 254 | We have provided a simple solution with |
| 255 | \family typewriter |
subrata_modak | 14390fd | 2009-05-19 09:39:11 +0000 | [diff] [blame] | 256 | ltp-pan |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 257 | \family default |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 258 | to make due until a complete solution has been found/created that compliments |
| 259 | the Linux kernel development process. |
| 260 | Several people have said we should use such and such a test harness. |
| 261 | Until we find we need a large complex test harness, we will apply the KISS |
| 262 | concept. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 263 | |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 264 | \layout Subsection |
| 265 | |
subrata_modak | 14390fd | 2009-05-19 09:39:11 +0000 | [diff] [blame] | 266 | Ltp-pan |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 267 | \layout Standard |
| 268 | |
| 269 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 270 | \family typewriter |
subrata_modak | 14390fd | 2009-05-19 09:39:11 +0000 | [diff] [blame] | 271 | ltp-pan |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 272 | \family default |
nstraz | 03d32f4 | 2000-10-11 22:46:16 +0000 | [diff] [blame] | 273 | is a simple test driver with the ability to keep track of orphaned processes |
| 274 | and capture test output. |
| 275 | It works by reading a list of test tags and command lines and runs them. |
subrata_modak | 14390fd | 2009-05-19 09:39:11 +0000 | [diff] [blame] | 276 | By default ltp-pan will select a command randomly from the list of test tags, |
nstraz | 03d32f4 | 2000-10-11 22:46:16 +0000 | [diff] [blame] | 277 | wait for it to finish. |
| 278 | Through command line options you can run through the entire list sequentially, |
| 279 | run n tests, keep n test running at all times, and buffer test output. |
subrata_modak | 14390fd | 2009-05-19 09:39:11 +0000 | [diff] [blame] | 280 | Ltp-pan can be nested to create very complex test environments. |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 281 | \layout Standard |
| 282 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 283 | Ltp-pan uses an |
| 284 | \emph on |
nstraz | 03d32f4 | 2000-10-11 22:46:16 +0000 | [diff] [blame] | 285 | active file |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 286 | \emph default |
| 287 | , also called a |
| 288 | \emph on |
nstraz | 03d32f4 | 2000-10-11 22:46:16 +0000 | [diff] [blame] | 289 | zoo file |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 290 | \emph default |
nstraz | 03d32f4 | 2000-10-11 22:46:16 +0000 | [diff] [blame] | 291 | to keep track of which tests are currently running. |
| 292 | This file holds the pid, tag, and a portion of the command line. |
subrata_modak | 14390fd | 2009-05-19 09:39:11 +0000 | [diff] [blame] | 293 | When you start ltp-pan it becomes a test tag in itself, thus it requires a |
nstraz | 03d32f4 | 2000-10-11 22:46:16 +0000 | [diff] [blame] | 294 | name for itself. |
subrata_modak | 14390fd | 2009-05-19 09:39:11 +0000 | [diff] [blame] | 295 | Ltp-pan updates the active file to show which test tags are currently running. |
| 296 | When a test tag exits, ltp-pan will overwrite the first character with a '#'. |
| 297 | The active file can be shared between multiple instances of ltp-pan so you |
nstraz | 03d32f4 | 2000-10-11 22:46:16 +0000 | [diff] [blame] | 298 | know which tests were running when the system crashes by looking at one |
| 299 | file. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 300 | |
nstraz | 03d32f4 | 2000-10-11 22:46:16 +0000 | [diff] [blame] | 301 | \layout Standard |
| 302 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 303 | A |
| 304 | \emph on |
subrata_modak | 14390fd | 2009-05-19 09:39:11 +0000 | [diff] [blame] | 305 | ltp-pan file |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 306 | \emph default |
subrata_modak | 14390fd | 2009-05-19 09:39:11 +0000 | [diff] [blame] | 307 | contains a list of test tags for ltp-pan to run. |
| 308 | The format of a ltp-pan file is as follows: |
nstraz | 562c737 | 2000-10-10 21:57:51 +0000 | [diff] [blame] | 309 | \layout Code |
| 310 | |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 311 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 312 | \latex no_latex |
nstraz | 562c737 | 2000-10-10 21:57:51 +0000 | [diff] [blame] | 313 | testtag testprogram -o one -p two other command line options |
| 314 | \layout Code |
| 315 | |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 316 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 317 | \latex no_latex |
nstraz | 562c737 | 2000-10-10 21:57:51 +0000 | [diff] [blame] | 318 | # This is a comment. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 319 | It is a good idea to describe the test |
nstraz | 562c737 | 2000-10-10 21:57:51 +0000 | [diff] [blame] | 320 | \layout Code |
| 321 | |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 322 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 323 | \latex no_latex |
subrata_modak | 14390fd | 2009-05-19 09:39:11 +0000 | [diff] [blame] | 324 | # tags in your ltp-pan file. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 325 | Tests programs can have different |
nstraz | 562c737 | 2000-10-10 21:57:51 +0000 | [diff] [blame] | 326 | \layout Code |
| 327 | |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 328 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 329 | \latex no_latex |
| 330 | # behaviors depending on the command line options so it is |
nstraz | 562c737 | 2000-10-10 21:57:51 +0000 | [diff] [blame] | 331 | \layout Code |
| 332 | |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 333 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 334 | \latex no_latex |
nstraz | 03d32f4 | 2000-10-11 22:46:16 +0000 | [diff] [blame] | 335 | # helpful to describe what each test tag is meant to verify or # provoke. |
nstraz | 562c737 | 2000-10-10 21:57:51 +0000 | [diff] [blame] | 336 | \layout Code |
| 337 | |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 338 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 339 | \latex no_latex |
nstraz | 562c737 | 2000-10-10 21:57:51 +0000 | [diff] [blame] | 340 | # Some more test cases |
| 341 | \layout Code |
| 342 | |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 343 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 344 | \latex no_latex |
nstraz | 562c737 | 2000-10-10 21:57:51 +0000 | [diff] [blame] | 345 | mm01 mmap001 -m 10000 |
| 346 | \layout Code |
| 347 | |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 348 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 349 | \latex no_latex |
nstraz | 562c737 | 2000-10-10 21:57:51 +0000 | [diff] [blame] | 350 | # 40 Mb mmap() test. |
| 351 | \layout Code |
| 352 | |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 353 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 354 | \latex no_latex |
| 355 | # Creates a 10000 page mmap, touches all of the map, sync's |
nstraz | 562c737 | 2000-10-10 21:57:51 +0000 | [diff] [blame] | 356 | \layout Code |
| 357 | |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 358 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 359 | \latex no_latex |
nstraz | 562c737 | 2000-10-10 21:57:51 +0000 | [diff] [blame] | 360 | # it, and munmap()s it. |
| 361 | \layout Code |
| 362 | |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 363 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 364 | \latex no_latex |
nstraz | 562c737 | 2000-10-10 21:57:51 +0000 | [diff] [blame] | 365 | mm03 mmap001 -i 0 -I 1 -m 100 |
| 366 | \layout Code |
| 367 | |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 368 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 369 | \latex no_latex |
nstraz | 562c737 | 2000-10-10 21:57:51 +0000 | [diff] [blame] | 370 | # repetitive mmapping test. |
| 371 | \layout Code |
| 372 | |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 373 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 374 | \latex no_latex |
nstraz | 562c737 | 2000-10-10 21:57:51 +0000 | [diff] [blame] | 375 | # Creates a one page map repetitively for one minute. |
| 376 | \layout Code |
| 377 | |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 378 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 379 | \latex no_latex |
nstraz | 562c737 | 2000-10-10 21:57:51 +0000 | [diff] [blame] | 380 | dup02 dup02 |
| 381 | \layout Code |
| 382 | |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 383 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 384 | \latex no_latex |
nstraz | 562c737 | 2000-10-10 21:57:51 +0000 | [diff] [blame] | 385 | # Negative test for dup(2) with bad fd |
| 386 | \layout Code |
| 387 | |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 388 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 389 | \latex no_latex |
| 390 | kill09 kill09 |
nstraz | 562c737 | 2000-10-10 21:57:51 +0000 | [diff] [blame] | 391 | \layout Code |
| 392 | |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 393 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 394 | \latex no_latex |
nstraz | 562c737 | 2000-10-10 21:57:51 +0000 | [diff] [blame] | 395 | # Basic test for kill(2) |
| 396 | \layout Code |
| 397 | |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 398 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 399 | \latex no_latex |
subrata_modak | 14390fd | 2009-05-19 09:39:11 +0000 | [diff] [blame] | 400 | fs-suite01 ltp-pan -e -a fs-suite01.zoo -n fs-suite01 -f runtest/fs |
nstraz | 562c737 | 2000-10-10 21:57:51 +0000 | [diff] [blame] | 401 | \layout Code |
| 402 | |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 403 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 404 | \latex no_latex |
nstraz | 562c737 | 2000-10-10 21:57:51 +0000 | [diff] [blame] | 405 | # run the entire set of file system tests |
| 406 | \layout Standard |
| 407 | |
nstraz | 03d32f4 | 2000-10-11 22:46:16 +0000 | [diff] [blame] | 408 | The test tags are simple identifiers, no spaces are allowed. |
| 409 | The test of the line is the program to run, which is done using execvp(3). |
subrata_modak | 14390fd | 2009-05-19 09:39:11 +0000 | [diff] [blame] | 410 | Lines starting with '#' are comments and ignored by ltp-pan. |
nstraz | 03d32f4 | 2000-10-11 22:46:16 +0000 | [diff] [blame] | 411 | It is a good practice to include descriptions with your test tags so you |
| 412 | can have a reminder what a certain obscure test tag tries to do. |
| 413 | \layout Subsubsection |
| 414 | |
| 415 | Examples |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 416 | \layout Standard |
nstraz | 03d32f4 | 2000-10-11 22:46:16 +0000 | [diff] [blame] | 417 | |
subrata_modak | 14390fd | 2009-05-19 09:39:11 +0000 | [diff] [blame] | 418 | The most basic way to run ltp-pan is by passing the test program and parameters |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 419 | on the command line. |
| 420 | This will run the single program once and wrap the output. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 421 | |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 422 | \layout Code |
| 423 | |
| 424 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 425 | \latex no_latex |
subrata_modak | 14390fd | 2009-05-19 09:39:11 +0000 | [diff] [blame] | 426 | $ ltp-pan -a ltp.zoo -n tutor sleep 4 |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 427 | \layout Code |
| 428 | |
| 429 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 430 | \latex no_latex |
| 431 | <<<test_start>>> |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 432 | \layout Code |
| 433 | |
| 434 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 435 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 436 | tag=cmdln stime=971450564 |
| 437 | \layout Code |
| 438 | |
| 439 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 440 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 441 | cmdline="sleep 4" |
| 442 | \layout Code |
| 443 | |
| 444 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 445 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 446 | contacts="" |
| 447 | \layout Code |
| 448 | |
| 449 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 450 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 451 | analysis=exit |
| 452 | \layout Code |
| 453 | |
| 454 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 455 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 456 | initiation_status="ok" |
| 457 | \layout Code |
| 458 | |
| 459 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 460 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 461 | <<<test_output>>> |
| 462 | \layout Code |
| 463 | |
| 464 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 465 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 466 | <<<execution_status>>> |
| 467 | \layout Code |
| 468 | |
| 469 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 470 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 471 | duration=103341903 termination_type=exited termination_id=0 corefile=no |
| 472 | cutime=0 cstime=0 |
| 473 | \layout Code |
| 474 | |
| 475 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 476 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 477 | <<<test_end>>> |
| 478 | \layout Code |
| 479 | |
| 480 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 481 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 482 | $ cat ltp.zoo |
| 483 | \layout Code |
| 484 | |
| 485 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 486 | \latex no_latex |
| 487 | #9357,tutor,pan/ltp-pan -a ltp.zoo -n tutor sleep 4 |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 488 | \layout Code |
| 489 | |
| 490 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 491 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 492 | #9358,cmdln,sleep 4 |
| 493 | \layout Code |
| 494 | |
| 495 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 496 | \latex no_latex |
| 497 | $ |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 498 | \layout Paragraph |
| 499 | |
| 500 | How it works |
| 501 | \layout Standard |
| 502 | |
subrata_modak | 14390fd | 2009-05-19 09:39:11 +0000 | [diff] [blame] | 503 | This example shows the two parameters that are always required by ltp-pan, the |
| 504 | active file and a test tag for ltp-pan. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 505 | The |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 506 | \begin_inset Quotes eld |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 507 | \end_inset |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 508 | |
| 509 | sleep 4 |
| 510 | \begin_inset Quotes erd |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 511 | \end_inset |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 512 | |
subrata_modak | 14390fd | 2009-05-19 09:39:11 +0000 | [diff] [blame] | 513 | on the end of the command line is a test program and parameters that ltp-pan |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 514 | should run. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 515 | This test is given the tag |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 516 | \begin_inset Quotes eld |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 517 | \end_inset |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 518 | |
| 519 | cmdln. |
| 520 | \begin_inset Quotes erd |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 521 | \end_inset |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 522 | |
subrata_modak | 14390fd | 2009-05-19 09:39:11 +0000 | [diff] [blame] | 523 | Ltp-pan will run one test randomly, which ends up being cmdln since it is the |
| 524 | only test that we told ltp-pan about. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 525 | |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 526 | \layout Standard |
| 527 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 528 | In the active file, |
| 529 | \family typewriter |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 530 | ltp.zoo |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 531 | \family default |
subrata_modak | 14390fd | 2009-05-19 09:39:11 +0000 | [diff] [blame] | 532 | , ltp-pan writes the pid, test tag, and part of the command line for the currently |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 533 | running tests. |
| 534 | The command lines are truncated so each line will fit on an 80 column display. |
subrata_modak | 14390fd | 2009-05-19 09:39:11 +0000 | [diff] [blame] | 535 | When a test tag finishes, ltp-pan will place a '#' at the beginning of the |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 536 | line to mark it as available. |
subrata_modak | 14390fd | 2009-05-19 09:39:11 +0000 | [diff] [blame] | 537 | Here you can see that cmdln and tutor, the name we gave ltp-pan, ran to completion. |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 538 | If the computer hangs, you can read this file to see which test programs |
| 539 | were running. |
| 540 | \layout Standard |
| 541 | |
| 542 | We have run one test once. |
| 543 | Let's do something a little more exciting. |
| 544 | Let's run one test several times, at the same time. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 545 | |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 546 | \layout Code |
| 547 | |
| 548 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 549 | \latex no_latex |
subrata_modak | 14390fd | 2009-05-19 09:39:11 +0000 | [diff] [blame] | 550 | $ ltp-pan -a ltp.zoo -n tutor -x 3 -s 3 -O /tmp sleep 1 |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 551 | \layout Code |
| 552 | |
| 553 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 554 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 555 | <<<test_start>>> |
| 556 | \layout Code |
| 557 | |
| 558 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 559 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 560 | tag=cmdln stime=971465653 |
| 561 | \layout Code |
| 562 | |
| 563 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 564 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 565 | cmdline="sleep 1" |
| 566 | \layout Code |
| 567 | |
| 568 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 569 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 570 | contacts="" |
| 571 | \layout Code |
| 572 | |
| 573 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 574 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 575 | analysis=exit |
| 576 | \layout Code |
| 577 | |
| 578 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 579 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 580 | initiation_status="ok" |
| 581 | \layout Code |
| 582 | |
| 583 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 584 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 585 | <<<test_output>>> |
| 586 | \layout Code |
| 587 | |
| 588 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 589 | \latex no_latex |
| 590 | |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 591 | \layout Code |
| 592 | |
| 593 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 594 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 595 | <<<execution_status>>> |
| 596 | \layout Code |
| 597 | |
| 598 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 599 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 600 | duration=103326814 termination_type=exited termination_id=0 corefile=no |
| 601 | \layout Code |
| 602 | |
| 603 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 604 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 605 | cutime=1 cstime=0 |
| 606 | \layout Code |
| 607 | |
| 608 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 609 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 610 | <<<test_end>>> |
| 611 | \layout Code |
| 612 | |
| 613 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 614 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 615 | <<<test_start>>> |
| 616 | \layout Code |
| 617 | |
| 618 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 619 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 620 | tag=cmdln stime=971465653 |
| 621 | \layout Code |
| 622 | |
| 623 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 624 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 625 | cmdline="sleep 1" |
| 626 | \layout Code |
| 627 | |
| 628 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 629 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 630 | contacts="" |
| 631 | \layout Code |
| 632 | |
| 633 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 634 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 635 | analysis=exit |
| 636 | \layout Code |
| 637 | |
| 638 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 639 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 640 | initiation_status="ok" |
| 641 | \layout Code |
| 642 | |
| 643 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 644 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 645 | <<<test_output>>> |
| 646 | \layout Code |
| 647 | |
| 648 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 649 | \latex no_latex |
| 650 | |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 651 | \layout Code |
| 652 | |
| 653 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 654 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 655 | <<<execution_status>>> |
| 656 | \layout Code |
| 657 | |
| 658 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 659 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 660 | duration=103326814 termination_type=exited termination_id=0 corefile=no |
| 661 | \layout Code |
| 662 | |
| 663 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 664 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 665 | cutime=0 cstime=1 |
| 666 | \layout Code |
| 667 | |
| 668 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 669 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 670 | <<<test_end>>> |
| 671 | \layout Code |
| 672 | |
| 673 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 674 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 675 | <<<test_start>>> |
| 676 | \layout Code |
| 677 | |
| 678 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 679 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 680 | tag=cmdln stime=971465653 |
| 681 | \layout Code |
| 682 | |
| 683 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 684 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 685 | cmdline="sleep 1" |
| 686 | \layout Code |
| 687 | |
| 688 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 689 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 690 | contacts="" |
| 691 | \layout Code |
| 692 | |
| 693 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 694 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 695 | analysis=exit |
| 696 | \layout Code |
| 697 | |
| 698 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 699 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 700 | initiation_status="ok" |
| 701 | \layout Code |
| 702 | |
| 703 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 704 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 705 | <<<test_output>>> |
| 706 | \layout Code |
| 707 | |
| 708 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 709 | \latex no_latex |
| 710 | |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 711 | \layout Code |
| 712 | |
| 713 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 714 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 715 | <<<execution_status>>> |
| 716 | \layout Code |
| 717 | |
| 718 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 719 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 720 | duration=103326814 termination_type=exited termination_id=0 corefile=no |
| 721 | \layout Code |
| 722 | |
| 723 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 724 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 725 | cutime=0 cstime=0 |
| 726 | \layout Code |
| 727 | |
| 728 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 729 | \latex no_latex |
nstraz | ce6eedd | 2000-10-13 21:14:14 +0000 | [diff] [blame] | 730 | <<<test_end>>> |
| 731 | \layout Paragraph |
| 732 | |
| 733 | How it works |
| 734 | \layout Standard |
| 735 | |
| 736 | In this example we run another fake test from the command line, but we run |
| 737 | it three times (-s 3) and keep three test tags active at the same time |
| 738 | (-x 3). |
| 739 | The -O parameter is a directory where temporary files can be created to |
| 740 | buffer the output of each test tag. |
| 741 | You can see in the output that cmdln ran three times. |
| 742 | If the -O option were omitted, your test output would be mixed, making |
| 743 | it almost worthless. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 744 | |
nstraz | 830a65b | 2000-10-12 16:39:25 +0000 | [diff] [blame] | 745 | \layout Itemize |
| 746 | |
subrata_modak | 14390fd | 2009-05-19 09:39:11 +0000 | [diff] [blame] | 747 | Using a ltp-pan file to run multiple tests |
nstraz | 830a65b | 2000-10-12 16:39:25 +0000 | [diff] [blame] | 748 | \layout Itemize |
| 749 | |
subrata_modak | 14390fd | 2009-05-19 09:39:11 +0000 | [diff] [blame] | 750 | Nesting ltp-pan |
nstraz | 03d32f4 | 2000-10-11 22:46:16 +0000 | [diff] [blame] | 751 | \layout Standard |
| 752 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 753 | For more information on ltp-pan see the man page |
| 754 | \family typewriter |
subrata_modak | 14390fd | 2009-05-19 09:39:11 +0000 | [diff] [blame] | 755 | doc/man1/ltp-pan.1 |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 756 | \family default |
nstraz | 562c737 | 2000-10-10 21:57:51 +0000 | [diff] [blame] | 757 | . |
| 758 | \layout Subsection |
| 759 | |
| 760 | Scanner |
| 761 | \layout Standard |
| 762 | |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 763 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 764 | \family typewriter |
subrata_modak | 14390fd | 2009-05-19 09:39:11 +0000 | [diff] [blame] | 765 | Ltp-scanner |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 766 | \family default |
| 767 | is a results analysis tool that understands the |
| 768 | \emph on |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 769 | rts |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 770 | \emph default |
| 771 | style output which |
| 772 | \family typewriter |
subrata_modak | 14390fd | 2009-05-19 09:39:11 +0000 | [diff] [blame] | 773 | ltp-pan |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 774 | \family default |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 775 | generates by default. |
| 776 | It will produce a table summarizing which tests passed and which failed. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 777 | |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 778 | \layout Subsection |
| 779 | |
nstraz | 562c737 | 2000-10-10 21:57:51 +0000 | [diff] [blame] | 780 | The Quick-hitter Package |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 781 | \layout Standard |
| 782 | |
nstraz | 562c737 | 2000-10-10 21:57:51 +0000 | [diff] [blame] | 783 | Many of the tests released use the Quick-hitter test package to perform |
| 784 | tasks like create and move to a temporary directory, handle some common |
| 785 | command line parameters, loop, run in parallel, handle signals, and clean |
| 786 | up. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 787 | |
nstraz | 562c737 | 2000-10-10 21:57:51 +0000 | [diff] [blame] | 788 | \layout Standard |
| 789 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 790 | There is an example test case, |
| 791 | \family typewriter |
nstraz | 562c737 | 2000-10-10 21:57:51 +0000 | [diff] [blame] | 792 | doc/examples/quickhit.c |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 793 | \family default |
nstraz | 562c737 | 2000-10-10 21:57:51 +0000 | [diff] [blame] | 794 | , which shows how the quick-hitter package can be used. |
| 795 | The file is meant to be a supplement to the documentation, not a working |
| 796 | test case. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 797 | Use any of the tests in |
| 798 | \family typewriter |
nstraz | 562c737 | 2000-10-10 21:57:51 +0000 | [diff] [blame] | 799 | tests/ |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 800 | \family default |
nstraz | 562c737 | 2000-10-10 21:57:51 +0000 | [diff] [blame] | 801 | as a template. |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 802 | \layout Section |
| 803 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 804 | To Do |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 805 | \layout Standard |
| 806 | |
nstraz | 562c737 | 2000-10-10 21:57:51 +0000 | [diff] [blame] | 807 | There are a lot of things that still need to be done to make this a complete |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 808 | kernel testing system. |
| 809 | The following sections will discuss some of the to do items in detail. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 810 | |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 811 | \layout Subsection |
| 812 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 813 | Configuration Analysis |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 814 | \layout Standard |
| 815 | |
| 816 | While the number of configuration options for the Linux kernel is seen as |
| 817 | a strength to developers and users alike, it is a curse to testers. |
| 818 | To create a powerful automated testing system, we need to be able to determine |
| 819 | what the configuration on the booted box is and then determine which tests |
| 820 | should be run on that box. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 821 | |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 822 | \layout Standard |
| 823 | |
| 824 | The Linux kernel has hundreds of configuration options that can be set to |
| 825 | compile the kernel. |
| 826 | There are more options that can be set when you boot the kernel and while |
| 827 | it is running. |
| 828 | There are also many patches that can be applied to the kernel to add functiona |
| 829 | lity or change behavior. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 830 | |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 831 | \layout Subsection |
| 832 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 833 | Result Comparison |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 834 | \layout Standard |
| 835 | |
| 836 | A lot of testing will be done in the life of the Linux Test Project. |
| 837 | Keeping track of the results from all the testing will require some infrastruct |
| 838 | ure. |
| 839 | It would be nice to take that output from a test machine, feed it to a |
| 840 | program and receive a list of items that broke since the last run on that |
| 841 | machine, or were fixed, or work on another test machine but not on this |
| 842 | one. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 843 | |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 844 | \layout Section |
| 845 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 846 | Contact information and updates |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 847 | \layout Literal |
| 848 | |
subrata_modak | 72ff425 | 2007-07-24 10:09:02 +0000 | [diff] [blame] | 849 | URL: http://ltp.sourceforge.net/ |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 850 | \layout Literal |
| 851 | |
Cyril Hrubis | 70d7e8c | 2015-09-15 12:50:31 +0200 | [diff] [blame] | 852 | mailing list: ltp@lists.linux.it |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 853 | \layout Literal |
| 854 | |
Cyril Hrubis | 70d7e8c | 2015-09-15 12:50:31 +0200 | [diff] [blame] | 855 | list archive: http://lists.linux.it/pipermail/ltp/ |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 856 | \layout Standard |
| 857 | |
subrata_modak | 72ff425 | 2007-07-24 10:09:02 +0000 | [diff] [blame] | 858 | Questions and comments should be sent to the LTP mailing |
Cyril Hrubis | 70d7e8c | 2015-09-15 12:50:31 +0200 | [diff] [blame] | 859 | list at ltp@lists.linux.it. To subscribe, please go to |
| 860 | http://lists.linux.it/pipermail/ltp/. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 861 | |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 862 | \layout Standard |
| 863 | |
| 864 | The source is also available via CVS. |
| 865 | See the web site for a web interface and check out instructions. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 866 | |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 867 | \layout Section |
| 868 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 869 | Glossary |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 870 | \layout Description |
| 871 | |
| 872 | Test IEEE/ANSI |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 873 | \begin_float footnote |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 874 | \layout Standard |
| 875 | |
| 876 | Kit, Edward, Software Testing in the Real World: Improving the Process. |
| 877 | P. |
| 878 | 82. |
| 879 | ACM Press, 1995. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 880 | \end_float |
| 881 | : |
| 882 | \shape italic |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 883 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 884 | \newline |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 885 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 886 | \shape default |
| 887 | |
| 888 | \shape italic |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 889 | (i) |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 890 | \shape default |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 891 | An activity in which a system or component is executed under specified |
| 892 | conditions, the results are observed or record, and an evaluation is made |
| 893 | of some aspect of the system or component. |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 894 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 895 | \shape italic |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 896 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 897 | \newline |
| 898 | |
| 899 | \shape default |
| 900 | |
| 901 | \shape italic |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 902 | (ii) |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 903 | \shape default |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 904 | A set of one or more test cases. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 905 | |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 906 | \layout Description |
| 907 | |
| 908 | Test\SpecialChar ~ |
| 909 | Case A test assertion with a single result that is being verified. |
| 910 | This allows designations such as PASS or FAIL to be applied to a single |
| 911 | bit of functionality. |
| 912 | A single test case may be one of many test cases for testing the complete |
| 913 | functionality of a system. |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 914 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 915 | \newline |
| 916 | IEEE/ANSI: |
| 917 | \shape italic |
| 918 | |
| 919 | \newline |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 920 | (i) |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 921 | \shape default |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 922 | A set of test inputs, execution conditions, and expected results developed |
| 923 | for a particular objective. |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 924 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 925 | \shape italic |
| 926 | |
| 927 | \newline |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 928 | (ii) |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 929 | \shape default |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 930 | The smallest entity that is always executed as a unit, from beginning to |
| 931 | end. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 932 | |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 933 | \layout Description |
| 934 | |
| 935 | Test\SpecialChar ~ |
| 936 | Driver A program that handles the execution of test programs. |
| 937 | It is responsible for starting the test programs, capturing their output, |
| 938 | and recording their results. |
subrata_modak | 14390fd | 2009-05-19 09:39:11 +0000 | [diff] [blame] | 939 | Ltp-pan is an example of a test driver. |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 940 | \layout Description |
| 941 | |
| 942 | Test\SpecialChar ~ |
nstraz | 562c737 | 2000-10-10 21:57:51 +0000 | [diff] [blame] | 943 | Framework A mechanism for organizing a group of tests. |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 944 | Frameworks may have complex or very simple API's, drivers and result logging |
| 945 | mechanisms. |
| 946 | Examples of frameworks are TETware and DejaGnu. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 947 | |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 948 | \layout Description |
| 949 | |
| 950 | Test\SpecialChar ~ |
| 951 | Harness A Test harness is the mechanism that connects a test program |
| 952 | to a test framework. |
| 953 | It may be a specification of exit codes, or a set of libraries for formatting |
| 954 | messages and determining exit codes. |
| 955 | In TETware, the tet_result() API is the test harness. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 956 | |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 957 | \layout Description |
| 958 | |
| 959 | Test\SpecialChar ~ |
| 960 | Program A single invokable program. |
| 961 | A test program can contain one or more test cases. |
| 962 | The test harness's API allows for reporting/analysis of the individual |
| 963 | test cases. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 964 | |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 965 | \layout Description |
| 966 | |
| 967 | Test\SpecialChar ~ |
| 968 | Suite A collection of tests programs, assertions, cases grouped together |
| 969 | under a framework. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 970 | |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 971 | \layout Description |
| 972 | |
| 973 | Test\SpecialChar ~ |
| 974 | Tag An identifier that corresponds to a command line which runs a test. |
| 975 | The tag is a single word that matches a test program with a set of command |
| 976 | line arguments. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 977 | |
nstraz | 7638a53 | 2000-10-09 20:35:46 +0000 | [diff] [blame] | 978 | \the_end |