Tests: Added compat tests in Makefile.in#27
Open
BrunoASMauricio wants to merge 3 commits into
Open
Conversation
Added ability to run compatibility tests within build system.
Control of the testsuite is done by setting environment variables.
The main ones are:
- GCC_COMPAT_GCC_OPTIONS: GCC flags
- GCC_COMPAT_EXTRA_GCC_OPTIONS: GCC flags to be appended to the defaults
- GCC_COMPAT_ALT_PATH: Path to alternate compiler binary (if not present, GCC
self-tests)
- GCC_COMPAT_ALT_OPTIONS: Alt compiler flags
If the ALT_PATH contains ccac (MetaWare), the following variables can be used:
- GCC_METAWARE_ROOT: Path to metaware root. Adds -lmw and appropriate -L to
GCC_COMPAT_GCC_OPTIONS
- GCC_COMPAT_ALT_OPTIONS has default values depending on the target
Signed-off-by: BrunoASMauricio <brunoasmauricio@gmail.com>
Revised the approach for enabling compatibility tests by introducing a new configuration option, --enable-compat-tests. Expanded CPU architecture (ARCHS) support for GCC compatibility tests and resolved issues related to the ARCv3 path. The -SKIP_ATTRIBUTE flag, which was used to prevent tests involving packed structures and potential unaligned access errors from running, has been removed. This change was made because, in addition to the initial execution of the compat.exp testsuite, a second testsuite, struct-layout-1.exp, relies on the compat.exp testsuite, and several tests were failing as a result of this interdependence. For running only the GCC compatibility tests, use this command: ``` make check-gcc RUNTESTFLAGS="compat.exp" -j$(nproc) ``` Please note that compatibility tests are exclusively supported for the Baremetal toolchain distribution. Signed-off-by: Luis Silva <luis.m.silva99@hotmail.com>
Signed-off-by: Luis Silva <luis.m.silva99@hotmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added ability to run compatibility tests within build system. Control of the testsuite is done by setting environment variables. The main ones are:
GCC_COMPAT_GCC_OPTIONS: GCC flags
GCC_COMPAT_EXTRA_GCC_OPTIONS: GCC flags to be appended to the defaults
GCC_COMPAT_ALT_PATH: Path to alternate compiler binary (if not present, GCC self-tests)
If the ALT_PATH contains ccac (MetaWare), the following variables can be used:
GCC_METAWARE_ROOT: Path to metaware root. Adds -lmw and appropriate -L to GCC_COMPAT_GCC_OPTIONS
GCC_COMPAT_ALT_OPTIONS has default values depending on the target