Skip to content

Commit e1c6a46

Browse files
committed
build-gnu: fix factor tests being re-added by automake during make check
1 parent dec633c commit e1c6a46

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

util/build-gnu.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ else
140140

141141
# Handle generated factor tests
142142
t_first=00
143-
t_max=37
143+
t_max=40
144144
seq=$(
145145
i=${t_first}
146146
while test "${i}" -le "${t_max}"; do
@@ -149,8 +149,8 @@ else
149149
done
150150
)
151151
for i in ${seq}; do
152-
echo "strip t${i}.sh from Makefile"
153-
sed -i -e "s/\$(tf)\/t${i}.sh//g" Makefile
152+
echo "strip t${i}.sh from Makefile and tests/local.mk"
153+
sed -i -e "s/\$(tf)\/t${i}.sh//g" Makefile tests/local.mk
154154
done
155155

156156
# Remove tests checking for --version & --help
@@ -159,6 +159,11 @@ else
159159
touch gnu-built
160160
fi
161161

162+
# Keep Makefile.in newer than the local.mk files we just modified,
163+
# and Makefile newer than Makefile.in, so make won't re-run
164+
# automake or config.status and undo our edits.
165+
touch Makefile.in Makefile
166+
162167
grep -rl 'path_prepend_' tests/* | xargs -r "${SED}" -i 's| path_prepend_ ./src||'
163168
# path_prepend_ sets $abs_path_dir_: set it manually instead.
164169
grep -rl '\$abs_path_dir_' tests/*/*.sh | xargs -r "${SED}" -i "s|\$abs_path_dir_|${UU_BUILD_DIR//\//\\/}|g"

0 commit comments

Comments
 (0)