зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1685957 - Use xargs to test non-unified builds. r=andi
Passing all the directories to mach allows to take more advantage of parallelism (plus not having to start up mach and the whole export once for every directory, which itself takes a bit of time) This takes: GECKO_PATH=. taskcluster/scripts/misc/source-test-clang-non-unified.sh from about ten mins to under two minutes on my machine. Differential Revision: https://phabricator.services.mozilla.com/D101320
This commit is contained in:
Родитель
40dc6e911d
Коммит
c60fdae7a4
|
@ -2,12 +2,4 @@
|
|||
|
||||
NON_UNIFIED_CFG=$GECKO_PATH/build/non-unified-compat
|
||||
|
||||
while IFS= read -r directory
|
||||
do
|
||||
echo "Running non-unified compile test for: $directory"
|
||||
./mach static-analysis check-syntax $directory
|
||||
if [ $? -ne 0 ]; then
|
||||
# If failure do not continue with the rest of the directories
|
||||
exit 1
|
||||
fi
|
||||
done < $NON_UNIFIED_CFG
|
||||
cat "$NON_UNIFIED_CFG" | xargs ./mach static-analysis check-syntax
|
||||
|
|
Загрузка…
Ссылка в новой задаче