Skip to content

Diffs in AtlasRep standard tests #1617

Closed
@olexandr-konovalov

Description

The log below comes from Jenkins CI. It happens that AtlasRep's tst/testall.g file contains some tests that does not work when TERM = "dumb", the setting used in Jenkins CI.

Those tests pass fine when tst/testall.g is read into a usual GAP session, and do not take much time. They automatically open and close some Browse package windows, and I understand that the developers of AtlasRep would like to keep them in tst/testall.g to run regularly. Therefore, it seems for me that the best solution would be to omit them if TERM = "dumb" and run otherwise.

Additionally, tst/testall.g calls Test, but does not analyse its returned value. This does not permit automated detection of test failures. As said in https://github.com/gap-system/gap/wiki/Status-of-standard-tests-in-GAP-packages, the automated detection of the result of the test is relying on lines containing the substrings

#I  Errors detected while testing

or

#I  No errors detected while testing

(with exactly two spaces after #I), dependently on the test result. All that is needs is to calculate testresult and add the following lines

if testresult then
  Print("#I  No errors detected while testing\n");
else
  Print("#I  Errors detected while testing\n");
fi;

to the end of the test.

The mentioned log file is below.

============================OUTPUT START==============================

#I  RunPackageTests("atlasrep", "1.5.1", "tst/testall.g", auto);
 ���������������������������   GAP 4.8.8, 20-Aug-2017, build of 2017-08-20 19:40:04 (BST)
 ���  GAP  ���   https://www.gap-system.org
 ���������������������������   Architecture: x86_64-pc-linux-gnu-gcc-default64
 Libs used:  gmp, readline
 Loaded workspace: wsp.g
 Components: trans 1.0, prim 2.1, small* 1.0, id* 1.0
 Packages:   AClib 1.2, Alnuth 3.0.0, AtlasRep 1.5.1, AutPGrp 1.8, 
             Browse 1.8.7, CRISP 1.4.4, Cryst 4.1.12, CrystCat 1.1.6, 
             CTblLib 1.2.2, FactInt 1.5.4, FGA 1.3.1, GAPDoc 1.6, IO 4.4.6, 
             IRREDSOL 1.4, LAGUNA 3.7.0, Polenta 1.3.7, Polycyclic 2.11, 
             RadiRoot 2.7, ResClasses 4.6.0, Sophus 1.23, SpinSym 1.5, 
             TomLib 1.2.6, Utils 0.46
 Try '??help' for help. See also '?copyright', '?cite' and '?authors'
########> Diff in /data/gap-jenkins/workspace/GAP-minor-release-test/GAPCOPTS/\
64build/GAPGMP/gmp/GAPTARGET/packages/label/kovacs/gap4r8/pkg/atlasrep/tst/doc\
xpl.tst, line 871:
# Input is:
if IsBound( BrowseMinimalDegrees ) then
  down:= NCurses.keys.DOWN;;  DOWN:= NCurses.keys.NPAGE;;
  right:= NCurses.keys.RIGHT;;  END:= NCurses.keys.END;;
  enter:= NCurses.keys.ENTER;;  nop:= [ 14, 14, 14 ];;
  # just scroll in the table
  BrowseData.SetReplay( Concatenation( [ DOWN, DOWN, DOWN,
         right, right, right ], "sedddrrrddd", nop, nop, "Q" ) );
  BrowseMinimalDegrees();;
  # restrict the table to the groups with minimal ordinary degree 6
  BrowseData.SetReplay( Concatenation( "scf6",
       [ down, down, right, enter, enter ] , nop, nop, "Q" ) );
  BrowseMinimalDegrees();;
  BrowseData.SetReplay( false );
fi;
# Expected output:
# But found:
#I  cannot switch to visual mode because of TERM = "dumb"
#I  cannot switch to visual mode because of TERM = "dumb"
########
########> Diff in /data/gap-jenkins/workspace/GAP-minor-release-test/GAPCOPTS/\
64build/GAPGMP/gmp/GAPTARGET/packages/label/kovacs/gap4r8/pkg/atlasrep/tst/doc\
xpl.tst, line 887:
# Input is:
if IsBound( BrowseMinimalDegrees ) then
  # just scroll in the table
  BrowseData.SetReplay( Concatenation( [ DOWN, DOWN, DOWN, END ],
         "rrrrrrrrrrrrrr", nop, nop, "Q" ) );
  BrowseMinimalDegrees( BibliographySporadicSimple.groupNamesJan05 );;
fi;
# Expected output:
# But found:
#I  cannot switch to visual mode because of TERM = "dumb"
########
########> Diff in /data/gap-jenkins/workspace/GAP-minor-release-test/GAPCOPTS/\
64build/GAPGMP/gmp/GAPTARGET/packages/label/kovacs/gap4r8/pkg/atlasrep/tst/doc\
xpl.tst, line 895:
# Input is:
if IsBound( BrowseBibliographySporadicSimple ) then
  enter:= NCurses.keys.ENTER;;  nop:= [ 14, 14, 14 ];;
  BrowseData.SetReplay( Concatenation(
    # choose the application
    "/Bibliography of Sporadic Simple Groups", [ enter, enter ],
    # search in the title column for the Atlas of Finite Groups
    "scr/Atlas of finite groups", [ enter,
    # and quit
    nop, nop, nop, nop ], "Q" ) );
  BrowseGapData();;
  BrowseData.SetReplay( false );
fi;
# Expected output:
# But found:
#I  cannot switch to visual mode because of TERM = "dumb"
########
Input file: docxpl.tst
GAP4stones: 316
Input file: atlasrep.tst
GAP4stones: 1005
########> Diff in /data/gap-jenkins/workspace/GAP-minor-release-test/GAPCOPTS/\
64build/GAPGMP/gmp/GAPTARGET/packages/label/kovacs/gap4r8/pkg/atlasrep/tst/doc\
xpl.tst, line 871:
# Input is:
if IsBound( BrowseMinimalDegrees ) then
  down:= NCurses.keys.DOWN;;  DOWN:= NCurses.keys.NPAGE;;
  right:= NCurses.keys.RIGHT;;  END:= NCurses.keys.END;;
  enter:= NCurses.keys.ENTER;;  nop:= [ 14, 14, 14 ];;
  # just scroll in the table
  BrowseData.SetReplay( Concatenation( [ DOWN, DOWN, DOWN,
         right, right, right ], "sedddrrrddd", nop, nop, "Q" ) );
  BrowseMinimalDegrees();;
  # restrict the table to the groups with minimal ordinary degree 6
  BrowseData.SetReplay( Concatenation( "scf6",
       [ down, down, right, enter, enter ] , nop, nop, "Q" ) );
  BrowseMinimalDegrees();;
  BrowseData.SetReplay( false );
fi;
# Expected output:
# But found:
#I  cannot switch to visual mode because of TERM = "dumb"
#I  cannot switch to visual mode because of TERM = "dumb"
########
########> Diff in /data/gap-jenkins/workspace/GAP-minor-release-test/GAPCOPTS/\
64build/GAPGMP/gmp/GAPTARGET/packages/label/kovacs/gap4r8/pkg/atlasrep/tst/doc\
xpl.tst, line 887:
# Input is:
if IsBound( BrowseMinimalDegrees ) then
  # just scroll in the table
  BrowseData.SetReplay( Concatenation( [ DOWN, DOWN, DOWN, END ],
         "rrrrrrrrrrrrrr", nop, nop, "Q" ) );
  BrowseMinimalDegrees( BibliographySporadicSimple.groupNamesJan05 );;
fi;
# Expected output:
# But found:
#I  cannot switch to visual mode because of TERM = "dumb"
########
########> Diff in /data/gap-jenkins/workspace/GAP-minor-release-test/GAPCOPTS/\
64build/GAPGMP/gmp/GAPTARGET/packages/label/kovacs/gap4r8/pkg/atlasrep/tst/doc\
xpl.tst, line 895:
# Input is:
if IsBound( BrowseBibliographySporadicSimple ) then
  enter:= NCurses.keys.ENTER;;  nop:= [ 14, 14, 14 ];;
  BrowseData.SetReplay( Concatenation(
    # choose the application
    "/Bibliography of Sporadic Simple Groups", [ enter, enter ],
    # search in the title column for the Atlas of Finite Groups
    "scr/Atlas of finite groups", [ enter,
    # and quit
    nop, nop, nop, nop ], "Q" ) );
  BrowseGapData();;
  BrowseData.SetReplay( false );
fi;
# Expected output:
# But found:
#I  cannot switch to visual mode because of TERM = "dumb"
########
Input file: docxpl.tst
GAP4stones: 322
Input file: atlasrep.tst
GAP4stones: 1107
#I  RunPackageTests("atlasrep", "1.5.1", "tst/testall.g", auto): runtime 81958
============================OUTPUT END================================

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    kind: enhancementLabel for issues suggesting enhancements; and for pull requests implementing enhancementstopic: packagesissues or PRs related to package handling, or specific to a package (for packages w/o issue tracker)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions