f0da138c95
also, test building fiddle_main.cpp & draw.cpp GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1895143002 Review URL: https://codereview.chromium.org/1895143002
22 lines
638 B
Bash
Executable File
22 lines
638 B
Bash
Executable File
#!/bin/sh
|
|
# Copyright 2015 Google Inc.
|
|
#
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
# Parse the output of fiddle_main, for use in testing
|
|
while IFS= read -r line; do
|
|
type=$(echo $line | sed -n 's/[^"]*"\([^"]*\)":.*/\1/p')
|
|
if [ "$type" ]; then
|
|
case "$type" in
|
|
Raster|Gpu) ext='.png';;
|
|
Pdf) ext='.pdf';;
|
|
Skp) ext='.skp';;
|
|
esac
|
|
dst="${TMPDIR:-/tmp}/fiddle_${type}${ext}"
|
|
echo $line | sed 's/[^"]*"[^"]*": "//; s/"\(,\|\)$//' \
|
|
| base64 -d > "$dst"
|
|
echo $dst
|
|
fi
|
|
done
|