#!/bin/sh -e
# http://dep.debian.net/deps/dep8/
# Autopkgtest: Test if GWAMA run analysis correctly
# Author: Dylan Aïssi <bob.dybian@gmail.com>
# Last-Update: 2014-12-18

pkg=gwama
if [ "$ADTTMP" = "" ] ; then
  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
fi
cd $ADTTMP
cp -a /usr/share/doc/${pkg}/examples/samples/* $ADTTMP

GWAMA_TEST='GWAMA --filelist "gwama.in" --quantitative'

# Fixed analysis
$GWAMA_TEST --output "test_fixed" 
diff test_fixed.out fixed.out

# Random analysis
$GWAMA_TEST --output "test_random" --random
diff test_random.out random.out

rm -f $ADTTMP/*

