#############################################################################
##
#W  testall.g              GAP 4 package `atlasrep'             Thomas Breuer
##
#H  @(#)$Id: testall.g,v 1.6 2003/02/24 16:19:02 gap Exp $
##
#Y  Copyright (C)  2002,  Lehrstuhl D fuer Mathematik,  RWTH Aachen,  Germany
##

LoadPackage( "atlasrep" );

dirs:= DirectoriesPackageLibrary( "atlasrep", "tst" );

# Make sure that the component is bound to either `true' or `false'.
if not IsBound( CMeatAxe.FastRead ) or CMeatAxe.FastRead <> true then
  CMeatAxe.FastRead:= false;
fi;

# Run the standard tests with this value.
ReadTest( Filename( dirs, "docxpl.tst" ) );
ReadTest( Filename( dirs, "atlasrep.tst" ) );

# Now run the tests with the other value.
CMeatAxe.FastRead:= not CMeatAxe.FastRead;
ReadTest( Filename( dirs, "docxpl.tst" ) );
ReadTest( Filename( dirs, "atlasrep.tst" ) );

# Reset the value.
CMeatAxe.FastRead:= not CMeatAxe.FastRead;

# Run the tests (in one variant only) without `ls' access.
if AtlasOfGroupRepresentationsInfo.ls then

  AtlasOfGroupRepresentationsInfo.ls:= false;
  ReadTest( Filename( dirs, "docxpl.tst" ) );
  ReadTest( Filename( dirs, "atlasrep.tst" ) );
  AtlasOfGroupRepresentationsInfo.ls:= true;

fi;

# Test private extensions if possible.
if Filename( DirectoriesSystemPrograms(), "ls" ) <> fail then
  ReadTest( Filename( dirs, "extend.tst" ) );
fi;


#############################################################################
##
#E

