File: build1

package info (click to toggle)
oce 0.18.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 301,548 kB
  • sloc: cpp: 1,190,609; ansic: 67,225; sh: 11,630; tcl: 7,954; cs: 5,221; python: 2,867; java: 1,522; makefile: 342; xml: 292; perl: 37
file content (25 lines) | stat: -rwxr-xr-x 574 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
# autopkgtest check: Build and run a program against oce
# (C) 2018 Anton Gladky
# Author: Anton Gladky <gladk@debian.org>

set -e

WORKDIR=$(mktemp -d)
echo $WORKDIR
trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
cp -r examples $WORKDIR/
cp -r test/data/brep/* $WORKDIR/
cd $WORKDIR

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=./../inst ./../examples/find_package
make
echo "build: OK"
./computeSurface ../15_cylinder_head.brep
./computeSurface ../27_leverarm.brep
./computeSurface ../29_misc1.brep
./computeSurface ../31_misc2.brep
ls -l
echo "run: OK"