File: cpp03

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 (13 lines) | stat: -rwxr-xr-x 344 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
set -e

SRCDIR=$(pwd)

cd "$AUTOPKGTEST_TMP"
for example in custom enum reuse_zone simple; do
  for v in 1 2 3; do
    echo "Testing cpp03 example '$example' with API version $v"
    c++ -Wall -O2 -DMSGPACK_DEFAULT_API_VERSION="$v" -std=c++03 -pthread -o "$example" "$SRCDIR"/example/cpp03/"$example".cpp
    ./"$example"
  done
done