X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fbugs%2Ft-test-alpha3.sh;h=ffe142dc63dcde1a8f75dada12bd03456f9f66f9;hb=3025fc73778a733bfd2aeefd57da1b1c1955a675;hp=c54bba3cf541a1ce7c738487e88ec6db09bb7a1e;hpb=bd17d2af982332ee1791998361b1ac6731fe14fa;p=pspp diff --git a/tests/bugs/t-test-alpha3.sh b/tests/bugs/t-test-alpha3.sh index c54bba3cf5..ffe142dc63 100755 --- a/tests/bugs/t-test-alpha3.sh +++ b/tests/bugs/t-test-alpha3.sh @@ -12,7 +12,7 @@ if [ -z "$top_builddir" ] ; then top_builddir=. ; fi top_srcdir=`cd $top_srcdir; pwd` top_builddir=`cd $top_builddir; pwd` -PSPP=$top_builddir/src/ui/terminal/pspp +PSPP=$top_builddir/src/ui/terminal/pspp$EXEEXT STAT_CONFIG_PATH=$top_srcdir/config export STAT_CONFIG_PATH @@ -79,38 +79,28 @@ if [ $? -ne 0 ] ; then no_result ; fi activity="run program" -$SUPERVISOR $PSPP --testing-mode -o raw-ascii $TESTFILE +$SUPERVISOR $PSPP -o pspp.csv $TESTFILE if [ $? -ne 0 ] ; then no_result ; fi activity="compare output" -perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list -diff -b $TEMPDIR/pspp.list - << EOF -1.1 DATA LIST. Reading free-form data from INLINE. -+--------+------+ -|Variable|Format| -#========#======# -|x |F8.0 | -|gv |A8 | -+--------+------+ -2.1 T-TEST. Group Statistics -#==========#=#====#==============#=========# -# gv |N|Mean|Std. Deviation|S.E. Mean# -#==========#=#====#==============#=========# -#x One |5|2.60| .55| .24# -# Two |3|3.50| .50| .29# -#==========#=#====#==============#=========# -2.2 T-TEST. Independent Samples Test -#============================#=========#============================================================================# -# # Levene's| t-test for Equality of Means # -# #----+----+-----+----+---------------+---------------+---------------------+-----------# -# # | | | | | | | 95% # -# # | | | | | | +-----+-----# -# # F |Sig.| t | df |Sig. (2-tailed)|Mean Difference|Std. Error Difference|Lower|Upper# -#============================#====#====#=====#====#===============#===============#=====================#=====#=====# -#xEqual variances assumed #1.13| .33|-2.32|6.00| .06| -.90| .38|-1.83| .03# -# Equal variances not assumed# | |-2.38|4.70| .07| -.90| .38|-1.89| .09# -#============================#====#====#=====#====#===============#===============#=====================#=====#=====# +diff -c $TEMPDIR/pspp.csv - << EOF +Table: Reading free-form data from INLINE. +Variable,Format +x,F8.0 +gv,A8 + +Table: Group Statistics +,gv,N,Mean,Std. Deviation,S.E. Mean +x,One ,5,2.60,.55,.24 +,Two ,3,3.50,.50,.29 + +Table: Independent Samples Test +,,Levene's Test for Equality of Variances,,t-test for Equality of Means,,,,,, +,,,,,,,,,95% Confidence Interval of the Difference, +,,F,Sig.,t,df,Sig. (2-tailed),Mean Difference,Std. Error Difference,Lower,Upper +x,Equal variances assumed,1.13,.33,-2.32,6.00,.06,-.90,.38,-1.83,.03 +,Equal variances not assumed,,,-2.38,4.70,.07,-.90,.38,-1.89,.09 EOF if [ $? -ne 0 ] ; then fail ; fi