libdepend.gms : check location and version of library dependencies

Description

Checks whether GAMS system libraries depend only on white-listed libraries
outside the GAMS system.
Checks whether GAMS system libraries depend only on white-listed versions
of GLIBC & co.

Contributor: Stefan Vigerske, April 2014

  run only on systems where we build for distribution and the test has been implemented
     somehow, %sysenv.HOSTNAME% does not expand on Solaris systems...


Small Model of Type : GAMS


Category : GAMS Test library


Main file : libdepend.gms

$title check location and version of library dependencies (LIBDEPEND,SEQ=652)

$ontext
Checks whether GAMS system libraries depend only on white-listed libraries
outside the GAMS system.
Checks whether GAMS system libraries depend only on white-listed versions
of GLIBC & co.

Contributor: Stefan Vigerske, April 2014
$offtext

* run only on systems where we build for distribution and the test has been implemented
*    somehow, %sysenv.HOSTNAME% does not expand on Solaris systems...
$ifi %sysenv.HOSTNAME% == anton.gams.com $if %system.buildcode% == LEG $goto continue
$ifi %system.buildcode% == DEG $goto continue
$ifi %system.buildcode% == SIG $goto continue
$ifi %system.buildcode% == SOX $goto continue
$ifi %system.buildcode% == AIX $goto continue
$exit

$label continue

$call chmod +x ./libdepend.sh
$call ./libdepend.sh %gams.sysdir% %system.buildcode%

$if errorlevel 1 $abort 'error in libdepend test, check stderr.txt'