$title 'run tests for different solvelink values' (slx01,SEQ=711) $onText Many test models exist to test how CMEX behaves, but the code tested may depend on the solvelink value used. This model runs such tests over a range of solvelink values, but only those where a simple solve statement (vs. something without handleCollect, etc) is needed. Contributor: Steve Dirkse, Dec 2016 $offText SETS m 'models to test' / mcp06 mcp11 / v 'solvelink values to test' / %solveLink.chainScript% 'solveLink.chainScript' %solveLink.callScript% 'solveLink.callScript' %solveLink.callModule% 'solveLink.callModule' %solveLink.loadLibrary% 'solveLink.loadLibrary' / tried(m,v) 'tests attempted' failed(m,v) 'tests failed' ; file exec 'command to execute'; scalar rc; loop{m, put_utility exec 'shell' / 'rm -f ' m.tl:0 '.gms'; put_utility exec 'shell' / 'testlib -q ' m.tl:0; loop{v, put_utility exec 'shell' / 'gams ' m.tl:0 ' lo=%gams.lo% SL=' v.tl:0; rc = errorlevel; tried(m,v) = yes; failed(m,v) = [rc <> 0]; }; }; abort$[card(failed)] 'Some tests failed', failed, tried;