view test.sh @ 180:bd543e74a9bf

Correct the inspection of the JSON object in successful to look for both error and success objects, writing out an error string if neither are present. Revert error handling in readInput() for JSON.
author Lucas Thompson <dev@lucas.im>
date Fri, 03 Feb 2017 11:12:27 +0000
parents bf8e3e7dd7de
children 3eb00e5c76c4
line wrap: on
line source
#!/bin/bash

set -eu

mypath=$(dirname "$0")

echo "Building and testing simple server..."

make -f "$mypath"/Makefile clean all test

echo
echo "Building and running test client..."

( cd "$mypath"/vamp-client/qt && qmake && make &&
      ./test ../../bin/piper-vamp-simple-server )

echo
echo "Done"
echo