blob: ea4536b90a80b498b394614ad3fa95f73238160a [file] [log] [blame]
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Extract preview thumbnails from the raw test images.
rm -f tests.result.txt tests.log
node tests tests.html $* | tee tests.log | \
grep --text "^test: images/" > tests.result.txt
# Compare their properties to the golden file values.
if [[ $(cmp tests.result.txt images.golden.txt 2>&1) ]]; then
echo "tests FAIL" || exit 1
echo "tests PASS"