File: test-examples.sh

package info (click to toggle)
interface99 1.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 324 kB
  • sloc: ansic: 951; sh: 48; makefile: 6
file content (25 lines) | stat: -rwxr-xr-x 430 bytes parent folder | download | duplicates (2)
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/bash

set -e

mkdir -p examples/build
cd examples/build
cmake ..
cmake --build .

run_example() {
    echo "executing ./$1 ..."
    ./$1
}

if [[ "$OSTYPE" == "linux-gnu" ]]; then
    run_example "shape"
    run_example "tracing_vehicle"
    run_example "airplane"
    run_example "read_write"
    run_example "read_write_both"
    run_example "marker"
    run_example "default_impl"

    run_example "opaque_type/frog"
fi