]> git.proxmox.com Git - mirror_qemu.git/blame - tests/docker/test-clang
tests/qtest: add tests for ADM1272 device model
[mirror_qemu.git] / tests / docker / test-clang
CommitLineData
c8908570
FZ
1#!/bin/bash -e
2#
3# Compile and check with clang.
4#
5# Copyright (c) 2016 Red Hat Inc.
6#
7# Authors:
8# Fam Zheng <famz@redhat.com>
9#
10# This work is licensed under the terms of the GNU GPL, version 2
11# or (at your option) any later version. See the COPYING file in
12# the top-level directory.
13
14. common.rc
15
16requires clang
17
c16fe84f
FZ
18cd "$BUILD_DIR"
19
9e5ef164
PB
20OPTS="--cxx=clang++ --cc=clang --host-cc=clang"
21OPTS="$OPTS --extra-cflags=-fsanitize=undefined \
22 --extra-cflags=-fno-sanitize=float-divide-by-zero"
c8908570 23build_qemu $OPTS
3f9747a7 24check_qemu
62838478 25install_qemu