CPPex3.gms : Test object oriented C++ API examples

Description

Contributor: Alexander Fust, July 2017


Small Model of Type : C and CPP


Category : GAMS API library


Main file : CPPex3.gms

$tItLE 'Runs C++ API examples (except for the expert level examples)' (CPPEX3,SEQ=56)


$ontext
Contributor: Alexander Fust, July 2017
$offtext

$set VARS
$if set COMPILER $if %COMPILER% == GNU $set VARS CC=gcc CXX=g++

* build all examples
$call %VARS% cmake "%gams.sysdir%apifiles%system.dirsep%C++"
$if errorlevel 1 $abort 'Problem prepering cmake build'

$ifthen %system.buildcode% == VS8 $call msbuild.exe examples.sln
$elseif %system.buildcode% == WEI $call msbuild.exe examples.sln
$else $call make
$endif
$if errorlevel 1 $abort 'Problem compiling C++ API examples'

* execute examples
$call .%system.dirsep%transport1%system.dirsep%transport1
$if errorlevel 1 $abort 'Problem running example transport1'

$call .%system.dirsep%transport2%system.dirsep%transport2
$if errorlevel 1 $abort 'Problem running example transport2'

$call .%system.dirsep%transport3%system.dirsep%transport3
$if errorlevel 1 $abort 'Problem running example transport3'

$call .%system.dirsep%transport4%system.dirsep%transport4
$if errorlevel 1 $abort 'Problem running example transport4'

$call .%system.dirsep%transport5%system.dirsep%transport5
$if errorlevel 1 $abort 'Problem running example transport5'

$call .%system.dirsep%transport6%system.dirsep%transport6
$if errorlevel 1 $abort 'Problem running example transport6'

$call .%system.dirsep%transport7%system.dirsep%transport7
$if errorlevel 1 $abort 'Problem running example transport7'

$call .%system.dirsep%transport8%system.dirsep%transport8
$if errorlevel 1 $abort 'Problem running example transport8'

$call .%system.dirsep%transport9%system.dirsep%transport9
$if errorlevel 1 $abort 'Problem running example transport9'

$call .%system.dirsep%transport10%system.dirsep%transport10
$if errorlevel 1 $abort 'Problem running example transport10'

$call .%system.dirsep%transport11%system.dirsep%transport11
$if errorlevel 1 $abort 'Problem running example transport11'

$call .%system.dirsep%transport12%system.dirsep%transport12
$if errorlevel 1 $abort 'Problem running example transport12'

$call .%system.dirsep%transport13%system.dirsep%transport13
$if errorlevel 1 $abort 'Problem running example transport13'

$call .%system.dirsep%transport14%system.dirsep%transport14
$if errorlevel 1 $abort 'Problem running example transport14'

$call .%system.dirsep%domainchecking%system.dirsep%domainchecking
$if errorlevel 1 $abort 'Problem running example domainchecking'

$if not set demosize $call .%system.dirsep%warehouse%system.dirsep%warehouse
$if not set demosize $if errorlevel 1 $abort 'Problem running example warehouse'