Dmitry V. Levin
25fa79bdb2
* tests/gen_pure_executables.sh: New file. * bootstrap: Invoke it. * tests/Makefile.am: Include pure_executables.am. (check_PROGRAMS): Add $(PURE_EXECUTABLES). Remove everything listed in pure_executables.list. (EXTRA_DIST): Add gen_pure_executables.sh. * tests/.gitignore: Add pure_executables.am.
26 lines
490 B
Bash
Executable File
26 lines
490 B
Bash
Executable File
#!/bin/sh -eu
|
|
|
|
./generate_mpers_am.sh
|
|
./xlat/gen.sh
|
|
./tests/gen_pure_executables.sh
|
|
./tests/gen_tests.sh
|
|
|
|
for m in m32 mx32; do
|
|
tests=tests-$m
|
|
rm -rf $tests
|
|
mkdir $tests
|
|
s='[[:space:]]*'
|
|
sed "s/@arch@/@arch_$m@/;
|
|
s/^MPERS_NAME$s=.*/& $m/;
|
|
s/^ARCH_MFLAGS$s=.*/& -DMPERS_IS_\$(MPERS_NAME) -$m/" \
|
|
tests/Makefile.am > $tests/Makefile.am
|
|
for f in tests/*; do
|
|
case "${f##*/}" in
|
|
Makefile*) continue;;
|
|
esac
|
|
ln -s ../"$f" $tests/
|
|
done
|
|
done
|
|
|
|
exec autoreconf -f -i "$@"
|