File tree 8 files changed +23
-39
lines changed
8 files changed +23
-39
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,6 @@ recursive-include notes *.txt *.rst *.md
3
3
recursive-include talks *.txt *.rst *.md *.pdf
4
4
recursive-include www *.txt *.rst *.md *.html
5
5
recursive-include pymodel *.txt *.rst *.md *.py
6
- recursive-include bin *.txt *.rst *.md *.bat clogdiff dotpdf dotps dotsvg pma pmg pmt pmv pymodel_paths tpath trun wsgirunner
6
+ recursive-include bin *.txt *.rst *.md *.bat clogdiff tdiff tclean dotpdf dotps dotsvg pma pmg pmt pmv pymodel_paths tpath trun wsgirunner
7
7
recursive-include samples *.txt *.rst *.md *.bat *.py *.ref *.svg *.pdf
8
8
Original file line number Diff line number Diff line change @@ -27,9 +27,15 @@ The commands are:
27
27
- * trun* : runs test scripts, including sample demonstrations. See
28
28
* test.txt* in the * notes* directory.
29
29
30
- - * clogdiff * : works with * trun* to execute and check
30
+ - * tdiff * : works with * trun* to execute and check
31
31
regression tests. See * test.txt* in the * notes* directory.
32
32
33
+ - * tclean* : remove files created by running test scripts. See
34
+ * test.txt* in the * notes* directory.
35
+
36
+ - * clogdiff* : same as * tdiff* , used in versions before 1.0,
37
+ deprecated, retained for backward compatibility
38
+
33
39
- * wsgirunner* : runs WSGI-compliant web applications on * localhost* ,
34
40
such as * webapp* in the * WebApplication* sample, or * wsgidemo* here.
35
41
Original file line number Diff line number Diff line change
1
+ # remove files created by running pymodel test scripts
2
+ rm *FSM.py *FSM?.py *.dot *.svg *.pyc *.log
Original file line number Diff line number Diff line change
1
+ rem remove files created by running pymodel test scripts
2
+ rm *FSM.py *FSM?.py *.dot *.svg *.pyc *.log
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ $1 $2 >& $2 .log
3
+ diff -b $2 .log $2 .ref
Original file line number Diff line number Diff line change
1
+ @ echo off
2
+ rem Run command %1 with arg %2, save output in log, compare to reference log
3
+ %1 %2 > %2 .log
4
+ fc %2 .log %2 .ref
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
+ """
3
+ This is trun command in bin directory, runs trun.py module in pymodel directory
4
+ """
2
5
3
- import sys
4
- import os
5
-
6
- # argv[1] is name of module containing test cases
7
- # dir containing this module must be on PYTHONPATH
8
-
9
- test = __import__ (sys .argv [1 ])
10
-
11
- # Test cases are in 'cases', a list of pairs of strings, descrip. and commmand:
12
- # cases = [
13
- # ('Test PowerOn, PowerOff alternate due to enabling conditions',
14
- # 'pct.py -n 10 PowerSwitch'),
15
- # ... ]
16
-
17
- for (description , cmd ) in test .cases :
18
- print description
19
- os .system (cmd )
20
- print
6
+ import trun # find and execute trun.py anywhere on Python path
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments