#!/bin/sh -e

if [ "$ADTTMP" = "" ] ; then
  ADTTMP=`mktemp -d /tmp/r-cran-msm-test.XXXXXX`
fi
cd $ADTTMP
cp -a /usr/share/doc/r-cran-msm/tests/* $ADTTMP
find . -name "*.gz" -exec gunzip \{\} \;
for testx in `ls *.R` ; do
    LC_ALL=C.UTF-8 R --no-save < $testx
done
