Adding a windows testing capability.
This commit is contained in:
parent
69ec1d7054
commit
a65d3ca8e3
12 changed files with 261 additions and 0 deletions
33
Cantera/python/examples/Makefile.win
Normal file
33
Cantera/python/examples/Makefile.win
Normal 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
|
||||
|
||||
|
||||
36
Cantera/python/examples/equilibrium/Makefile.win
Normal file
36
Cantera/python/examples/equilibrium/Makefile.win
Normal 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
|
||||
|
||||
|
|
@ -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
|
||||
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
run:
|
||||
$(PYTHON_CMD) multiphase_plasma.py
|
||||
|
||||
test:
|
||||
./runtest
|
||||
|
||||
|
||||
clean:
|
||||
./cleanup
|
||||
|
||||
# end of file
|
||||
|
||||
18
Cantera/python/examples/equilibrium/simple_test/Makefile.win
Normal file
18
Cantera/python/examples/equilibrium/simple_test/Makefile.win
Normal 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
|
||||
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
|
||||
|
||||
run:
|
||||
$(PYTHON_CMD) stoich.py
|
||||
|
||||
test:
|
||||
./runtest
|
||||
|
||||
|
||||
clean:
|
||||
rm -f *.log *.csv *.xml
|
||||
./cleanup
|
||||
|
||||
# end of file
|
||||
|
||||
16
Cantera/python/examples/fuel_cells/Makefile.win
Normal file
16
Cantera/python/examples/fuel_cells/Makefile.win
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
|
||||
|
||||
run:
|
||||
$(PYTHON_CMD) sofc.py
|
||||
|
||||
test:
|
||||
./runtest
|
||||
|
||||
|
||||
clean:
|
||||
rm -f *.log *.csv *.xml
|
||||
./cleanup
|
||||
|
||||
# end of file
|
||||
|
||||
33
Cantera/python/examples/gasdynamics/Makefile.win
Normal file
33
Cantera/python/examples/gasdynamics/Makefile.win
Normal 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
|
||||
|
||||
14
Cantera/python/examples/gasdynamics/soundSpeed/Makefile.win
Normal file
14
Cantera/python/examples/gasdynamics/soundSpeed/Makefile.win
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
|
||||
run:
|
||||
$(PYTHON_CMD) soundSpeed.py
|
||||
|
||||
test:
|
||||
./runtest
|
||||
|
||||
clean:
|
||||
./cleanup
|
||||
|
||||
# end of file
|
||||
|
||||
14
Cantera/python/examples/kinetics/Makefile.win
Normal file
14
Cantera/python/examples/kinetics/Makefile.win
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
run:
|
||||
$(PYTHON_CMD) sofc.py
|
||||
|
||||
test:
|
||||
./runtest
|
||||
|
||||
clean:
|
||||
rm -f *.log *.csv *.xml
|
||||
./cleanup
|
||||
|
||||
# end of file
|
||||
|
||||
33
Cantera/python/examples/liquid_vapor/Makefile.win
Normal file
33
Cantera/python/examples/liquid_vapor/Makefile.win
Normal 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
|
||||
|
||||
15
Cantera/python/examples/liquid_vapor/rankine/Makefile.win
Normal file
15
Cantera/python/examples/liquid_vapor/rankine/Makefile.win
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
|
||||
run:
|
||||
$(PYTHON_CMD) rankine.py
|
||||
|
||||
test:
|
||||
./runtest
|
||||
|
||||
|
||||
clean:
|
||||
./cleanup
|
||||
|
||||
# end of file
|
||||
|
||||
Loading…
Add table
Reference in a new issue