2442db83574e270bfeddefc7a04c1264b777a671
[libdai.git] / tests / testem / runtests
1 #!/bin/bash
2 TMPFILE1=`mktemp /var/tmp/testem.XXXXXX`
3 trap 'rm -f $TMPFILE1' 0 1 15
4
5 ./testem 2var.fg 2var_data.tab 2var.em > $TMPFILE1
6 ./testem 3var.fg 2var_data.tab 3var.em >> $TMPFILE1
7 ./testem ../hoi1.fg hoi1_data.tab hoi1_share_f0_f2.em >> $TMPFILE1
8 ./testem ../hoi1.fg hoi1_data.tab hoi1_share_f0_f1_f2.em >> $TMPFILE1
9 diff -s $TMPFILE1 testem.out || exit 1
10
11 rm -f $TMPFILE1