forked from jon-jacky/PyModel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_viewer.py
More file actions
22 lines (17 loc) · 796 Bytes
/
test_viewer.py
File metadata and controls
22 lines (17 loc) · 796 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
"""
Like test_graphics, except just uses one pvm command
instead of three: pma, pmg, dot.
Output files have the same names and should have the same contents as
in test_graphics output files saved in fsmpy/ and svg/
"""
cases = [
('Generate FSM from PowerSwitch model program',
'pmv -T svg PowerSwitch'),
('Generate graphics from SpeedControl (already an FSM)',
'pmv SpeedControl -o SpeedControl'), # -T svg is the default
# -o for SpeedControl.svg not ...FSM.svg
('Generate FSM from composition of PowerSwitch and SpeedControl, show interleaving',
'pmv -T svg SpeedControl PowerSwitch -o PowerSpeed'),
# Now you can display PowerSwitchFSM.svg, SpeedControl.svg and PowerSpeed.svg
# in three browser tabs
]