octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #65406] pkg test statistics fails include test


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #65406] pkg test statistics fails include testing shadowed functions with core equivalents?
Date: Sun, 3 Mar 2024 04:34:20 -0500 (EST)

Follow-up Comment #1, bug #65406 (group octave):

See the comment on Discourse:
https://octave.discourse.group/t/mad-in-9-0-91/5340/8

> Afaict, `pkg test *pkg_name*` runs all tests in any of the .m or (generated)
.cc-tst files in the package. It doesn’t matter whether the respective
folder will be added to the Octave load path or not when the package is
loaded.
> The `shadow9` path is excluded from being added to the Octave load path with
some logic in the `PKG_ADD` script of the statistics package. So, `mad.m` (and
the other files in that folder) won’t be used. The tests in that file are
still run though.
>
> A potential solution could be to skip those tests on newer versions of
Octave with something like the following:


%!testif ; verLessThan ("Octave", "9")


> Or if the statistics package needs to be compatible with versions of Octave
that didn’t support the `%!testif` syntax yet, use a similar condition in
the body of the test.



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65406>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]