summaryrefslogtreecommitdiff
path: root/tests/run_vboot_ec_tests.sh
blob: 302a3578a9c0684573714720e84dadd2ffc0487f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash -eu

# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# Run verified boot firmware and kernel verification tests.

# Load common constants and variables.
. "$(dirname "$0")/common.sh"

check_test_keys

for priv in ${TESTKEY_DIR}/*.vbprivk; do
  root=$(basename ${priv%.vbprivk})
  pub="${priv%.vbprivk}.vbpubk"
  echo "Trying $root ..."
  ${TEST_DIR}/vboot_ec_tests "$priv" "$pub"
done