mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-07-27 11:41:39 +00:00
Disable the flang autopkgtests on unsupported architectures
This commit is contained in:
parent
33f02a8a94
commit
8832846d53
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -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 ]
|
||||||
|
42
debian/qualify-clang.sh
vendored
42
debian/qualify-clang.sh
vendored
@ -1077,8 +1077,10 @@ g++ -nostdinc++ -I/usr/lib/llvm-$VERSION/bin/../include/c++/v1/ -L/usr/lib/llvm-
|
|||||||
./o > /dev/null
|
./o > /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Testing flang-$VERSION (Fortran) ..."
|
|
||||||
echo 'program math
|
if dpkg -l|grep -q flang-$VERSION; then
|
||||||
|
echo "Testing flang-$VERSION (Fortran) ..."
|
||||||
|
echo 'program math
|
||||||
implicit none
|
implicit none
|
||||||
real :: x, y
|
real :: x, y
|
||||||
x = 3.14
|
x = 3.14
|
||||||
@ -1086,15 +1088,15 @@ echo 'program math
|
|||||||
print *, "x + y = ", x + y
|
print *, "x + y = ", x + y
|
||||||
end program math
|
end program math
|
||||||
' > foo.f90
|
' > foo.f90
|
||||||
flang-new-$VERSION foo.f90 -o foo && ./foo &> foo.log
|
flang-new-$VERSION foo.f90 -o foo && ./foo &> foo.log
|
||||||
if ! grep -q "x + y =" foo.log 2>&1; then
|
if ! grep -q "x + y =" foo.log 2>&1; then
|
||||||
echo "flang: Could not find the expected output"
|
echo "flang: Could not find the expected output"
|
||||||
exit -1
|
exit -1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# testing with a shared libraries
|
# testing with a shared libraries
|
||||||
echo '
|
echo '
|
||||||
module hello_world
|
module hello_world
|
||||||
contains
|
contains
|
||||||
subroutine say_hello()
|
subroutine say_hello()
|
||||||
@ -1102,21 +1104,25 @@ module hello_world
|
|||||||
end subroutine say_hello
|
end subroutine say_hello
|
||||||
end module hello_world
|
end module hello_world
|
||||||
' > lib.f90
|
' > lib.f90
|
||||||
flang-new-$VERSION -c lib.f90 -fpie
|
flang-new-$VERSION -c lib.f90 -fpie
|
||||||
flang-new-$VERSION -shared -fpie -o libflib.so lib.o
|
flang-new-$VERSION -shared -fpie -o libflib.so lib.o
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
program main
|
program main
|
||||||
use hello_world
|
use hello_world
|
||||||
call say_hello()
|
call say_hello()
|
||||||
end program main' > foo.f90
|
end program main' > foo.f90
|
||||||
flang-new-$VERSION foo.f90 -L. -lflib -o foo
|
flang-new-$VERSION foo.f90 -L. -lflib -o foo
|
||||||
LD_LIBRARY_PATH=. ./foo &> foo.log
|
LD_LIBRARY_PATH=. ./foo &> foo.log
|
||||||
if ! grep -q "Hello, World!" foo.log 2>&1; then
|
if ! grep -q "Hello, World!" foo.log 2>&1; then
|
||||||
echo "flang: lib didn't work"
|
echo "flang: lib didn't work"
|
||||||
exit -1
|
exit -1
|
||||||
|
fi
|
||||||
|
rm -f foo.log foo.f90 foo libflib.so
|
||||||
|
else
|
||||||
|
echo "Skipping esting flang-$VERSION (Fortran) ..."
|
||||||
|
echo "doesn't exist on this arch"
|
||||||
fi
|
fi
|
||||||
rm -f foo.log foo.f90 foo libflib.so
|
|
||||||
|
|
||||||
# libclc
|
# libclc
|
||||||
echo "Testing libclc-$VERSION-dev ..."
|
echo "Testing libclc-$VERSION-dev ..."
|
||||||
|
Loading…
Reference in New Issue
Block a user