Mercurial > hg > audiodb
view tests/run-tests.sh @ 133:a5d5a55a412d
Friendlier Actionscript/SOAP behaviour.
As suggested in the gsoap documentation, we wrap the struct that we
actually want to return inside a response structure. (It should be said
that I didn't understand a _word_ of the gsoap documentation; I want in
particular to highlight section 8.1.1 of the gsoap 2.7.6 user guide,
which reads in its entirety
"If the single output parameter of a remote method is a complex data
type such as a struct or class it is necessary to specify the response
element of the remote method as a struct or class at all times.
Otherwise, the output parameter will be considered the response
element (!), because of the response element specification convention
used by gSOAP, as discussed in 8.1.7."
and tells me absolutely nothing of use.)
Nevertheless, cargo-cult from the documentation...
author | mas01cr |
---|---|
date | Tue, 23 Oct 2007 17:21:08 +0000 |
parents | 1fc7f47b422b |
children | 218106b4db14 |
line wrap: on
line source
#! /bin/sh AUDIODB=../../${EXECUTABLE:-audioDB} export AUDIODB if [ -x ${AUDIODB:3} ]; then : else echo Cannot execute audioDB: ${AUDIODB:3} exit 1 fi for file in [0-9][0-9][0-9][0-9]*; do if [ -d ${file} ]; then if [ -f ${file}/run-test.sh ]; then echo -n Running test ${file} if [ -f ${file}/short-description ]; then awk '{ printf(" (%s)",$0) }' < ${file}/short-description fi echo -n : (cd ${file} && sh ./run-test.sh > test.out 2> test.err) EXIT_STATUS=$? if [ ${EXIT_STATUS} -ne 104 ]; then echo " failed (exit status ${EXIT_STATUS})". FAILED=true else echo " success." fi else echo Skipping test ${file} fi fi done if [ -z "${FAILED}" ]; then exit 0 else exit 1 fi