Incorporate the tests generated by AutoDoc into tst/testall.g
This commit is contained in:
parent
31773603de
commit
0cef163077
5 changed files with 42 additions and 5 deletions
13
tst/AutoDoc_tests.g
Normal file
13
tst/AutoDoc_tests.g
Normal file
|
@ -0,0 +1,13 @@
|
|||
## This file is automatically generated by AutoDoc.
|
||||
## Changes will be discarded by the next call of the AutoDoc method.
|
||||
|
||||
|
||||
AUTODOC_file_scan_list := [ "../PackageInfo.g", "../init.g", "../lib/byconj.gd", "../lib/byconj.gi", "../lib/bytable.gd", "../lib/bytable.gi", "../lib/constructions.gd", "../lib/constructions.gi", "../lib/structure.gd", "../lib/structure.gi", "../maketest.g", "../read.g" ];
|
||||
|
||||
LoadPackage( "GAPDoc" );
|
||||
|
||||
example_tree := ExtractExamples( Directory("./doc/"), "RAQ.xml", AUTODOC_file_scan_list, 500 );
|
||||
|
||||
RunExamples( example_tree, rec( compareFunction := "uptowhitespace" ) );
|
||||
|
||||
QUIT;
|
|
@ -2,9 +2,17 @@
|
|||
|
||||
LoadPackage( "RAQ" );
|
||||
|
||||
TestDirectory(DirectoriesPackageLibrary("RAQ","tst"),
|
||||
rec(exitGAP := true,
|
||||
tst_path := DirectoriesPackageLibrary("RAQ", "tst");
|
||||
|
||||
TestDirectory(tst_path,
|
||||
rec(exitGAP := false,
|
||||
testOptions := rec(compareFunction := "uptowhitespace"))
|
||||
);
|
||||
|
||||
FORCE_QUIT_GAP(1); # should be unreachable
|
||||
auto_file := Filename(tst_path, "AutoDoc_tests.g");
|
||||
|
||||
if auto_file <> fail then
|
||||
Read(auto_file);
|
||||
else
|
||||
Info(InfoWarning, 1, "Warning: Cannot find AutoDoc_tests.g. Run `gap doc/makedoc.g` in the RAQ package directory.");
|
||||
fi;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue