diff options
| author | Alan Conway <aconway@apache.org> | 2007-12-07 16:29:59 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2007-12-07 16:29:59 +0000 |
| commit | c5d4127efa6689586687f8a2f19ec10e57f13f89 (patch) | |
| tree | fdc7997e9ddf46b36b592024e85622ccc6765be1 /cpp/examples/verify_functions | |
| parent | aa29da990d23d017ecfa095eb0d3e8adf705b4b8 (diff) | |
| download | qpid-python-c5d4127efa6689586687f8a2f19ec10e57f13f89.tar.gz | |
examples/verify
- run installed examples and verify their output.
examples/examples/*/verify.in
- expected output of example, may be filtered/sorted for some examples.
examples/Makefile.am
- add verify to installcheck target.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@602140 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/examples/verify_functions')
| -rwxr-xr-x | cpp/examples/verify_functions | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/cpp/examples/verify_functions b/cpp/examples/verify_functions deleted file mode 100755 index 15bf34f048..0000000000 --- a/cpp/examples/verify_functions +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/sh - -new_tag() { - for t in $TAGS; do - if test "$t" = "$1"; then - echo "Duplicate tag $t" 1>&2 ; exit 1 - fi - done - TAGS="$TAGS $tag" -} - -# Usage: run tag program args ... -# Runs 'program args ...' with output to tag.out and tag.err -run() { - tag=$1; shift - test -n "$*" || { echo "No command for tag: $tag" 1>&2; exit 1; } - new_tag $tag - rm -f $tag.out $tag.err $tag.diff - "$@" > $tag.out 2> $tag.err || echo "exit status $?" >> $tag.err & -} - -# Genereate error report -errors() { - for tag in "$@"; do - DIFF=`diff $tag.out $tag.expect 2>&1` || { - echo "==== $tag.out != $tag.expect ====" - echo $DIFF - } - test -s $tag.err && { - echo "==== $tag.err ====" - cat $tag.err - } - done -} - -# Wait for processes, verify output. -# Verifies tag.expect == tag.out and ! tag.err for each tag, -# creates errors.txt if there are any discrepancies. -# -verify() { - wait - rm -f errors.txt - ERRORS=`errors $TAGS` - if test -n "$ERRORS"; then - echo "$ERRORS" 1>&2 - return 1 - fi - return 0 -} - |
