Changeset 47
- Timestamp:
- Tue Sep 13 09:59:05 2005
- Files:
-
- trunk/buildtests/test6x.py (modified) (diff)
- trunk/buildtests/runtests.py (modified) (diff)
- trunk/buildtests/test1.spec (deleted)
- trunk/buildtests/test2.spec (deleted)
- trunk/buildtests/test3.spec (deleted)
- trunk/buildtests/test4.spec (deleted)
- trunk/buildtests/test5.spec (deleted)
- trunk/buildtests/test6.spec (deleted)
- trunk/buildtests/test7.spec (deleted)
- trunk/buildtests/test8.spec (deleted)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
trunk/buildtests/test6x.py
r43 r47 1 # Copyright (C) 2005, Giovanni Bajo 2 # Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. 3 # 4 # This program is free software; you can redistribute it and/or 5 # modify it under the terms of the GNU General Public License 6 # as published by the Free Software Foundation; either version 2 7 # of the License, or (at your option) any later version. 8 # 9 # This program is distributed in the hope that it will be useful, 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 # GNU General Public License for more details. 13 # 14 # You should have received a copy of the GNU General Public License 15 # along with this program; if not, write to the Free Software 16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA 17 x = 1 1 x = 2 … … -
trunk/buildtests/runtests.py
r43 r47 15 15 # along with this program; if not, write to the Free Software 16 16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA 17 18 # This program will execute any file with name test*<digit>.py. If your test 19 # need an aditional dependency name it test*<digit><letter>.py to be ignored 20 # by this program but be recognizable by any one as a dependency of that 21 # particual test. 22 17 23 import os, sys, glob, string 18 24 import shutil … … 46 52 print e 47 53 54 specfiles = glob.glob(os.path.join(here, 'test*.spec')) 55 for file in specfiles: 56 try: 57 os.remove(file) 58 except OSError, e: 59 print e 60 61 48 62 def runtests(): 49 specs = glob.glob(os.path.join(here, 'test*.spec')) 50 for spec in specs: 63 global here 64 sources = glob.glob(os.path.join(here, 'test*[0-9].py')) 65 for src in sources: 51 66 print 52 print " Running %s" % spec67 print "################## EXECUTING TEST %s ################################" % src 52 67 print 53 test = os.path.splitext(os.path.basename(spec))[0] 54 os.system('%s ../Build.py %s' % (PYTHON, spec)) 55 os.system('dist%s%s%s.exe' % (test, os.sep, test)) # specs have .exe hardcoded 68 os.system('%s ../Makespec.py %s' % (PYTHON, src)) 69 test = os.path.splitext(os.path.basename(src))[0] 70 os.system('%s ../Build.py %s' % (PYTHON, test+".spec")) 71 os.system('dist%s%s%s' % (test, os.sep, test)) 72 print "################## FINISHING TEST %s ################################" % src 56 73 57 74 if __name__ == '__main__':
