File: test-some-systems

package info (click to toggle)
ccache 4.12.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,188 kB
  • sloc: cpp: 47,282; asm: 28,570; sh: 8,674; ansic: 5,357; python: 685; perl: 68; makefile: 23
file content (63 lines) | stat: -rwxr-xr-x 2,263 bytes parent folder | download
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/sh
#
# This script enables easy checking of some common standard Linux distributions.

set -eu

top_dir="$(dirname "$(realpath "$0")")/.."
build_in_docker="${top_dir}/misc/build-in-docker"
name_filter="${1:-}"

build() {
    local name=$1
    local cc=$2
    local cxx=$3
    local test_cc=$4
    shift 4
    local cmake_params="$*"

    echo "======================================================================"
    echo "=== ${name} ${cc} ${cxx} ${test_cc} ${cmake_params}"

    if [ -n "${name_filter}" ] && [ "${name}" != "${name_filter}" ]; then
        echo "Skipping due to name_filter"
        return
    fi

    if command -v >/dev/null ccache; then
        cmake_params="${cmake_params} -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache"
    fi
    echo "Build in Docker: $name CC=$cc CXX=$cxx TEST_CC=$test_cc CMAKE_PARAMS=\"$*\""
    ASM=$cc CC=$cc CXX=$cxx TEST_CC=$test_cc CMAKE_PARAMS="${cmake_params}" $build_in_docker $name
}

#     NAME         CC     CXX     TEST_CC CMAKE_PARAMS

build alma-8       gcc    g++     gcc     -D DEPS=DOWNLOAD
build alma-8       clang  clang++ clang   -D DEPS=DOWNLOAD

build alma-9       gcc    g++     gcc     -D DEPS=DOWNLOAD
build alma-9       clang  clang++ clang   -D DEPS=DOWNLOAD

build alpine-3.21  gcc    g++     gcc     -D DEPS=DOWNLOAD
build alpine-3.21  clang  clang++ clang   -D DEPS=DOWNLOAD

build debian-11    gcc    g++     gcc     -D DEPS=DOWNLOAD
build debian-11    clang  clang++ clang   -D DEPS=DOWNLOAD

build debian-12    gcc    g++     gcc     -D DEPS=DOWNLOAD
build debian-12    clang  clang++ clang   -D DEPS=DOWNLOAD

build debian-13    gcc    g++     gcc     -D DEPS=DOWNLOAD
build debian-13    clang  clang++ clang   -D DEPS=DOWNLOAD

build fedora-42    gcc    g++     gcc     -D DEPS=DOWNLOAD
build fedora-42    clang  clang++ clang   -D DEPS=DOWNLOAD -D ENABLE_TESTING=OFF # doctest issue #900

build ubuntu-22.04 gcc-11 g++-11  gcc     -D DEPS=DOWNLOAD
build ubuntu-22.04 gcc-12 g++-12  gcc     -D DEPS=DOWNLOAD
build ubuntu-22.04 clang  clang++ clang   -D DEPS=DOWNLOAD

build ubuntu-24.04 gcc-13 g++-13  gcc     -D DEPS=DOWNLOAD
build ubuntu-24.04 gcc-14 g++-14  gcc     -D DEPS=DOWNLOAD
build ubuntu-24.04 clang  clang++ clang   -D DEPS=DOWNLOAD