mozilla / cubeb-coreaudio-rs

The audio backend of Firefox on Mac OS X.
ISC License
25 stars 10 forks source link

Save the duplicate tests and compilings when running sanitizers #52

Closed ChunMinChang closed 4 years ago

ChunMinChang commented 4 years ago

There is no need to call RUSTFLAGS="-Z sanitizer=*" cargo test under coreaudio-sys-utils in run_sanitizers.sh directly since running RUSTFLAGS="-Z sanitizer=address" sh run_tests.sh under the main run those tests indirectly. The tests in the sub crate will run in run_tests.sh.

On the other hand, the run_tests.sh should use cargo * -p <SUB_CRATE> if it's possible. By doing so, the compiling for <SUB_CRATE> can be reused when building for the main crate. It will save plenty of compiling time, especially when compiling the main crate for the sanitizers.