X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fperl-module.at;h=15ed6c2dbd84b89062c3474998c17d6d321366e6;hb=2f7b367bf796c63c595ac837b716cce535ffd5bf;hp=2be037066c933691e2417758001a09db7e1515ef;hpb=f550aee00a62fe1d8baf62d83cd7efef6cc2ee92;p=pspp-builds.git diff --git a/tests/perl-module.at b/tests/perl-module.at index 2be03706..15ed6c2d 100644 --- a/tests/perl-module.at +++ b/tests/perl-module.at @@ -56,11 +56,9 @@ DISPLAY DICTIONARY. SHOW WEIGHT. ]) AT_CHECK([pspp -O format=csv dump-dict.sps], [0], - [File label: + [File label: My Dictionary -My Dictionary - -Documents in the active file: +Documents in the active dataset: These Documents @@ -151,11 +149,9 @@ name,Format: A20,,2 ,Display Alignment: Left,, ,Display Width: 20,, -File label: - -This is the file label +File label: This is the file label -Documents in the active file: +Documents in the active dataset: This is a document line @@ -173,11 +169,9 @@ name,Format: A20,,2 ,Display Alignment: Left,, ,Display Width: 20,, -File label: - -This is the file label +File label: This is the file label -Documents in the active file: +Documents in the active dataset: This is a document line @@ -620,7 +614,7 @@ AT_DATA([test.pl], print $PSPP::errstr, "\n"; ]]) AT_CHECK([RUN_PERL_MODULE test.pl], [0], - [[Error opening "no-such-file.sav" for reading as a system file: No such file or directory. + [[Error opening `no-such-file.sav' for reading as a system file: No such file or directory. ]], [[Name "PSPP::errstr" used only once: possible typo at test.pl line 8. ]]) @@ -704,8 +698,10 @@ AT_CLEANUP AT_SETUP([Perl Pspp.t]) AT_SKIP_IF([test "$WITH_PERL_MODULE" = no]) +# Skip this test if Perl's Text::Diff module is not installed. +AT_CHECK([perl -MText::Diff -e '' || exit 77]) AT_CHECK([RUN_PERL_MODULE $abs_top_builddir/perl-module/t/Pspp.t], [0], - [[1..36 + [[1..37 ok 1 - use PSPP; ok 2 - Dictionary Creation ok 3 @@ -743,15 +739,6 @@ ok 33 - Missing Value Positive ok 34 - Missing Value Positive SYS ok 35 - Missing Value Positive Num ok 36 - Custom Attributes -]], - [[# @&t@ -# @@ -0,0 +1 @@ -# + -# @@ -0,0 +1 @@ -# + -# @@ -0,0 +1 @@ -# + -# @@ -0,0 +1 @@ -# + -]]) +ok 37 - Case count +]],[ignore]) AT_CLEANUP