X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Foutput%2Fcharts.at;h=28d5ac672e53c481742c35001fc2fa1489f663d6;hb=e2f99612bf4f4691623f16730eed3e55afdc54f0;hp=049fc281922acecfb022fcedaf2eaeda53badc00;hpb=fa1fffd5c789d9c7875fc3bdf556eaf017cf524e;p=pspp diff --git a/tests/output/charts.at b/tests/output/charts.at index 049fc28192..28d5ac672e 100644 --- a/tests/output/charts.at +++ b/tests/output/charts.at @@ -1,3 +1,19 @@ +dnl PSPP - a program for statistical analysis. +dnl Copyright (C) 2017 Free Software Foundation, Inc. +dnl +dnl This program is free software: you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation, either version 3 of the License, or +dnl (at your option) any later version. +dnl +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with this program. If not, see . +dnl AT_BANNER([CHARTS Rudimentary run tests]) dnl Check that the charts work @@ -33,7 +49,7 @@ examine x y by a . ]) -AT_CHECK([pspp -O format=csv charts.sps], [0], [ignore]) +AT_CHECK([pspp -o pspp.txt charts.sps], [0], [ignore]) AT_CLEANUP @@ -85,7 +101,7 @@ ROC /fred bert charlie by group (0) ]) -AT_CHECK([pspp -O format=csv roc.sps], [0], [ignore]) +AT_CHECK([pspp -o pspp.txt roc.sps], [0], [ignore]) AT_CLEANUP @@ -115,7 +131,7 @@ factor /variables = all ]) -AT_CHECK([pspp -O format=csv scree.sps], [0], [ignore]) +AT_CHECK([pspp -o pspp.txt scree.sps], [0], [ignore]) AT_CLEANUP @@ -152,6 +168,120 @@ frequencies pos neg pn dnl The --testing-mode flag is important!! -AT_CHECK([pspp --testing-mode -O format=csv histogram.sps], [0], [ignore]) +AT_CHECK([pspp --testing-mode -o pspp.txt histogram.sps], [0], [ignore]) AT_CLEANUP + + +AT_SETUP([FREQUENCIES charts]) +AT_DATA([xxx.sps],[ +DATA LIST LIST /nationality (A10) religion (A20) gender (A8). +BEGIN DATA. +Australian Sikh Male +Australian Sikh Male +Australian Sikh Male +Australian Sikh Male +British Zoroastrian Female +British Buddist Female +British Buddist Female +British Zoroastrian Female +German Muslim Male +German Christian Male +German Christian Female +German Christian Male +German Zoroastrian Female +German Sikh Female +German Muslim Female +German Pastafarian Female +German "Jedi Knight" Female +Belgian Sikh Male +French Muslim Male +French Muslim Male +French Christian Male +END DATA. + + +FREQUENCIES /VARIABLES=religion nationality /BARCHART /PIECHART. +]) + + +AT_CHECK([pspp -o pspp.txt xxx.sps], [0], [ignore]) + +AT_CLEANUP + + + +AT_SETUP([CROSSTABS charts]) +AT_DATA([xxx.sps],[ +DATA LIST LIST /nationality (A10) religion (A20) gender (A8). +BEGIN DATA. +Australian Sikh Male +Australian Sikh Male +Australian Sikh Male +Australian Sikh Male +British Zoroastrian Female +British Buddist Female +British Buddist Female +British Zoroastrian Female +German Muslim Male +German Christian Male +German Christian Female +German Christian Male +German Zoroastrian Female +German Sikh Female +German Muslim Female +German Pastafarian Female +German "Jedi Knight" Female +Belgian Sikh Male +French Muslim Male +French Muslim Male +French Christian Male +END DATA. + + +CROSSTABS + /tables = nationality by religion by gender + /tables = nationality by religion + /tables = religion by gender + /tables = nationality by religion by gender + /barchart. +]) + + +AT_CHECK([pspp -o pspp.txt xxx.sps], [0], [ignore]) + +AT_CLEANUP + + + + +AT_SETUP([BOXPLOT Empty]) +AT_DATA([bp.sps],[ +DATA LIST LIST /X * Y * . +BEGIN DATA +1 +2 +2 +2 +3 +END DATA + +EXAMINE + /VARIABLES = Y + /PLOT = BOXPLOT. +]) + + +AT_CHECK([pspp -o pspp.txt bp.sps], [0], [ignore]) + +AT_CLEANUP + + + + + + + + + +