Disable the flang autopkgtests on unsupported architectures

This commit is contained in:
Sylvestre Ledru 2023-03-12 11:20:27 +01:00
parent 33f02a8a94
commit 8832846d53
2 changed files with 30 additions and 18 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
llvm-toolchain-15 (1:15.0.7-3) unstable; urgency=medium
* Disable the flang autopkgtests on unsupported architectures
-- Sylvestre Ledru <sylvestre@debian.org> Sun, 12 Mar 2023 11:19:54 +0100
llvm-toolchain-15 (1:15.0.7-2) unstable; urgency=medium llvm-toolchain-15 (1:15.0.7-2) unstable; urgency=medium
[ Sylvestre Ledru ] [ Sylvestre Ledru ]

View File

@ -1077,6 +1077,8 @@ g++ -nostdinc++ -I/usr/lib/llvm-$VERSION/bin/../include/c++/v1/ -L/usr/lib/llvm-
./o > /dev/null ./o > /dev/null
fi fi
if dpkg -l|grep -q flang-$VERSION; then
echo "Testing flang-$VERSION (Fortran) ..." echo "Testing flang-$VERSION (Fortran) ..."
echo 'program math echo 'program math
implicit none implicit none
@ -1117,6 +1119,10 @@ if ! grep -q "Hello, World!" foo.log 2>&1; then
exit -1 exit -1
fi fi
rm -f foo.log foo.f90 foo libflib.so rm -f foo.log foo.f90 foo libflib.so
else
echo "Skipping esting flang-$VERSION (Fortran) ..."
echo "doesn't exist on this arch"
fi
# libclc # libclc
echo "Testing libclc-$VERSION-dev ..." echo "Testing libclc-$VERSION-dev ..."