diff options
author | rillig <rillig@pkgsrc.org> | 2020-05-02 06:48:59 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2020-05-02 06:48:59 +0000 |
commit | ac8e271685b9b884cf9fed7c7f49406468d795fd (patch) | |
tree | ef5836d9ace1a0514726a4f185de15bf92f1605f /regress | |
parent | 349e894c912dde8d40529cc1611a4b9b4c6136fd (diff) | |
download | pkgsrc-ac8e271685b9b884cf9fed7c7f49406468d795fd.tar.gz |
regress/infra-unittests: add more tests for subst.mk
Having quotes around the sed commands does not change their meaning.
These quotes must not lead to syntax errors when parsing the shell
command. This happened in mk/subst.mk r1.91 because the double quote was
accidentally escaped.
Diffstat (limited to 'regress')
-rw-r--r-- | regress/infra-unittests/subst.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/regress/infra-unittests/subst.sh b/regress/infra-unittests/subst.sh index 71f0847f9e3..ee404ee1508 100644 --- a/regress/infra-unittests/subst.sh +++ b/regress/infra-unittests/subst.sh @@ -1,5 +1,5 @@ #! /bin/sh -# $NetBSD: subst.sh,v 1.30 2020/05/02 05:52:09 rillig Exp $ +# $NetBSD: subst.sh,v 1.31 2020/05/02 06:48:59 rillig Exp $ # # Tests for mk/subst.mk. # @@ -1222,6 +1222,8 @@ if test_case_begin "identity substitution, found in file"; then 'SUBST_CLASSES+= id' \ 'SUBST_FILES.id= file' \ 'SUBST_SED.id= -e s,before,before,' \ + 'SUBST_SED.id+= -e "s,before,before,"' \ + "SUBST_SED.id+= -e 's,before,before,'" \ 'SUBST_NOOP_OK.id= no' \ '' \ '.include "prepare-subst.mk"' \ |