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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2114 - (show annotations) (download) (as text)
Tue Dec 8 08:08:00 2009 UTC (10 years, 7 months ago) by jpye
File MIME type: text/x-python
File size: 534 byte(s)
Starting some more work on saturation curves.
1 #!/usr/bin/env python
2 import subprocess, sys, os.path
3
4 try:
5 species = sys.argv[1]
6 except:
7 print "Run './test.py speciesname' to run its embedded test suite"
8 exit(1)
9
10 src = '%s.c'%species
11 if not os.path.exists(src):
12 print "No file named '%s' found in current directory" % src
13 exit(1)
14
15 s = 'gcc -g ideal.c helmholtz.c sat.c test.c %s.c -DTEST -o %s -lm' % (species,species)
16
17 print s
18 p = subprocess.Popen(s.split(' '))
19
20 p.wait()
21
22 if not p.returncode:
23 s = './%s' % species
24 print s
25 p = subprocess.Popen(s.split(' '))
26 p.wait()
27
28
29

Properties

Name Value
svn:executable *

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