1.1 --- a/test.py Sun Jul 11 02:05:41 2010 +0200
1.2 +++ b/test.py Sat Aug 07 02:06:15 2010 +0200
1.3 @@ -1,6 +1,7 @@
1.4 #!/usr/bin/env python
1.5
1.6 import micropython.cmd
1.7 +import micropython.report
1.8 from micropython.graph import get_graph
1.9 import rsvp
1.10 import sys
1.11 @@ -55,6 +56,19 @@
1.12 print "Loading from", filename, "..."
1.13 m = i.load_from_file(filename)
1.14
1.15 + p.finalise()
1.16 +
1.17 + # Make a report.
1.18 +
1.19 + if "-d" in args:
1.20 + try:
1.21 + directory = args[args.index("-d") + 1]
1.22 + except IndexError:
1.23 + print "No directory specified. Not generating report."
1.24 + else:
1.25 + print "Generating report in", directory
1.26 + micropython.report.report(i, directory)
1.27 +
1.28 # Build the program.
1.29
1.30 if "-m" in args or "-t" in args: