#!/bin/sh

### Exercice the "unit tests" contained in the Praat scritps
### distributed in the upstream sources.

### Allow specification of the Praat executable
PRAAT=${PRAAT:-praat}

### Temporarily disable unit test
mv dwtest/test_Discriminant.praat dwtest/test_Discriminant.praat-away

### Run the unit tests
for dir in test dwtest ; do
    (cd $dir ; $PRAAT --run runAllTests_batch.praat)
done

### Restore disabled unit test
mv dwtest/test_Discriminant.praat-away dwtest/test_Discriminant.praat
