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
10
http://www.apache.org/licenses/LICENSE-2.0
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
------------------------------------------------------------------------->
22
<title> Managing tests with DEFT </title>
25
<body bgcolor="White">
27
<h2 align="center"> Managing tests with DEFT </h2>
29
<h2> Test groups </h2>
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>
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 <name> <script_name> <arg1> <arg2> <argN>
44
test_group <name> <test_case or test_group> <test_case or test_group> ..
47
<p> Here's an example file: </p>
48
<pre>test_group http \
53
test_case syntest syntest.pl
54
test_case jtest1 jtest-example.pl</pre>
56
<h2> Tinderbox reporting & html test output </h2>
58
<h3> <font color="red"> Comming Soon </font> </h3>
60
<h2> What's next </h2>
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>