~ps10gel/ubuntu/xenial/trafficserver/6.2.0

« back to all changes in this revision

Viewing changes to test/deft/docs/managing_tests.html

  • Committer: Bazaar Package Importer
  • Author(s): Arno Toell
  • Date: 2011-01-13 11:49:18 UTC
  • Revision ID: james.westby@ubuntu.com-20110113114918-vu422h8dknrgkj15
Tags: upstream-2.1.5-unstable
ImportĀ upstreamĀ versionĀ 2.1.5-unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!-------------------------------------------------------------------------
 
2
  Licensed to the Apache Software Foundation (ASF) under one
 
3
  or more contributor license agreements.  See the NOTICE file
 
4
  distributed with this work for additional information
 
5
  regarding copyright ownership.  The ASF licenses this file
 
6
  to you under the Apache License, Version 2.0 (the
 
7
  "License"); you may not use this file except in compliance
 
8
  with the License.  You may obtain a copy of the License at
 
9
 
 
10
      http://www.apache.org/licenses/LICENSE-2.0
 
11
 
 
12
  Unless required by applicable law or agreed to in writing, software
 
13
  distributed under the License is distributed on an "AS IS" BASIS,
 
14
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
15
  See the License for the specific language governing permissions and
 
16
  limitations under the License.
 
17
  ------------------------------------------------------------------------->
 
18
<!--  -->
 
19
<html>
 
20
 
 
21
<head>
 
22
<title> Managing tests with DEFT </title>
 
23
</head>
 
24
 
 
25
<body bgcolor="White">
 
26
 
 
27
<h2 align="center">  Managing tests with DEFT </h2>
 
28
 
 
29
<h2> Test groups </h2>
 
30
 
 
31
<p> DEFT support test groups to make running a set of tests easy.  To
 
32
run a test group, use the <b>-g</b> command line option.  For example,
 
33
to run the 'http' test group: </p>
 
34
<pre>  ./run_test.pl sun_dbg -g http </pre>
 
35
<p> By the default, the test groups are read from the
 
36
<b>defs/test_groups.deft</b> file.  An alternate file can be specified
 
37
with the <b>-G</b> command line option.</p>
 
38
 
 
39
<p> The format of <i>test_groups.deft</i> is simple.  It's parsed on a
 
40
line by line basis with lines ending in '\' treated as continuation
 
41
lines.  Two directives exists: <b>test_case</b> and <b>
 
42
test_group</b>. Syntax for the lines are:</p>
 
43
<pre>  test_case &lt;name> &lt;script_name> &lt;arg1> &lt;arg2> &lt;argN>
 
44
  test_group &lt;name> &lt;test_case or test_group> &lt;test_case or  test_group&gt; ..
 
45
</pre>
 
46
 
 
47
<p> Here's an example file: </p>
 
48
<pre>test_group http    \
 
49
        jtest1 \
 
50
        syntest
 
51
 
 
52
 
 
53
test_case  syntest    syntest.pl
 
54
test_case  jtest1     jtest-example.pl</pre>
 
55
 
 
56
<h2> Tinderbox reporting & html test output </h2>
 
57
 
 
58
<h3> <font color="red"> Comming Soon </font> </h3>
 
59
 
 
60
<h2> What's next </h2>
 
61
 
 
62
<p> The next step is learning how to add new testing tools to the testing 
 
63
framework.  Read  <a href="adding_tools.html">  
 
64
Adding Test Tools </a> to learn how. </p>
 
65
 
 
66
<p><font size="-1">
 
67
    
 
68
    All rights Reserved.
 
69
</font></p>
 
70
 
 
71
</body>
 
72
</html>
 
73
 
 
74
</body>
 
75
</html>