model2tex1.gms : Test that model2tex produces a tex file

Description

Contributer: Clemens Westphal


Small Model of Type : GAMS


Category : GAMS Test library


Main file : model2tex1.gms

$title Test that model2tex produces a tex file (MODEL2TEX1,SEQ=678)
* Contributer: Clemens Westphal


$call gamslib -q trnsport
$if errorlevel 1 $abort could not retrieve trnsport
$call rm -f transport.tex

$call gams trnsport lo=%gams.lo% docFile=transport
$if errorlevel 1 $abort could not compile trnsport

$set macOrLinux 0
$if %system.buildcode% == DEG $set macOrLinux 1
$if %system.buildcode% == LEG $set macOrLinux 1

$ifThen %macOrLinux% == 1
$  call model2tex.sh transport > %system.nullfile%
$  if errorlevel 1 $abort could not run model2tex.sh
$  if not exist transport.tex $abort no TeX file produced
$elseIf not %system.filesys% == UNIX
$  call model2tex transport > %system.nullfile%
$  if errorlevel 1 $abort could not run model2tex
$  if not exist transport.tex $abort no TeX file produced
$endIf