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

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

[Octave-bug-tracker] [bug #41298] pkg install: automatically extract %!t


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #41298] pkg install: automatically extract %!tests and install both extracted and fixed test files
Date: Thu, 5 Nov 2020 12:09:37 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36 Edg/86.0.622.63

Update of bug #41298 (project octave):

                  Status:         Patch Submitted => Ready For Test         

    _______________________________________________________

Follow-up Comment #44:

I don't understand why we would need this hunk:

diff -r 119cf4c7ea4d -r b54f0f563667 scripts/testfun/test.m
--- a/scripts/testfun/test.m    Fri Dec 27 22:23:00 2019 +0100
+++ b/scripts/testfun/test.m    Fri Dec 27 22:56:24 2019 +0100
@@ -207,12 +207,12 @@
 
   ## Locate the file to test.
   __file = file_in_loadpath (__name, "all");
-  if (isempty (__file))
-    __file = file_in_loadpath ([__name ".m"], "all");
-  endif
-  if (isempty (__file))
-    __file = file_in_loadpath ([__name ".cc"], "all");
-  endif
+  for suffix = {".m", ".cc", "tst"}
+    if (not (isempty (__file)))
+      break
+    endif
+    __file = file_in_loadpath ([__name, suffix{1}], "all");
+  endfor
   if (iscell (__file))
     if (isempty (__file))
       __file = "";



I pushed the remainder (after some minor modifications) here:
https://hg.savannah.gnu.org/hgweb/octave/rev/64d1c7af5b18

Marking as ready for test.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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