| 1 |
50 |
tbourke |
$Id$
|
| 2 |
|
|
|
| 3 |
|
|
Test format
|
| 4 |
|
|
-----------
|
| 5 |
|
|
Each test file is an Uppaal model containing a single template named
|
| 6 |
|
|
`Template' (the default for a new model). The global declarations should
|
| 7 |
|
|
begin with a comment of the form:
|
| 8 |
|
|
/*
|
| 9 |
|
|
description: <free form description, may cover multiple lines.>
|
| 10 |
|
|
|
| 11 |
52 |
tbourke |
error: <a non-zero error code if urpal is expected to fail>
|
| 12 |
50 |
tbourke |
stderr: <expected messages on stderr>
|
| 13 |
|
|
|
| 14 |
52 |
tbourke |
testname: <an alternative name for the test template (useful
|
| 15 |
|
|
for instantiating it with constants.)>
|
| 16 |
51 |
tbourke |
system: <an optional replacement system declaration>
|
| 17 |
|
|
|
| 18 |
52 |
tbourke |
uppaalerror: <a non-zero error code if uppaal is expected to fail>
|
| 19 |
|
|
|
| 20 |
50 |
tbourke |
layout: <a value for the graphviz/engine setting>
|
| 21 |
|
|
scale: <a floating point scaling factor>
|
| 22 |
|
|
tabulate: <yes|no>
|
| 23 |
|
|
|
| 24 |
|
|
author: <author name>
|
| 25 |
|
|
created: <creation date: yyyymmdd>
|
| 26 |
|
|
*/
|
| 27 |
|
|
|
| 28 |
|
|
All fields are optional. Blank lines are ignored.
|
| 29 |
|
|
Fields may cover multiple lines but should not contain any of the field
|
| 30 |
|
|
tags, i.e. the names above including colons.
|
| 31 |
|
|
The closing comment brace `*/` must appear on a line by itself.
|
| 32 |
|
|
|
| 33 |
|
|
Testing Procedure
|
| 34 |
|
|
-----------------
|
| 35 |
|
|
1. The test file is processed by urpal to create a new template: `Test'.
|
| 36 |
|
|
The layout fields are respected.
|
| 37 |
|
|
2. The return code and stderr text are compared with the values given.
|
| 38 |
|
|
3. The system string is set to: system Template, Test;
|
| 39 |
|
|
4. Uppaal attempts to verify the model against: A[] (not Test.Err)
|
| 40 |
|
|
|