#!/usr/bin/env python3
#
# Copyright 2011-2015 Jeff Bush
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

import sys

sys.path.insert(0, '../..')
import test_harness

test_harness.register_render_test('render_texture', ['main.cpp'],
                                  '2ec4cc681873bc5978617e347d46f3b38230a3a0',
                                  targets=['emulator'])
test_harness.execute_tests()

#!/usr/bin/env python3
#
# Copyright 2011-2015 Jeff Bush
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

import sys

sys.path.insert(0, '../..')
import test_harness

test_harness.register_render_test('render_texture', ['main.cpp'],
                                  'feb853e1a54d4ba2ce394142ea6119d5e401a60b',
                                  targets=['emulator'])
test_harness.execute_tests()

Fix failing test caused by new toolchain
Fix failing test caused by new toolchain

The challenge with floating point values in tests is that the value can
change slightly based on the order of operations, which can legally
be affected by optimizations. The results aren't visible (often just
1 ULP), but the tests validate exact bit patterns.

This test would be more robust if it did a comparison with the target image
and allowed some small amount of variability. Currently it computes a SHA
checksum of the framebuffer.

Updated the checksum for the new toolchain.
