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
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
71 print outfile='month-out.out'/x(month3).
72 print outfile='month-out.out'/x(month4).
73 print outfile='month-out.out'/x(month5).
74 print outfile='month-out.out'/x(month6).
75 print outfile='month-out.out'/x(month7).
76 print outfile='month-out.out'/x(month8).
77 print outfile='month-out.out'/x(month9).
78 print outfile='month-out.out'/x(month10).
79 print outfile='month-out.out'/x(month11).
80 print outfile='month-out.out'/x(month12).
81 print outfile='month-out.out'/x(month13).
82 print outfile='month-out.out'/x(month14).
83 print outfile='month-out.out'/x(month15).
84 print outfile='month-out.out'/x(month16).
85 print outfile='month-out.out'/x(month17).
86 print outfile='month-out.out'/x(month18).
87 print outfile='month-out.out'/x(month19).
88 print outfile='month-out.out'/x(month20).
89 print outfile='month-out.out'/x(month21).
90 print outfile='month-out.out'/x(month22).
91 print outfile='month-out.out'/x(month23).
92 print outfile='month-out.out'/x(month24).
93 print outfile='month-out.out'/x(month25).
94 print outfile='month-out.out'/x(month26).
95 print outfile='month-out.out'/x(month27).
96 print outfile='month-out.out'/x(month28).
97 print outfile='month-out.out'/x(month29).
98 print outfile='month-out.out'/x(month30).
99 print outfile='month-out.out'/x(month31).
100 print outfile='month-out.out'/x(month32).
101 print outfile='month-out.out'/x(month33).
102 print outfile='month-out.out'/x(month34).
103 print outfile='month-out.out'/x(month35).
104 print outfile='month-out.out'/x(month36).
105 print outfile='month-out.out'/x(month37).
106 print outfile='month-out.out'/x(month38).
107 print outfile='month-out.out'/x(month39).
108 print outfile='month-out.out'/x(month40).
111 if [ $? -ne 0 ] ; then no_result ; fi
113 activity="run program"
114 $SUPERVISOR $PSPP --testing-mode month-out.pspp
115 if [ $? -eq 0 ] ; then no_result ; fi
117 activity="compare output"
118 diff -u month-out.out - <<EOF
994 if [ $? -ne 0 ] ; then fail ; fi