3 TEMPDIR=/tmp/pspp-tst-$$
5 trap 'cd /; rm -rf $TEMPDIR' 0
7 # ensure that top_builddir are absolute
8 if [ -z "$top_builddir" ] ; then top_builddir=. ; fi
9 if [ -z "$top_srcdir" ] ; then top_srcdir=. ; fi
10 top_builddir=`cd $top_builddir; pwd`
11 PSPP=$top_builddir/src/ui/terminal/pspp$EXEEXT
13 # ensure that top_srcdir is absolute
14 top_srcdir=`cd $top_srcdir; pwd`
16 STAT_CONFIG_PATH=$top_srcdir/config
17 export STAT_CONFIG_PATH
41 activity="write pspp syntax"
42 cat > month-out.pspp <<EOF
72 print outfile='month-out.out'/x(month3).
73 print outfile='month-out.out'/x(month4).
74 print outfile='month-out.out'/x(month5).
75 print outfile='month-out.out'/x(month6).
76 print outfile='month-out.out'/x(month7).
77 print outfile='month-out.out'/x(month8).
78 print outfile='month-out.out'/x(month9).
79 print outfile='month-out.out'/x(month10).
80 print outfile='month-out.out'/x(month11).
81 print outfile='month-out.out'/x(month12).
82 print outfile='month-out.out'/x(month13).
83 print outfile='month-out.out'/x(month14).
84 print outfile='month-out.out'/x(month15).
85 print outfile='month-out.out'/x(month16).
86 print outfile='month-out.out'/x(month17).
87 print outfile='month-out.out'/x(month18).
88 print outfile='month-out.out'/x(month19).
89 print outfile='month-out.out'/x(month20).
90 print outfile='month-out.out'/x(month21).
91 print outfile='month-out.out'/x(month22).
92 print outfile='month-out.out'/x(month23).
93 print outfile='month-out.out'/x(month24).
94 print outfile='month-out.out'/x(month25).
95 print outfile='month-out.out'/x(month26).
96 print outfile='month-out.out'/x(month27).
97 print outfile='month-out.out'/x(month28).
98 print outfile='month-out.out'/x(month29).
99 print outfile='month-out.out'/x(month30).
100 print outfile='month-out.out'/x(month31).
101 print outfile='month-out.out'/x(month32).
102 print outfile='month-out.out'/x(month33).
103 print outfile='month-out.out'/x(month34).
104 print outfile='month-out.out'/x(month35).
105 print outfile='month-out.out'/x(month36).
106 print outfile='month-out.out'/x(month37).
107 print outfile='month-out.out'/x(month38).
108 print outfile='month-out.out'/x(month39).
109 print outfile='month-out.out'/x(month40).
112 if [ $? -ne 0 ] ; then no_result ; fi
114 activity="run program"
115 $SUPERVISOR $PSPP -o pspp.csv month-out.pspp
116 if [ $? -eq 0 ] ; then no_result ; fi
118 activity="compare output"
119 diff -u month-out.out - <<EOF
995 if [ $? -ne 0 ] ; then fail ; fi