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

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

[Octave-bug-tracker] [bug #40780] runtests doesn't execute tests in file


From: anonymous
Subject: [Octave-bug-tracker] [bug #40780] runtests doesn't execute tests in files which have only '%!xtest' block
Date: Tue, 03 Dec 2013 03:57:45 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20131101 Firefox/24.0 Iceweasel/24.1.0

URL:
  <http://savannah.gnu.org/bugs/?40780>

                 Summary: runtests doesn't execute tests in files which have
only '%!xtest' block
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Tue 03 Dec 2013 03:57:43 AM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: Wang S
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.4
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Problem:
If a file has at least one '%!test' block, all the tests (including '%!test'
and '%!xtest' types) in this file can be executed from 'runtests',
but if a file has only '%!xtest' block, this file cannot be tested from
'runtests'.

Possible solutions:
Modify file '/usr/share/octave/3.6.4/m/testfun/runtests.m' line 88 column 43
as

-    retval = ! isempty (regexp (str, '^%!(test|assert|error|warning)',
"lineanchors"));
+    retval = ! isempty (regexp (str, '^%!(test|xtest|assert|error|warning)',
"lineanchors"));


System and Octave version:
Debian GNU/Linux unstable (sid)
3.11-2-amd64 #1 SMP Debian 3.11.8-1 (2013-11-13) x86_64
GNU Octave, version 3.6.4
Octave was configured for "x86_64-pc-linux-gnu".

Octave is installed from Debian package:
octave:amd64 (3.6.4-4) 




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 03 Dec 2013 03:57:43 AM UTC  Name: patch  Size: 476B   By: None

<http://savannah.gnu.org/bugs/download.php?file_id=29764>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?40780>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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