Commit 8d51fd9f authored by Jakob Stierhof's avatar Jakob Stierhof

Adding restructure checks

To ease the process of restructuring the isisscripts I've added
a simple test that currently only checks if a file '.check' is
present in any of the subfolders. The idea is, that this file lists
all files that are accepted for the restructured setup. If any file
in a subfolder is not present, the test will fail.

Currently only the presence of '.check' is tested, not is contents.

Per default the test is skipped, to run it the BUILDCHECK variable
must be define. The simplest way to do this is to run

  'BUILDCHECK= make'

I've also changed the documentation test to only execute when BUILDCHECK
is given and fail properly. Building the isisscripts and getting a huge
list of undocumented functions did not seem to motivate anyone to fix that :)
parent 088ce803
color_blackbody.sl
color_complex.sl
color_desaturate.sl
color_mix.sl
color_wavelength.sl
defined-cmaps.sl
hsl2rgb.sl
hsluv2rgb.sl
hsv2rgb.sl
maps.sl
palettes.sl
rgb2hex.sl
% test for documentation of accessible functions
% No documentation -> No publication
variable status = 0;
% I wish that would work, to many not documented
#if$BUILDCHECK
% get slang internal package
require("slshhelp");
require("setfuns");
......@@ -103,7 +108,9 @@ if (nodoc_locals) {
vmessage(" %s", sym);
}
status = nodoc_globals || nodoc_locals
vmessage("");
#endif
%exit(nodoc_globals || nodoc_locals);
exit(0); % once we have everything documented this should fail on missing documentation
exit(status);
variable status = 0;
#if$BUILDCHECK
require("fswalk");
variable Touched = Assoc_Type[UChar_Type];
define file_callback(name, st)
{
if (assoc_key_exists(Touched, name))
return 1;
Touched[path_dirname(name)] = 0;
if (".check" == path_basename(name))
Touched[path_dirname(name)] = 1;
return 1;
}
fswalk_new(NULL, &file_callback).walk("src");
variable status = 0;
variable k,v;
foreach k,v (Touched)
{
ifnot (v)
{
vmessage("Unchecked: %s", k);
status = 1;
}
}
#endif
exit(status);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment