File: cpp11

package info (click to toggle)
msgpack-c 3.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 8,324 kB
  • sloc: cpp: 85,510; ansic: 6,921; sh: 31; makefile: 30
file content (16 lines) | stat: -rwxr-xr-x 447 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
set -e

SRCDIR=$(pwd)

cd "$AUTOPKGTEST_TMP"
for example in container non_def_con_class socket_stream_example; do
  for v in 1 2 3; do
    if [ "$example" = socket_stream_example ] && [ "$v" -eq 1 ]; then
      continue
    fi
    echo "Testing cpp11 example '$example' with API version $v"
    c++ -Wall -O2 -DMSGPACK_DEFAULT_API_VERSION="$v" -std=c++11 -o "$example" "$SRCDIR"/example/cpp11/"$example".cpp
    ./"$example"
  done
done