blob: 80c91fb1137ff7628c8e3cac4e3dc8f3b667657d [file] [log] [blame]
J. Richard Barnettef2184742013-11-07 15:59:01 -08001#!/bin/bash
2# Copyright (c) 2013 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
Chinglin Yue559b122021-01-07 18:56:06 +08006SCRIPT_ROOT=$(dirname "$(readlink -f "$0")")
7SCRIPT=${SCRIPT_ROOT}/performance/bootperf-bin/$(basename "$0")
J. Richard Barnettef2184742013-11-07 15:59:01 -08008
Chinglin Yue559b122021-01-07 18:56:06 +08009if [ ! -f "${SCRIPT}" ]; then
10 echo "${SCRIPT} not found."
11 echo "This script must be run inside the chroot. Aborting"
J. Richard Barnettef2184742013-11-07 15:59:01 -080012 exit 1
13fi
14
Chinglin Yue559b122021-01-07 18:56:06 +080015exec "${SCRIPT}" "$@"