From 219664470d939b7f514fce3f0b6ce2ea9193ef7d Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Wed, 14 May 2008 16:24:08 +0000 Subject: Exclude XML example checks if XML support is not available. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@656326 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/examples/verify_all | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) (limited to 'cpp/examples/verify_all') diff --git a/cpp/examples/verify_all b/cpp/examples/verify_all index 427a46f5be..0fc1625355 100755 --- a/cpp/examples/verify_all +++ b/cpp/examples/verify_all @@ -2,16 +2,19 @@ # Verify all C++/python example combinations. # -srcdir=$1 ; verify=`dirname $0`/verify -qpidd=../src/qpidd -python=$srcdir/python - +topdir=$1 +exclude_regexp=$2 + + +qpidd=$topdir/cpp/src/qpidd +python=$topdir/python + trap "$qpidd -q" exit export QPID_PORT=`$qpidd -dp0 --data-dir "" --auth no` export PYTHON_EXAMPLES=$python/examples export PYTHONPATH=$python:$PYTHONPATH -export AMQP_SPEC=$srcdir/specs/amqp.0-10.xml +export AMQP_SPEC=$topdir/specs/amqp.0-10.xml test -d $PYTHON_EXAMPLES || echo "Warning: not verifying python examples, $PYTHON_EXAMPLES not found" find="find examples" @@ -19,5 +22,13 @@ test -d $PYTHON_EXAMPLES && find="$find $PYTHON_EXAMPLES" find="$find -name verify" test -d $PYTHON_EXAMPLES && \ find="$find -o -name verify_cpp_python -o -name verify_python_cpp" -$verify `$find` +all_examples=`$find` +if test -z "$exclude_regexp"; then + run_examples=$all_examples +else + for f in $all_examples; do + { cat $f | grep $exclude_regexp > /dev/null ; } || run_examples="$run_examples $f" + done +fi +$verify $run_examples -- cgit v1.2.1