mirror of
https://github.com/Genymobile/scrcpy
synced 2025-08-31 14:25:56 +00:00
Run tests with ASAN enabled
This may capture more errors (like
e2ef39fae5
).
This commit is contained in:
@@ -1,13 +1,18 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# build and test locally
|
# test locally
|
||||||
|
TESTDIR=build_test
|
||||||
|
rm -rf "$TESTDIR"
|
||||||
|
# run client tests with ASAN enabled
|
||||||
|
meson "$TESTDIR" -Db_sanitize=address
|
||||||
|
ninja -C"$TESTDIR" test
|
||||||
|
|
||||||
BUILDDIR=build_release
|
BUILDDIR=build_release
|
||||||
rm -rf "$BUILDDIR"
|
rm -rf "$BUILDDIR"
|
||||||
meson "$BUILDDIR" --buildtype release --strip -Db_lto=true
|
meson "$BUILDDIR" --buildtype release --strip -Db_lto=true
|
||||||
cd "$BUILDDIR"
|
cd "$BUILDDIR"
|
||||||
ninja
|
ninja
|
||||||
ninja test
|
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
# build Windows releases
|
# build Windows releases
|
||||||
|
Reference in New Issue
Block a user