view test/test.sh @ 176:eaf46e7647a0 tip master

Update for latest Emscripten - Pointer_stringify has apparently been deprecated for a while, and was removed in v1.38.27
author Chris Cannam <cannam@all-day-breakfast.com>
date Wed, 27 Feb 2019 11:29:53 +0000
parents 577e5e55cc21
children
line wrap: on
line source
#!/bin/bash

set -eu

mydir="$(dirname $0)"

cd "$mydir"

echo
echo "Running C++ test..."
echo

( cd ../examples/vamp-example-plugins && make clean linux )

make quick-test

./quick-test > /tmp/$$

if ! cmp /tmp/$$ ./expected.txt ; then
    echo
    echo "FAILED: output not as expected: diff follows:"
    cp /tmp/$$ ./obtained.txt
    diff -u ./obtained.txt ./expected.txt
    exit 1
fi

echo
echo "Running Emscripten tests..."
echo

NODE=nodejs
if ! nodejs -v >/dev/null 2>&1 ; then
    NODE=node
    if ! node -v >/dev/null 2>&1 ; then
        NODE=""
    fi
fi
export NODE

( cd ../examples/vamp-example-plugins && make clean test )
( cd ../examples/vamp-test-plugin && make clean test )

echo
echo "Done"
echo