Home | History | Annotate | Download | only in skqp
      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 
      5 if [ -z "$1" ]; then
      6     echo "Usage: $0 META.JSON" >&2
      7     exit 1
      8 fi
      9 
     10 set -x
     11 set -e
     12 META_JSON="$1"
     13 cd "$(dirname "$0")/../.."
     14 
     15 if [ -z "$SKQP_SKIP_INFRA_UPDATE" ]; then
     16     go get -u go.skia.org/infra/golden/go/search
     17 fi
     18 go run tools/skqp/make_gmkb.go \
     19     "$META_JSON" \
     20     platform_tools/android/apps/skqp/src/main/assets/gmkb
     21 env GIT_SYNC_DEPS_QUIET=1 python tools/git-sync-deps
     22 O='out/ndebug'
     23 mkdir -p $O
     24 bin/gn gen $O --args='cc="clang" cxx="clang++" is_debug=false'
     25 ninja -C $O jitter_gms list_gpu_unit_tests
     26 $O/jitter_gms tools/skqp/bad_gms.txt
     27 python tools/skqp/make_rendertests_list.py
     28 rm 'bad.txt' 'good.txt'
     29 sh tools/skqp/upload_model
     30 $O/list_gpu_unit_tests \
     31     > platform_tools/android/apps/skqp/src/main/assets/skqp/unittests.txt
     32