Home | History | Annotate | Download | only in platform_BootLockboxServer
      1 # Copyright 2018 The Chromium OS Authors. All rights reserved.
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 AUTHOR = 'apronin'
      6 NAME = 'platform_BootLockboxServer'
      7 PURPOSE = 'Tests the boot lockbox mechanism.'
      8 CRITERIA = 'Fails if the lockbox mechanism does not function as expected.'
      9 TIME = 'SHORT'
     10 TEST_CATEGORY = 'Functional'
     11 TEST_CLASS = 'platform'
     12 TEST_TYPE = 'server'
     13 ATTRIBUTES = "suite:bvt-perbuild"
     14 
     15 DOC = """
     16 This test verifies that boot lockbox mechanism is functional. It tests that
     17 lockbox data can be signed and verified before finalization, but after
     18 finalization it can only be verified.
     19 The client-side platform_BootLockbox test requires that it is run when the
     20 boot lockbox is not locked yet, i.e. before any user has logged in. So, this
     21 server-side test reboots the DUT and calls platform_BootLockbox right after
     22 that.
     23 """
     24 
     25 def run(machine):
     26     client = hosts.create_host(machine)
     27     client_at = autotest.Autotest(client)
     28 
     29     client.reboot()
     30     client_at.run_test('platform_BootLockbox')
     31 
     32 parallel_simple(run, machines)
     33