Lines Matching +full:ninja +full:- +full:bin
1 #!/bin/bash -eu
9 # http://www.apache.org/licenses/LICENSE-2.0
17 set -e
20 # changes to the generated ninja files. This is to reduce the effort required to be confident
32 Usage: diff_build_graphs.sh [--products=product1,product2...] <OLD_VERSIONS> <NEW_VERSIONS>
35 product and for both sets of versions, and checks whether the ninja files (which implement
41 --products=PRODUCTS comma-separated list of products to check"
50 arg="${1-}"
52 --products=*) PRODUCTS_ARG="$arg";;
74 OUT_DIR="${OUT_DIR-}"
75 if [ -z "$OUT_DIR" ]; then
90 git -C "$project" checkout "$ref"
100 # find multiproduct_kati and have it build the ninja files for each product
101 builder="$(echo $OUT_DIR/soong/host/*/bin/multiproduct_kati)"
102 BUILD_NUMBER=sample "$builder" $PRODUCTS_ARG --keep --out "$OUT_DIR_TEMP" || true
115 unzip -qq "$zip1" -d "$unzipped1"
116 unzip -qq "$zip2" -d "$unzipped2"
118 #do a diff of the ninja files
120 …diff -r "$unzipped1" "$unzipped2" -x build_date.txt -x build_number.txt -x '\.*' -x '*.log' -x bui…
121 if [[ -s "$diffFile" ]]; then
123 echo "First few differences (total diff linecount=$(wc -l $diffFile)) for product $product:"
124 cat "$diffFile" | head -n 10
126 rm -rf "$unzipped1" "$unzipped2"
129 rm -rf "$zip1" "$unzipped1" "$zip2" "$unzipped2"
135 rm -rf "$WORK_DIR"
160 …find $OUT_DIR_OLD $OUT_DIR_NEW -mindepth 1 -maxdepth 1 -name "*.zip" | sed "s|^$OUT_DIR_OLD/||" | …