diff mbox series

[v1,08/26] .travis.yml: add clang ubsan job

Message ID 20190530101603.22254-9-alex.bennee@linaro.org
State New
Headers show
Series testing/next queue (iotests, docker, tests/vm) | expand

Commit Message

Alex Bennée May 30, 2019, 10:15 a.m. UTC
We document this on our wiki and we might as well catch it in our CI
rather than waiting for it to be picked up on merge:

  https://wiki.qemu.org/Testing#clang_UBSan

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
 .travis.yml | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Philippe Mathieu-Daudé May 31, 2019, 6:21 a.m. UTC | #1
On 5/30/19 12:15 PM, Alex Bennée wrote:
> We document this on our wiki and we might as well catch it in our CI
> rather than waiting for it to be picked up on merge:
> 
>   https://wiki.qemu.org/Testing#clang_UBSan
> 
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
> ---
>  .travis.yml | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/.travis.yml b/.travis.yml
> index f0aa37f2d12..2f1658602ed 100644
> --- a/.travis.yml
> +++ b/.travis.yml
> @@ -152,6 +152,13 @@ matrix:
>        compiler: clang
>  
>  
> +    - env:
> +        - CONFIG="--target-list=${MAIN_SOFTMMU_TARGETS} "
> +      compiler: clang
> +      before_script:
> +        - ./configure ${CONFIG} --extra-cflags="-fsanitize=undefined -Werror" || { cat config.log && exit 1; }
> +
> +
>      - env:
>          - CONFIG="--disable-user --target-list-exclude=${MAIN_SOFTMMU_TARGETS}"
>        compiler: clang
> 

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
diff mbox series

Patch

diff --git a/.travis.yml b/.travis.yml
index f0aa37f2d12..2f1658602ed 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -152,6 +152,13 @@  matrix:
       compiler: clang
 
 
+    - env:
+        - CONFIG="--target-list=${MAIN_SOFTMMU_TARGETS} "
+      compiler: clang
+      before_script:
+        - ./configure ${CONFIG} --extra-cflags="-fsanitize=undefined -Werror" || { cat config.log && exit 1; }
+
+
     - env:
         - CONFIG="--disable-user --target-list-exclude=${MAIN_SOFTMMU_TARGETS}"
       compiler: clang