Mercurial > hg > sv-dependency-builds
view src/capnproto-git-20161025/c++/samples/test.sh @ 78:7ea7031c0e5c pa_catalina
Apply patch from Tim Bunnell on PortAudio mailing list (2016-12-28, Mac 10.11 deprecation warning)
author | Chris Cannam |
---|---|
date | Wed, 30 Oct 2019 11:28:45 +0000 |
parents | 9530b331f8c1 |
children |
line wrap: on
line source
#! /usr/bin/env bash # # Quick script that compiles and runs the samples, then cleans up. # Used for release testing. set -exuo pipefail capnpc -oc++ addressbook.capnp c++ -std=c++11 -Wall addressbook.c++ addressbook.capnp.c++ \ $(pkg-config --cflags --libs capnp) -o addressbook ./addressbook write | ./addressbook read ./addressbook dwrite | ./addressbook dread rm addressbook addressbook.capnp.c++ addressbook.capnp.h capnpc -oc++ calculator.capnp c++ -std=c++11 -Wall calculator-client.c++ calculator.capnp.c++ \ $(pkg-config --cflags --libs capnp-rpc) -o calculator-client c++ -std=c++11 -Wall calculator-server.c++ calculator.capnp.c++ \ $(pkg-config --cflags --libs capnp-rpc) -o calculator-server rm -f /tmp/capnp-calculator-example-$$ ./calculator-server unix:/tmp/capnp-calculator-example-$$ & sleep 0.1 ./calculator-client unix:/tmp/capnp-calculator-example-$$ kill %+ wait %+ || true rm calculator-client calculator-server calculator.capnp.c++ calculator.capnp.h /tmp/capnp-calculator-example-$$