xref: /openbmc/qemu/tests/docker/test-debug (revision 3f9747a7)
111545663SMarc-André Lureau#!/bin/bash -e
211545663SMarc-André Lureau#
302f769b7SMarc-André Lureau# Compile and check with clang & --enable-debug --enable-sanitizers.
411545663SMarc-André Lureau#
511545663SMarc-André Lureau# Copyright (c) 2016-2018 Red Hat Inc.
611545663SMarc-André Lureau#
711545663SMarc-André Lureau# Authors:
811545663SMarc-André Lureau#  Fam Zheng <famz@redhat.com>
911545663SMarc-André Lureau#  Marc-André Lureau <marcandre.lureau@redhat.com>
1011545663SMarc-André Lureau#
1111545663SMarc-André Lureau# This work is licensed under the terms of the GNU GPL, version 2
1211545663SMarc-André Lureau# or (at your option) any later version. See the COPYING file in
1311545663SMarc-André Lureau# the top-level directory.
1411545663SMarc-André Lureau
1511545663SMarc-André Lureau. common.rc
1611545663SMarc-André Lureau
1711545663SMarc-André Lureaurequires clang asan
1811545663SMarc-André Lureau
1911545663SMarc-André Lureaucd "$BUILD_DIR"
2011545663SMarc-André Lureau
2111545663SMarc-André LureauOPTS="--cxx=clang++ --cc=clang --host-cc=clang"
2202f769b7SMarc-André LureauOPTS="--enable-debug --enable-sanitizers $OPTS"
2311545663SMarc-André Lureau
2411545663SMarc-André Lureaubuild_qemu $OPTS
25*3f9747a7SAlex Bennéecheck_qemu check V=1
2611545663SMarc-André Lureauinstall_qemu
27