r4798 - in developers/charlie/Tests: . Espeak Python Python/env Python/optparse

charlie at docs.openmoko.org charlie at docs.openmoko.org
Tue Nov 18 13:13:02 CET 2008


Author: charlie
Date: 2008-11-18 13:13:02 +0100 (Tue, 18 Nov 2008)
New Revision: 4798

Added:
   developers/charlie/Tests/Espeak/
   developers/charlie/Tests/Espeak/right_of_kings.txt
   developers/charlie/Tests/Python/
   developers/charlie/Tests/Python/env/
   developers/charlie/Tests/Python/env/test.cfg
   developers/charlie/Tests/Python/env/test.py
   developers/charlie/Tests/Python/optparse/
   developers/charlie/Tests/Python/optparse/test.py
   developers/charlie/Tests/Python/test.py
Log:
Add some test scripts 


Added: developers/charlie/Tests/Espeak/right_of_kings.txt
===================================================================
--- developers/charlie/Tests/Espeak/right_of_kings.txt	                        (rev 0)
+++ developers/charlie/Tests/Espeak/right_of_kings.txt	2008-11-18 12:13:02 UTC (rev 4798)
@@ -0,0 +1,14 @@
+The only king by right divine
+Is Ellen King, and were she mine
+I'd strive for liberty no more,
+But hug the glorious chains I wore.
+
+Her bosom is an ivory throne,
+Where tyrant virtue reigns alone;
+No subject vice dare interfere,
+To check the power that governs here.
+
+O! would she deign to rule my fate,
+I'd worship Kings and kingly state,
+And hold this maxim all life long,
+The King — my King — can do no wrong.

Added: developers/charlie/Tests/Python/env/test.cfg
===================================================================
--- developers/charlie/Tests/Python/env/test.cfg	                        (rev 0)
+++ developers/charlie/Tests/Python/env/test.cfg	2008-11-18 12:13:02 UTC (rev 4798)
@@ -0,0 +1,2 @@
+
+CALLABLE_NUMBER=0123456789
\ No newline at end of file

Added: developers/charlie/Tests/Python/env/test.py
===================================================================
--- developers/charlie/Tests/Python/env/test.py	                        (rev 0)
+++ developers/charlie/Tests/Python/env/test.py	2008-11-18 12:13:02 UTC (rev 4798)
@@ -0,0 +1,5 @@
+#!/usr/bin/env python
+
+
+import subprocess
+subprocess.call(['source', './test.cfg'])

Added: developers/charlie/Tests/Python/optparse/test.py
===================================================================
--- developers/charlie/Tests/Python/optparse/test.py	                        (rev 0)
+++ developers/charlie/Tests/Python/optparse/test.py	2008-11-18 12:13:02 UTC (rev 4798)
@@ -0,0 +1,13 @@
+from optparse import OptionParser
+
+parser = OptionParser()
+
+parser.add_option("", "--backend", dest="backend",
+                  help="use BACKEND", metavar="BACKEND")
+parser.add_option("-e", "--experimental", action='store_true',
+                  dest="experimental", default=False,
+                  help="Use experimental plugins")
+
+(options, args) = parser.parse_args()
+
+print options

Added: developers/charlie/Tests/Python/test.py
===================================================================
--- developers/charlie/Tests/Python/test.py	                        (rev 0)
+++ developers/charlie/Tests/Python/test.py	2008-11-18 12:13:02 UTC (rev 4798)
@@ -0,0 +1,7 @@
+
+
+class T(object):
+    def pass(self):
+        print "hello"
+
+T().pass()




More information about the commitlog mailing list