gzip01.gms : Test gzipped input files

Description

Contributor: Paul van der Eijk


Small Model of Type : GAMS


Category : GAMS Test library


Main file : gzip01.gms

$title Test gzipped input files (GZIP01,SEQ=536)

$onText
Contributor: Paul van der Eijk
$offText


$onEchoV > difftest.gms
$call gamslib -q %1
$call gzip -c %1.gms > %1.gms.gz
$call gams %1.gms    a=c dumpopt=11 lo=%gams.lo%
$call gams %1.gms.gz a=c dumpopt=11 lo=%gams.lo%
$call sed "1,7 d" < %1.dmp     > %1_f1.dmp
$call sed "1,7 d" < %1.gms.dmp > %1_f2.dmp
$call diff -bw %1_f1.dmp %1_f2.dmp
$if errorlevel 1 $abort Dump files of model %1 differ
$call rm -f %1*.*
$offEcho

$batInclude difftest indus89
$batInclude difftest circle
$batInclude difftest alan
$batInclude difftest hansmcp

$call rm -f difftest.gms