tools: allow testing on multiple architectures with Intel SDE

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
This commit is contained in:
Pablo de Lara
2023-11-30 09:29:07 +00:00
committed by Marcel Cornu
parent 2ca781df19
commit df073be348
2 changed files with 24 additions and 2 deletions

View File

@@ -45,13 +45,17 @@ while [ -n "$1" ]; do
./tools/test_checks.sh
shift ;;
ext )
./tools/test_extended.sh
# Drop first argument, to pass the rest of the arguments to test_extended.sh
shift ;
./tools/test_extended.sh $@
shift ;;
format )
shift ;;
all )
# Drop first argument, to pass the rest of the arguments to test_extended.sh
shift ;
./tools/test_checks.sh
./tools/test_extended.sh
./tools/test_extended.sh $@
shift ;;
* )
echo $0 undefined option: $1

View File

@@ -201,6 +201,24 @@ test_end "noarch_build_random" $?
$MAKE -f Makefile.unx arch=noarch clean
msg+=$'Noarch build: Pass\n'
# Test other implementations with SDE
if [ $(uname -m) == "x86_64" ] && command -V sde64 >/dev/null 2>&1; then
# Compile tests
$MAKE -f Makefile.unx -j $cpus checks
# Loop through architectures
while [ $# -gt 0 ]
do
test_start "SDE test on $1 architecture"
time sde64 -$1 -- $MAKE -f Makefile.unx -j $cpus D="TEST_SEED=$S" check
test_start "SDE test on $1 architecture" $?
# Drop architecture from list, to test the next one
shift;
done
msg+=$'Running tests with SDE: Pass\n'
else
msg+=$'Running tests with SDE: Skip\n'
fi
# Try mingw build
if [ $(uname -m) == "x86_64" ] && command -V x86_64-w64-mingw32-gcc >/dev/null 2>&1; then
test_start "mingw_build"