Adding a windows testing capability.

This commit is contained in:
Harry Moffat 2009-07-15 21:56:11 +00:00
parent 69ec1d7054
commit a65d3ca8e3
12 changed files with 261 additions and 0 deletions

View file

@ -0,0 +1,33 @@
#!/bin/sh
PY_DEMO_DIRS = equilibrium flames gasdynamics kinetics liquid_vapor \
misc reactors surface_chemistry transport fuel_cells
MAKE = make
all:
@(for d in $(PY_DEMO_DIRS) ; do \
echo "entering directory $${d}..."; \
(cd $${d}; $(MAKE)) ; \
done)
run:
@(for d in $(PY_DEMO_DIRS) ; do \
echo "entering directory $${d}..."; \
(cd $${d}; $(MAKE) run) ; \
done)
test:
@(for d in $(PY_DEMO_DIRS) ; do \
echo "entering directory $${d}..."; \
(cd $${d}; $(MAKE) test) ; \
done)
clean:
@(for dd in $(PY_DEMO_DIRS) ; do \
echo "entering directory $${dd}..."; \
(cd $${dd}; $(MAKE) -i clean; cd ..) ; \
done)
# end of file

View file

@ -0,0 +1,36 @@
#!/bin/sh
INST_DIR=@ct_demodir@/python/equilibrium
PY_DEMOS = simple_test stoich_flame adiabatic_flame multiphase_plasma
MAKE = make
all:
$(MAKE) run
run:
@(for py in $(PY_DEMOS) ; do \
echo "running $${py}..."; \
cd "$${py}"; \
$(MAKE) run ; \
cd .. ; \
done)
test:
@(for py in $(PY_DEMOS) ; do \
echo "testing $${py} test"; \
cd "$${py}"; \
$(MAKE) test ; \
cd .. ; \
done)
clean:
@(for py in $(PY_DEMOS) ; do \
cd "$${py}"; \
$(MAKE) clean ; \
cd .. ; \
done)
# end of file

View file

@ -0,0 +1,18 @@
#!/bin/sh
INST_DIR=@ct_demodir@/python/equilibrium/adiabatic_flame
run:
$(PYTHON_CMD) adiabatic.py
test:
./runtest
clean:
rm -f *.log *.csv *.xml
./cleanup
# end of file

View file

@ -0,0 +1,14 @@
#!/bin/sh
run:
$(PYTHON_CMD) multiphase_plasma.py
test:
./runtest
clean:
./cleanup
# end of file

View file

@ -0,0 +1,18 @@
#!/bin/sh
all:
run:
$(PYTHON_CMD) simple.py
test:
./runtest
clean:
rm -f *.log *.csv *.xml
./cleanup
# end of file

View file

@ -0,0 +1,17 @@
#!/bin/sh
run:
$(PYTHON_CMD) stoich.py
test:
./runtest
clean:
rm -f *.log *.csv *.xml
./cleanup
# end of file

View file

@ -0,0 +1,16 @@
#!/bin/sh
run:
$(PYTHON_CMD) sofc.py
test:
./runtest
clean:
rm -f *.log *.csv *.xml
./cleanup
# end of file

View file

@ -0,0 +1,33 @@
#!/bin/sh
PY_DEMOS = isentropic soundSpeed
all:
@(for py in $(PY_DEMOS) ; do \
(cd $${py} ; make ) \
done)
run:
@(for py in $(PY_DEMOS) ; do \
echo "running $${py}..."; \
(cd $${py} ; make run ) \
done)
test:
@(for py in $(PY_DEMOS) ; do \
echo "testing $${py}..."; \
(cd $${py} ; make test ) \
done)
clean:
@(for py in $(PY_DEMOS) ; do \
echo "cleaning $${py}..."; \
(cd $${py} ; make clean ) \
done)
# end of file

View file

@ -0,0 +1,14 @@
#!/bin/sh
run:
$(PYTHON_CMD) soundSpeed.py
test:
./runtest
clean:
./cleanup
# end of file

View file

@ -0,0 +1,14 @@
#!/bin/sh
run:
$(PYTHON_CMD) sofc.py
test:
./runtest
clean:
rm -f *.log *.csv *.xml
./cleanup
# end of file

View file

@ -0,0 +1,33 @@
#!/bin/sh
PY_DEMOS = critProperties rankine
all:
@(for py in $(PY_DEMOS) ; do \
(cd $${py} ; make ) \
done)
run:
@(for py in $(PY_DEMOS) ; do \
echo "running $${py}..."; \
(cd $${py} ; make run ) \
done)
test:
@(for py in $(PY_DEMOS) ; do \
echo "testing $${py}..."; \
(cd $${py} ; make test) \
done)
clean:
@(for py in $(PY_DEMOS) ; do \
echo "cleaning $${py}..."; \
(cd $${py} ; make clean) \
done)
# end of file

View file

@ -0,0 +1,15 @@
#!/bin/sh
run:
$(PYTHON_CMD) rankine.py
test:
./runtest
clean:
./cleanup
# end of file