/[ascend]/trunk/models/johnpye/fprops/test.py
ViewVC logotype

Diff of /trunk/models/johnpye/fprops/test.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2663 by jpye, Fri Jan 18 00:34:51 2013 UTC revision 2664 by jpye, Fri Jan 18 06:02:15 2013 UTC
# Line 7  except: Line 7  except:
7      print "Run './test.py speciesname' or ./test.py testname' to run test code."      print "Run './test.py speciesname' or ./test.py testname' to run test code."
8      exit(1)      exit(1)
9    
10  dirn = 'test'  dirn = 'fluids'
11  src = "%s/%s.c"%(dirn,name)  src = "%s/%s.c" %(dirn,name)
12  if not os.path.exists(src):  if not os.path.exists(src):
13      dirn = 'fluids'      print "No file named '%s.c' found in '%s' directory" % (name,dirn)
14      src = "%s/%s.c" %(dirn,name)      exit(1)
     if not os.path.exists(src):  
         print "No file named '%s.c' found in 'test' or 'fluids' directory" % name  
         exit(1)  
15    
16  CC = "gcc"  CC = "gcc"
17  if os.environ.get('HOST_PREFIX'):  if os.environ.get('HOST_PREFIX'):

Legend:
Removed from v.2663  
changed lines
  Added in v.2664

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22