blob: a1f399642ff01ba74f5d26519a43c6a220053b60 [file] [log] [blame]
Tom Finegane9d70c92017-05-10 11:31:05 -07001##
2## Copyright (c) 2017, Alliance for Open Media. All rights reserved
3##
4## This source code is subject to the terms of the BSD 2 Clause License and
5## the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
6## was not distributed with this source code in the LICENSE file, you can
7## obtain it at www.aomedia.org/license/software. If the Alliance for Open
8## Media Patent License 1.0 was not distributed with this source code in the
9## PATENTS file, you can obtain it at www.aomedia.org/license/patent.
10##
Tom Finegand1cbd8c2017-05-18 14:14:56 -070011if (NOT GTEST_TOTAL_SHARDS OR "${GTEST_SHARD_INDEX}" STREQUAL ""
12 OR NOT TEST_LIBAOM)
Tom Finegane9d70c92017-05-10 11:31:05 -070013 message(FATAL_ERROR
Tom Finegand1cbd8c2017-05-18 14:14:56 -070014 "The variables GTEST_SHARD_INDEX, GTEST_TOTAL_SHARDS and TEST_LIBAOM
15 must be defined.")
Tom Finegane9d70c92017-05-10 11:31:05 -070016endif ()
17
18set($ENV{GTEST_SHARD_INDEX} ${GTEST_SHARD_INDEX})
19set($ENV{GTEST_TOTAL_SHARDS} ${GTEST_TOTAL_SHARDS})
Tom Finegand5aff9d2017-07-13 13:02:38 -070020execute_process(COMMAND ${TEST_LIBAOM} RESULT_VARIABLE test_result)
21set(test_message "Test shard ${GTEST_SHARD_INDEX}/${GTEST_TOTAL_SHARDS} result")
22message("${test_message}: ${test_result}")