view tests/run-tests.sh @ 64:128f065fd250

Change the default port for the web services server to 14475 (which is the low 16 bits of 80011...) Also, delete the not-automatically-maintained usage messages in audioDB.cpp and audioDB.h, as keeping them in sync with gengetopt.in is error-prone. (We automatically generate documentation instead.)
author mas01cr
date Wed, 26 Sep 2007 11:29:45 +0000
parents cb41fb97f7f3
children e13b4f62b4f5
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 Running test ${file}
      (cd ${file} && sh ./run-test.sh > test.out 2> test.err)
      EXIT_STATUS=$?
      if [ ${EXIT_STATUS} -ne 104 ]; then
        echo Test ${file} failed: exit status ${EXIT_STATUS}
      fi
    else
      echo Skipping test ${file}
    fi
  fi
done