Bump to ccache 4.4
[platform/upstream/ccache.git] / misc / test-all-systems
1 #!/bin/sh
2 #
3 # While it's obviously quite impossible to support and test every single
4 # distribution, this script enables easy checking of the most common standard
5 # distributions at least.
6
7 set -eu
8
9 build_in_docker=$(dirname $0)/build-in-docker
10
11 build() {
12     local name=$1
13     local cc=$2
14     local cxx=$3
15     local test_cc=$4
16     shift 4
17     echo "Build in Docker: $name CC=$cc CXX=$cxx TEST_CC=$test_cc CMAKE_PARAMS=\"$*\""
18     ASM=$cc CC=$cc CXX=$cxx TEST_CC=$test_cc CMAKE_PARAMS="$*" $build_in_docker $name
19 }
20
21 #     NAME         CC    CXX     TEST_CC CMAKE_PARAMS
22
23 build debian-10    gcc   g++     gcc
24 build debian-10    clang clang++ clang
25
26 build debian-11    gcc   g++     gcc
27 build debian-11    clang clang++ clang
28
29 build ubuntu-18.04 gcc   g++     gcc
30 build ubuntu-18.04 clang clang++ clang
31
32 build ubuntu-20.04 gcc   g++     gcc
33 build ubuntu-20.04 clang clang++ clang
34
35 build centos-7     gcc   g++     gcc     -DWARNINGS_AS_ERRORS=false -DREDIS_STORAGE_BACKEND=OFF
36 build centos-7     gcc   g++     clang   -DWARNINGS_AS_ERRORS=false -DREDIS_STORAGE_BACKEND=OFF
37
38 build centos-8     gcc   g++     gcc
39 build centos-8     clang clang++ clang
40
41 build fedora-32    gcc   g++     gcc
42 build fedora-32    clang clang++ clang
43
44 build alpine-3.8   gcc   g++     gcc
45 build alpine-3.8   gcc   g++     clang
46
47 build alpine-3.14  gcc   g++     gcc
48 build alpine-3.14  clang clang++ clang