1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
#!/bin/sh
CR="
"
cat <<EoF
Test-Command: cmake -Wno-dev -S debian/tests/cmake -B \$AUTOPKGTEST_TMP
Features: test-name=cmake_find_package_CUB
Depends:
@,
cmake,
g++,
Restrictions:
superficial,
EoF
emit_cub()
{
local cxx="$1"
local std="${2:-17}"
local dep="${cxx},${CR} nvidia-cuda-toolkit-gcc"
local flaky="${CR} flaky,"
local skippable="${CR} skippable,"
case $cxx in
cuda-g++)
dep="nvidia-cuda-toolkit-gcc"
skippable=
;;
esac
cat <<EoF
Test-Command: debian/tests/compile-cub-tests ${cxx} ${std}
Features: test-name=compile_testsuite_${cxx}_C++${std}
Architecture: amd64 arm64 ppc64el
Depends:
@,
cmake,
make,
${dep},
Restrictions:
superficial,${flaky}${skippable}
EoF
}
emit_cub cuda-g++ 17
emit_cub cuda-g++ 14
emit_cub g++-11 17
|