[Test] Skip tests which require ctml_writer when python_package=none
This commit is contained in:
parent
72515dcc99
commit
3541a8d0bb
4 changed files with 16 additions and 9 deletions
|
|
@ -8,9 +8,13 @@ localenv.Append(CCFLAGS=env['warning_flags'])
|
||||||
if localenv['python_package'] in ('full', 'minimal'):
|
if localenv['python_package'] in ('full', 'minimal'):
|
||||||
localenv['ENV']['PYTHONPATH'] = pjoin(os.getcwd(), '..', 'build', 'python2')
|
localenv['ENV']['PYTHONPATH'] = pjoin(os.getcwd(), '..', 'build', 'python2')
|
||||||
localenv['ENV']['PYTHON_CMD'] = localenv.subst('$python_cmd')
|
localenv['ENV']['PYTHON_CMD'] = localenv.subst('$python_cmd')
|
||||||
|
haveConverters = True
|
||||||
elif localenv['python3_package'] == 'y':
|
elif localenv['python3_package'] == 'y':
|
||||||
localenv['ENV']['PYTHONPATH'] = pjoin(os.getcwd(), '..', 'build', 'python3')
|
localenv['ENV']['PYTHONPATH'] = pjoin(os.getcwd(), '..', 'build', 'python3')
|
||||||
localenv['ENV']['PYTHON_CMD'] = localenv.subst('$python3_cmd')
|
localenv['ENV']['PYTHON_CMD'] = localenv.subst('$python3_cmd')
|
||||||
|
haveConverters = True
|
||||||
|
else:
|
||||||
|
haveConverters = False
|
||||||
|
|
||||||
localenv['ENV']['CANTERA_DATA'] = pjoin(os.getcwd(), '..', 'build', 'data')
|
localenv['ENV']['CANTERA_DATA'] = pjoin(os.getcwd(), '..', 'build', 'data')
|
||||||
|
|
||||||
|
|
@ -250,8 +254,9 @@ diamond = localenv.Program('diamondSurf/runDiamond',
|
||||||
diamond_name = diamond[0].name
|
diamond_name = diamond[0].name
|
||||||
Test('diamondSurf-xml', 'diamondSurf', diamond, 'runDiamond_blessed.out',
|
Test('diamondSurf-xml', 'diamondSurf', diamond, 'runDiamond_blessed.out',
|
||||||
options='diamond_blessed.xml', artifacts=diamond_name)
|
options='diamond_blessed.xml', artifacts=diamond_name)
|
||||||
Test('diamondSurf-cti', 'diamondSurf', diamond, 'runDiamond_blessed.out',
|
if haveConverters:
|
||||||
options='diamond.cti', artifacts=diamond_name)
|
Test('diamondSurf-cti', 'diamondSurf', diamond, 'runDiamond_blessed.out',
|
||||||
|
options='diamond.cti', artifacts=diamond_name)
|
||||||
CompileAndTest('dustyGasTransport', 'dustyGasTransport', 'dustyGasTransport',
|
CompileAndTest('dustyGasTransport', 'dustyGasTransport', 'dustyGasTransport',
|
||||||
'output_blessed.txt')
|
'output_blessed.txt')
|
||||||
CompileAndTest('fracCoeff', 'fracCoeff', 'fracCoeff', 'frac_blessed.out')
|
CompileAndTest('fracCoeff', 'fracCoeff', 'fracCoeff', 'frac_blessed.out')
|
||||||
|
|
@ -267,14 +272,16 @@ negA = localenv.Program('negATest/negATest',
|
||||||
negA_name = negA[0].name
|
negA_name = negA[0].name
|
||||||
Test('negA-xml', 'negATest', negA, 'negATest_blessed.out',
|
Test('negA-xml', 'negATest', negA, 'negATest_blessed.out',
|
||||||
options='noxNeg_blessed.xml', artifacts=negA_name)
|
options='noxNeg_blessed.xml', artifacts=negA_name)
|
||||||
Test('negA-cti', 'negATest', negA, 'negATest_blessed.out',
|
if haveConverters:
|
||||||
options='noxNeg.cti', artifacts=negA_name)
|
Test('negA-cti', 'negATest', negA, 'negATest_blessed.out',
|
||||||
|
options='noxNeg.cti', artifacts=negA_name)
|
||||||
|
|
||||||
CompileAndTest('pecosTransport', 'PecosTransport', 'pecosTransport', 'output_blessed.txt')
|
CompileAndTest('pecosTransport', 'PecosTransport', 'pecosTransport', 'output_blessed.txt')
|
||||||
CompileAndTest('printUtil', 'printUtilUnitTest', 'pUtest', 'output_blessed.txt')
|
CompileAndTest('printUtil', 'printUtilUnitTest', 'pUtest', 'output_blessed.txt')
|
||||||
CompileAndTest('pureFluid', 'pureFluidTest', 'testPureWater', 'output_blessed.txt')
|
CompileAndTest('pureFluid', 'pureFluidTest', 'testPureWater', 'output_blessed.txt')
|
||||||
CompileAndTest('rankine_democxx', 'rankine_democxx', 'rankine', 'output_blessed.txt',
|
if haveConverters:
|
||||||
artifacts=['liquidvapor.xml'])
|
CompileAndTest('rankine_democxx', 'rankine_democxx', 'rankine', 'output_blessed.txt',
|
||||||
|
artifacts=['liquidvapor.xml'])
|
||||||
CompileAndTest('silane_equil', 'silane_equil', 'silane_equi', 'output_blessed.txt')
|
CompileAndTest('silane_equil', 'silane_equil', 'silane_equi', 'output_blessed.txt')
|
||||||
# spectroscopy is incomplete
|
# spectroscopy is incomplete
|
||||||
CompileAndTest('simpleTransport', 'simpleTransport', 'simpleTransport',
|
CompileAndTest('simpleTransport', 'simpleTransport', 'simpleTransport',
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,7 @@ int rxnpath_example1(int job)
|
||||||
|
|
||||||
// create an ideal gas mixture that corresponds to GRI-Mech
|
// create an ideal gas mixture that corresponds to GRI-Mech
|
||||||
// 3.0
|
// 3.0
|
||||||
IdealGasMix gas("gri30.cti", "gri30");
|
IdealGasMix gas("gri30.xml", "gri30");
|
||||||
gas.setState_TPX(1001.0, OneAtm, "H2:2.0, O2:1.0, N2:4.0");
|
gas.setState_TPX(1001.0, OneAtm, "H2:2.0, O2:1.0, N2:4.0");
|
||||||
|
|
||||||
// create a reactor
|
// create a reactor
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ int transport_example1(int job)
|
||||||
|
|
||||||
// create a gas mixture, and set its state
|
// create a gas mixture, and set its state
|
||||||
|
|
||||||
IdealGasMix gas("gri30.cti", "gri30");
|
IdealGasMix gas("gri30.xml", "gri30");
|
||||||
doublereal temp = 500.0;
|
doublereal temp = 500.0;
|
||||||
doublereal pres = 2.0*OneAtm;
|
doublereal pres = 2.0*OneAtm;
|
||||||
gas.setState_TPX(temp, pres, "H2:1.0, CH4:0.1");
|
gas.setState_TPX(temp, pres, "H2:1.0, CH4:0.1");
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ int transport_example2(int job)
|
||||||
|
|
||||||
// create a gas mixture, and set its state
|
// create a gas mixture, and set its state
|
||||||
|
|
||||||
IdealGasMix gas("gri30.cti", "gri30");
|
IdealGasMix gas("gri30.xml", "gri30");
|
||||||
doublereal temp = 2000.0;
|
doublereal temp = 2000.0;
|
||||||
doublereal pres = 2.0*OneAtm;
|
doublereal pres = 2.0*OneAtm;
|
||||||
gas.setState_TPX(temp, pres, "H2:1.0, O2:0.5, CH4:0.1, N2:0.2");
|
gas.setState_TPX(temp, pres, "H2:1.0, O2:0.5, CH4:0.1, N2:0.2");
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue