Debian Codegraph @

debian/tests/all

raw
1 #!/bin/sh
2 # autopkgtest check: Build and run a programs against libceres-dev
3 # (C) 2020
4 # Author: Anton Gladky <[email protected]>
5
6 set -e
7 CURDIR=$(pwd)
8
9 for TEST in rosenbrock robust_curve_fitting libmv_homography helloworld helloworld_analytic_diff helloworld_numeric_diff ellipse_approximation; do
10 echo Test: $TEST
11 WORKDIR=$AUTOPKGTEST_TMP
12 echo $WORKDIR
13 cd $CURDIR
14 cp -r examples/$TEST.cc $WORKDIR/
15 cp -r examples/*.h $WORKDIR/
16 cd $WORKDIR
17
18 g++ -I/usr/include/eigen3 $TEST.cc -o test -lceres -lglog
19 echo "build: OK"
20 [ -x test ]
21 ./test
22 echo "run: OK"
23 done