Mercurial > hg > sv-dependency-builds
view src/capnproto-git-20161025/c++/samples/test.sh @ 55:284acf908dcd
Add source for PortAudio stable v190600_20161030
author | Chris Cannam |
---|---|
date | Tue, 03 Jan 2017 13:44:07 +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-$$