1#! /bin/sh 2# Copyright 2018 Google LLC. 3# Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. 4 5if [ -z "$1" ]; then 6 echo "Usage: $0 META.JSON" >&2 7 exit 1 8fi 9 10set -x 11set -e 12META_JSON="$1" 13cd "$(dirname "$0")/../.." 14 15if [ -z "$SKQP_SKIP_INFRA_UPDATE" ]; then 16 go get -u go.skia.org/infra/golden/go/search 17fi 18go run tools/skqp/make_gmkb.go \ 19 "$META_JSON" \ 20 platform_tools/android/apps/skqp/src/main/assets/gmkb 21env GIT_SYNC_DEPS_QUIET=1 python tools/git-sync-deps 22O='out/ndebug' 23mkdir -p $O 24bin/gn gen $O --args='cc="clang" cxx="clang++" is_debug=false' 25ninja -C $O jitter_gms list_gpu_unit_tests 26$O/jitter_gms tools/skqp/bad_gms.txt 27python tools/skqp/make_rendertests_list.py 28rm 'bad.txt' 'good.txt' 29sh tools/skqp/upload_model 30$O/list_gpu_unit_tests \ 31 > platform_tools/android/apps/skqp/src/main/assets/skqp/unittests.txt 32