File: c

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

SRCDIR=$(pwd)

cd "$AUTOPKGTEST_TMP"
for example in lib_buffer_unpack simple_c user_buffer_unpack; do
  echo "Testing c example '$example'"
  cc -Wall -O2 $(pkg-config --cflags msgpack) $(pkg-config --libs msgpack) -o "$example" "$SRCDIR"/example/c/"$example".c
  ./"$example"
done