#!/bin/bash
cd `dirname $0`
if ../bjam toolset=gcc `../python.opts.sh` $*
then {
    export LD_LIBRARY_PATH=Python/cpp:../dist/lib
    if ../dist/bin/ftest -v true \
        Python/cpp/libvm-cpp.so
    then {
        echo All OK
    } else {
        echo C++ test failure
        exit 1
    }
    fi
} else {
    echo Build failure
    exit 1
}
fi

nosetests Python -v