<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix"><font color="#009900">Hello Philippe,<br>
        <br>
        AFAIR, XML filenames must not have the "%" character. Moreover,
        xml ids must exclude it as well.<br>
        So, if the xml id of the page is currently "%bigint_o_bigint",
        you should rather choose something like <br>
        "bigint_equal_bigint" instead.<br>
        <br>
        help generation and unit tests are completely independent from
        each other.<br>
      </font> <br>
      Le 16/06/2016 18:28, philippe a écrit :<br>
    </div>
    <blockquote cite="mid:njuk3j$h44$1@ger.gmane.org" type="cite">
      <pre wrap="">Hi,

I'm writing a toolbox to handle "big integers" represented by a tlist
of type "bigint". In my "macros/" directory  I wrote my scilab functions
for bigint type  and overloaded unary and  binary operators (+,-,>,==,
...) for example %bigint_o_bigint  for bigint equality "=="  (see the
source code at the bottom of this message ). For each function I wrote,
I've created :

- a short help,  as a comment at the beginning of the *.sci file
- a test file "*.tst" placed in "/tests/unit_tests/" directory

I have some problems when I execute my builder.sce  :

if %bigint_o_bigint  function is stored in macros/%bigint_o_bigint.sci
and its unit test in tests/unit_tests/%bigint_o_bigint.tst  then I get
an error  during help generation (but unit_tests are OK) :

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Génération du document maître :
        /home/roux/Documents/informatique/scilab/bigint/help/en_US

Génération du fichier d'aide [javaHelp] in
/home/roux/Documents/informatique/scilab/bigint/help/en_US.
 !--error 999
buildDoc : Erreur pendant la génération de la documentation : no
protocol:
/home/roux/Documents/informatique/scilab/bigint/help/en_US/%bigint_o_bigint.xml.
at line     691 of function xmltoformat called by :
at line      17 of function xmltojar called by :
at line      51 of function tbx_build_help called by :
tbx_build_help(toolbox_title, help_lang_dir);
at line       7 of exec file called by :
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

if %bigint_o_bigint function is stored in macros/bigint_o_bigint.sci and
its unit test in tests/unit_tests/%bigint_o_bigint.tst  or
tests/unit_tests/bigint_o_bigint.tst   then I get the error  during
unit_tests (but online help is generated without problems ???? )

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-->tbx_build_help_loader(toolbox_title, help_dir)</pre>
    </blockquote>
    <font color="#009900">?? Why does this function run a unit test ??</font><br>
    <br>
    <blockquote cite="mid:njuk3j$h44$1@ger.gmane.org" type="cite">
      <pre wrap="">

   TMPDIR = /tmp/SCI_TMP_420_E0z4Rx

   001/001 - [.] :

   001/009 - [.] bigint.........................................failed:
premature end of the test script
   002/009 - [.] bigint_o_bigint................................failed:
premature end of the test script


[...........]

   TEST : [.] bigint_o_bigint
   failed: premature end of the test script
   Check the following file :
   - /tmp/SCI_TMP_420_E0z4Rx/bigint_o_bigint.dia.tmp</pre>
    </blockquote>
    <font color="#009900">Did you check it?<br>
    </font>
    <blockquote cite="mid:njuk3j$h44$1@ger.gmane.org" type="cite">
      <pre wrap="">
   Or launch the following command :
   -
exec("/home/roux/Documents/informatique/scilab/bigint/tests/unit_tests/bigint_o_bigint.tst");</pre>
    </blockquote>
    <font color="#009900">Did you try it?<br>
      <br>
      Samuel<br>
    </font><br>
  </body>
</html>