tests: workaround test not failing if the Spot support more colors

* configure.ac (MAX_ACCSETS): Add AC_SUBST.
* tests/run.in: Define MAX_ACCSETS.
* tests/core/prodchain.test: Test MAX_ACCSETS.
This commit is contained in:
Alexandre Duret-Lutz 2022-06-21 14:24:08 +02:00
parent 23908f3d2f
commit 8161a8c531
3 changed files with 13 additions and 5 deletions

View file

@ -79,6 +79,7 @@ if test 0 -eq `expr $enable_max_accsets % $default_max_accsets`
then
AC_DEFINE_UNQUOTED([MAX_ACCSETS], [$enable_max_accsets],
[The maximal number of acceptance sets supported (also known as acceptance marks)])
AC_SUBST([MAX_ACCSETS], [$enable_max_accsets])
else
AC_MSG_ERROR([The argument of --enable-max-accsets must be a multiple of $default_max_accsets])
fi