blob: b6d8aacc61b826d0dc8bfe381bbe7d69a2c8ede5 [file] [log] [blame]
Jacob Kopczynski436d1562020-06-21 13:37:23 -07001#!/bin/bash -e
2# Copyright 2020 The Chromium OS Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
Jacob Kopczynski6455fd62020-06-21 13:37:23 -07006set -x
Jacob Kopczynski442ae5c2020-07-20 17:33:33 -07007T_PATH=$(readlink -f ~/trunk/infra/tnull/metadata/known_good_tests.json)
8INV_PATH=$(readlink -f ~/trunk/infra/tnull/metadata/unittests.json)
9tnull generate-full-request -input_json "${T_PATH}" -output_json "${INV_PATH}"
10tnull run-steps -input_json "${INV_PATH}"
11if [ $? ] ; then
Jacob Kopczynski6455fd62020-06-21 13:37:23 -070012 echo "pass"
Jacob Kopczynski6b2ae3c2020-07-20 15:29:14 -070013 exit 0
Jacob Kopczynski6455fd62020-06-21 13:37:23 -070014else
15 echo "fail"
Jacob Kopczynski6b2ae3c2020-07-20 15:29:14 -070016 exit 1
Jacob Kopczynski6455fd62020-06-21 13:37:23 -070017fi