GNU bug report logs -
#34531
Guix profile fails on Overdrive 1000
Previous Next
Reported by: Andreas Enge <andreas <at> enge.fr>
Date: Mon, 18 Feb 2019 20:07:01 UTC
Severity: normal
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
First somewhat working version attached...
It finds 1387 tests in 328 suites.
The original finds 2611 tests in 349 suites.
That's because skip-comments is somehow broken.
An example where it has an error very early is tests/core/futils.c :
(use-modules (ice-9 ftw))
(use-modules (ice-9 regex))
(use-modules (ice-9 getopt-long))
(use-modules (ice-9 rdelim))
(use-modules (ice-9 match))
(use-modules (ice-9 textual-ports))
(use-modules (srfi srfi-1))
(define fname "test/core/futils.c")
(define s (call-with-input-file fname get-string-all))
(define (replace needle replacement haystack)
"Replace all occurences of NEEDLE in HAYSTACK by REPLACEMENT.
NEEDLE is a regular expression."
(regexp-substitute/global #f needle haystack 'pre replacement 'post))
(define (skip-comments text)
(replace (string-append "//[^\n]*?|"
"/[*].*?[*]/|"
"'([.]|[^'])*?'|"
"\"([.]|[^\"])*?\"")
"" text))
(write (skip-comments s)) ; very short, for some reason
[generate.scm (text/x-scheme, attachment)]
[Message part 3 (application/pgp-signature, inline)]
This bug report was last modified 6 years and 52 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.