From: Stefano Lattarini Date: Fri, 27 Jul 2012 17:26:11 +0000 (+0200) Subject: [ng] tests: simplify munging of header-vars.am ... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53a810f989871687928fba6b6ebd21c217f13f68;p=thirdparty%2Fautomake.git [ng] tests: simplify munging of header-vars.am ... * t/am-xargs-map.sh, t/ensure-dir-exists.sh, t/internals.tap, t/memoize.tap: ... here, since that files no more contains '@foo@' substitutions nor '?COND?' transforms. Signed-off-by: Stefano Lattarini --- diff --git a/t/am-xargs-map.sh b/t/am-xargs-map.sh index da3621d7d..3d5db397e 100755 --- a/t/am-xargs-map.sh +++ b/t/am-xargs-map.sh @@ -20,14 +20,10 @@ am_create_testdir=empty . ./defs || exit 1 -cp "$am_amdir"/header-vars.am . \ +# Filter out Automake comments. +grep -v '^##' "$am_amdir"/header-vars.am > defn.mk \ || fatal_ "fetching makefile fragment headers-vars.am" -# Filter out Automake comments and things that would need configure -# substitutions. -LC_ALL=C $EGREP -v '(^##|=.*@[a-zA-Z0-9_]+@)' header-vars.am > defn.mk -rm -f header-vars.am - sed 's/^[0-9][0-9]*:://' > Makefile << 'END' 01::include ./defn.mk 02:: diff --git a/t/ensure-dir-exists.sh b/t/ensure-dir-exists.sh index bc396b6d7..5911c0bc6 100755 --- a/t/ensure-dir-exists.sh +++ b/t/ensure-dir-exists.sh @@ -19,14 +19,10 @@ am_create_testdir=empty . ./defs || exit 1 -cp "$am_amdir"/header-vars.am . \ +# Filter out Automake comments. +grep -v '^##' "$am_amdir"/header-vars.am > defn.mk \ || fatal_ "fetching makefile fragment headers-vars.am" -# Filter out Automake comments and things that would need configure -# substitutions. -LC_ALL=C $EGREP -v '(^##|=.*@[a-zA-Z0-9_]+@)' header-vars.am > defn.mk -rm -f header-vars.am - cat > Makefile << 'END' include ./defn.mk diff --git a/t/internals.tap b/t/internals.tap index 90126a76b..6be1cf3d6 100755 --- a/t/internals.tap +++ b/t/internals.tap @@ -21,14 +21,10 @@ am_create_testdir=empty plan_ 10 -cp "$am_amdir"/header-vars.am . \ +# Filter out Automake comments. +grep -v '^##' "$am_amdir"/header-vars.am > defn.mk \ || fatal_ "fetching makefile fragment headers-vars.am" -# Filter out Automake comments and things that would need configure -# substitutions. -LC_ALL=C $EGREP -v '(^##|=.*@[a-zA-Z0-9_]+@)' header-vars.am > defn.mk -rm -f header-vars.am - # WARNING: there are a lot of embedded tabs in this makefile. # DO NOT "NORMALIZE" THEM TO SPACES! cat > Makefile << 'END' diff --git a/t/memoize.tap b/t/memoize.tap index 5e3646bd1..d829918b0 100755 --- a/t/memoize.tap +++ b/t/memoize.tap @@ -23,14 +23,10 @@ plan_ 17 ocwd=$(pwd) || fatal_ "couldn't get current working directory" -cp "$am_amdir"/header-vars.am . \ +# Filter out Automake comments. +grep -v '^##' "$am_amdir"/header-vars.am > defn.mk \ || fatal_ "fetching makefile fragment headers-vars.am" -# Filter out Automake comments and things that would need configure -# substitutions. -LC_ALL=C $EGREP -v '(^##|=.*@[a-zA-Z0-9_]+@)' header-vars.am > defn.mk -rm -f header-vars.am - T () { tcount=$(($tcount + 1))