[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Packaging Jami progress
From: |
Ricardo Wurmus |
Subject: |
Re: Packaging Jami progress |
Date: |
Sun, 22 Dec 2019 08:48:31 +0100 |
User-agent: |
mu4e 1.2.0; emacs 26.3 |
Jan Wielkiewicz <address@hidden> writes:
> The fragment of code I wrote looks like this:
>
> (add-before 'check 'skip-test
> (lambda _
> (substitute* "tests/Makefile"
> (("include $(SRC_PATH)/tests/fate/lavf-container.mak")
> "")) #t))
>
> I also made the git checkout writeable.
> Am I doing something wrong? Should I try deleting the test using
> snippet or just skip all tests using #:tests? #f?
The problem here is that “substitute*” expects regular expressions and
“$”, “(”, “)”, and “.” all have special meaning in a regular expression
context, so they need to be escaped. Escaping is done with a backslash,
but using a backslash in a string in Guile requires another layer of
escaping, so we end up with this expression:
(add-before 'check 'skip-test
(lambda _
(substitute* "tests/Makefile"
(("include \\$\\(SRC_PATH\\)/tests/fate/lavf-container.mak") ""))
#t))
(I did not escap the dot here because it can only match a single
character, a literal dot in this case.)
--
Ricardo
- Re: Packaging Jami progress, (continued)
- Re: Packaging Jami progress, Pierre Neidhardt, 2019/12/10
- Re: Packaging Jami progress, Caleb Ristvedt, 2019/12/10
- Re: Packaging Jami progress, Pierre Neidhardt, 2019/12/10
- Re: Packaging Jami progress, Jan Wielkiewicz, 2019/12/10
- Re: Packaging Jami progress, Caleb Ristvedt, 2019/12/10
- Re: Packaging Jami progress, Jan, 2019/12/11
Re: Packaging Jami progress, Jan Wielkiewicz, 2019/12/15
- Re: Packaging Jami progress, Ricardo Wurmus, 2019/12/15
- Re: Packaging Jami progress, Jan Wielkiewicz, 2019/12/15
- Re: Packaging Jami progress, Jan Wielkiewicz, 2019/12/21
- Re: Packaging Jami progress,
Ricardo Wurmus <=
- Re: Packaging Jami progress, Jan, 2019/12/23
- Re: Packaging Jami progress, Jan, 2019/12/24
- Re: Packaging Jami progress, Efraim Flashner, 2019/12/25
- Re: Packaging Jami progress, Jan Wielkiewicz, 2019/12/27
- Re: Packaging Jami progress, Gábor Boskovits, 2019/12/27
- Re: Packaging Jami progress, Jan Wielkiewicz, 2019/12/27
- Re: Packaging Jami progress, Pierre Neidhardt, 2019/12/28
- Re: Packaging Jami progress, Jan, 2019/12/28
Re: Packaging Jami progress, Jan Wielkiewicz, 2019/12/28
Re: Packaging Jami progress, Pierre Neidhardt, 2019/12/28