X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fcommand%2Foneway-with-splits.sh;h=35cc76de5bf55b9b9e62d759ca737bb2b70fbdd8;hb=f51ecb48027e6b1eb46840ae25888a25b429f012;hp=333c66b321fbfd946612ff2e215a43d9eb2f946d;hpb=44d7b18d5c3d0a806fe1a29658445254f2376600;p=pspp-builds.git diff --git a/tests/command/oneway-with-splits.sh b/tests/command/oneway-with-splits.sh index 333c66b3..35cc76de 100755 --- a/tests/command/oneway-with-splits.sh +++ b/tests/command/oneway-with-splits.sh @@ -6,10 +6,14 @@ TEMPDIR=/tmp/pspp-tst-$$ TESTFILE=$TEMPDIR/`basename $0`.sps -here=`pwd`; +# ensure that top_builddir are absolute +if [ -z "$top_builddir" ] ; then top_builddir=. ; fi +if [ -z "$top_srcdir" ] ; then top_srcdir=. ; fi +top_builddir=`cd $top_builddir; pwd` +PSPP=$top_builddir/src/ui/terminal/pspp # ensure that top_srcdir is absolute -cd $top_srcdir; top_srcdir=`pwd` +top_srcdir=`cd $top_srcdir; pwd` STAT_CONFIG_PATH=$top_srcdir/config export STAT_CONFIG_PATH @@ -92,119 +96,81 @@ if [ $? -ne 0 ] ; then no_result ; fi activity="run program" -$SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE +$SUPERVISOR $PSPP -o pspp.csv $TESTFILE if [ $? -ne 0 ] ; then no_result ; fi -diff -b -B $TEMPDIR/pspp.list - << EOF -1.1 DATA LIST. Reading free-form data from the command file. -+--------+------+ -|Variable|Format| -#========#======# -|QUALITY |F8.0 | -|BRAND |F8.0 | -|S |F8.0 | -+--------+------+ - -Variable Value Label -S 1.00 - -2.1 ONEWAY. Descriptives -#===============#=======#=#====#==============#==========#=======================#=======#=======# -# | # | | | | 95% Confidence | | # -# | # | | | +-----------+-----------+ | # -# | #N|Mean|Std. Deviation|Std. Error|Lower Bound|Upper Bound|Minimum|Maximum# -#===============#=======#=#====#==============#==========#===========#===========#=======#=======# -#Breaking Strain|Aspeger#5|2.20| 1.30| .58| .58| 3.82| 1.00| 4.00# -# |Bloggs #2|3.50| 2.12| 1.50| -15.56| 22.56| 2.00| 5.00# -# |Total #7|2.57| 1.51| .57| 1.17| 3.97| 1.00| 5.00# -#===============#=======#=#====#==============#==========#===========#===========#=======#=======# - -2.2 ONEWAY. Test of Homogeneity of Variances -#===============#================#===#===#============# -# #Levene Statistic|df1|df2|Significance# -#===============#================#===#===#============# -#Breaking Strain# 1.086| 1| 5| .345# -#===============#================#===#===#============# - -2.3 ONEWAY. ANOVA -#==============================#==============#==#===========#=====#============# -# #Sum of Squares|df|Mean Square| F |Significance# -#===============#==============#==============#==#===========#=====#============# -#Breaking Strain|Between Groups# 2.41| 1| 2.414|1.068| .349# -# |Within Groups # 11.30| 5| 2.260| | # -# |Total # 13.71| 6| | | # -#===============#==============#==============#==#===========#=====#============# - -2.4 ONEWAY. Contrast Coefficients -#==========#==============# -# # Manufacturer # -# #-------+------# -# #Aspeger|Bloggs# -#========#=#=======#======# -#Contrast|1# -2| 2# -# |2# -1| 1# -#========#=#=======#======# - -2.5 ONEWAY. Contrast Tests -#===============================================#=================#==========#=====#=====#===============# -# Contrast#Value of Contrast|Std. Error| t | df |Sig. (2-tailed)# -#===============#======================#========#=================#==========#=====#=====#===============# -#Breaking Strain|Assume equal variances| 1 # 2.60| 2.516|1.034| 5| .349# -# | | 2 # 1.30| 1.258|1.034| 5| .349# -# |Does not assume equal | 1 # 2.60| 3.219| .808|1.318| .539# -# | | 2 # 1.30| 1.609| .808|1.318| .539# -#===============#======================#========#=================#==========#=====#=====#===============# - -Variable Value Label -S 2.00 - -2.6 ONEWAY. Descriptives -#===============#========#=#====#==============#==========#=======================#=======#=======# -# | # | | | | 95% Confidence | | # -# | # | | | +-----------+-----------+ | # -# | #N|Mean|Std. Deviation|Std. Error|Lower Bound|Upper Bound|Minimum|Maximum# -#===============#========#=#====#==============#==========#===========#===========#=======#=======# -#Breaking Strain|Bloggs #3|3.00| 1.00| .58| .52| 5.48| 2.00| 4.00# -# |Charlies#5|5.00| 1.58| .71| 3.04| 6.96| 3.00| 7.00# -# |Total #8|4.25| 1.67| .59| 2.85| 5.65| 2.00| 7.00# -#===============#========#=#====#==============#==========#===========#===========#=======#=======# - -2.7 ONEWAY. Test of Homogeneity of Variances -#===============#================#===#===#============# -# #Levene Statistic|df1|df2|Significance# -#===============#================#===#===#============# -#Breaking Strain# .923| 1| 6| .374# -#===============#================#===#===#============# - -2.8 ONEWAY. ANOVA -#==============================#==============#==#===========#=====#============# -# #Sum of Squares|df|Mean Square| F |Significance# -#===============#==============#==============#==#===========#=====#============# -#Breaking Strain|Between Groups# 7.50| 1| 7.500|3.750| .101# -# |Within Groups # 12.00| 6| 2.000| | # -# |Total # 19.50| 7| | | # -#===============#==============#==============#==#===========#=====#============# - -2.9 ONEWAY. Contrast Coefficients -#==========#===============# -# # Manufacturer # -# #------+--------# -# #Bloggs|Charlies# -#========#=#======#========# -#Contrast|1# -2| 2# -# |2# -1| 1# -#========#=#======#========# - -2.10 ONEWAY. Contrast Tests -#===============================================#=================#==========#=====#=====#===============# -# Contrast#Value of Contrast|Std. Error| t | df |Sig. (2-tailed)# -#===============#======================#========#=================#==========#=====#=====#===============# -#Breaking Strain|Assume equal variances| 1 # 4.00| 2.066|1.936| 6| .101# -# | | 2 # 2.00| 1.033|1.936| 6| .101# -# |Does not assume equal | 1 # 4.00| 1.826|2.191|5.882| .072# -# | | 2 # 2.00| .913|2.191|5.882| .072# -#===============#======================#========#=================#==========#=====#=====#===============# - +diff -c $TEMPDIR/pspp.csv - << EOF +Table: Reading free-form data from INLINE. +Variable,Format +QUALITY,F8.0 +BRAND,F8.0 +S,F8.0 + +Variable,Value,Label +S,1.00, + +Table: Descriptives +,,,,,,95% Confidence Interval for Mean,,, +,,N,Mean,Std. Deviation,Std. Error,Lower Bound,Upper Bound,Minimum,Maximum +Breaking Strain,Aspeger,5,2.20,1.30,.58,.58,3.82,1.00,4.00 +,Bloggs,2,3.50,2.12,1.50,-15.56,22.56,2.00,5.00 +,Total,7,2.57,1.51,.57,1.17,3.97,1.00,5.00 + +Table: Test of Homogeneity of Variances +,Levene Statistic,df1,df2,Significance +Breaking Strain,1.09,1,5,.35 + +Table: ANOVA +,,Sum of Squares,df,Mean Square,F,Significance +Breaking Strain,Between Groups,2.41,1,2.41,1.07,.35 +,Within Groups,11.30,5,2.26,, +,Total,13.71,6,,, + +Table: Contrast Coefficients +,,Manufacturer, +,,Aspeger,Bloggs +Contrast,1,-2,2 +,2,-1,1 + +Table: Contrast Tests +,,Contrast,Value of Contrast,Std. Error,t,df,Sig. (2-tailed) +Breaking Strain,Assume equal variances,1,2.60,2.52,1.03,5,.35 +,,2,1.30,1.26,1.03,5,.35 +,Does not assume equal,1,2.60,3.22,.81,1.32,.54 +,,2,1.30,1.61,.81,1.32,.54 + +Variable,Value,Label +S,2.00, + +Table: Descriptives +,,,,,,95% Confidence Interval for Mean,,, +,,N,Mean,Std. Deviation,Std. Error,Lower Bound,Upper Bound,Minimum,Maximum +Breaking Strain,Bloggs,3,3.00,1.00,.58,.52,5.48,2.00,4.00 +,Charlies,5,5.00,1.58,.71,3.04,6.96,3.00,7.00 +,Total,8,4.25,1.67,.59,2.85,5.65,2.00,7.00 + +Table: Test of Homogeneity of Variances +,Levene Statistic,df1,df2,Significance +Breaking Strain,.92,1,6,.37 + +Table: ANOVA +,,Sum of Squares,df,Mean Square,F,Significance +Breaking Strain,Between Groups,7.50,1,7.50,3.75,.10 +,Within Groups,12.00,6,2.00,, +,Total,19.50,7,,, + +Table: Contrast Coefficients +,,Manufacturer, +,,Bloggs,Charlies +Contrast,1,-2,2 +,2,-1,1 + +Table: Contrast Tests +,,Contrast,Value of Contrast,Std. Error,t,df,Sig. (2-tailed) +Breaking Strain,Assume equal variances,1,4.00,2.07,1.94,6,.10 +,,2,2.00,1.03,1.94,6,.10 +,Does not assume equal,1,4.00,1.83,2.19,5.88,.07 +,,2,2.00,.91,2.19,5.88,.07 EOF if [ $? -ne 0 ] ; then fail ; fi