Revision: 132
Author: roman_yakovenko
Date: 2006-05-17 13:43:03 -0700 (Wed, 17 May 2006)
ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=132&view=rev
Log Message:
-----------
Added Paths:
-----------
pyplusplus_dev/examples/pyboost_dev/unittestst/test_all.py
Added: pyplusplus_dev/examples/pyboost_dev/unittestst/test_all.py
===================================================================
--- pyplusplus_dev/examples/pyboost_dev/unittestst/test_all.py (rev 0)
+++ pyplusplus_dev/examples/pyboost_dev/unittestst/test_all.py 2006-05-17 20:43:03 UTC (rev 132)
@@ -0,0 +1,31 @@
+#! /usr/bin/python
+# Copyright 2004 Roman Yakovenko.
+# Distributed under the Boost Software License, Version 1.0. (See
+# accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+
+import os
+import sys
+
+sys.path.append( '..' )
+
+def run_it( dir_name ):
+ pwd = os.getcwd()
+ os.chdir( dir_name )
+ command_line = sys.executable + ' ' + 'test_all.py'
+ input_, output = os.popen4( command_line )
+ input_.close()
+ while True:
+ data = output.readline()
+ print data,
+ if not data:
+ break
+ exit_status = output.close()
+ if exit_status:
+ print 'Error! %s did not passed the tests.' % dir_name
+ os.chdir( pwd )
+
+run_it( 'crc' )
+run_it( 'rational' )
+run_it( 'date_time' )
+run_it( 'boost_random' )
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|