Home | History | Annotate | Download | only in logging_GenerateCrashFiles
      1 # Copyright 2016 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 = "Chromium OS Team"
      6 NAME = "logging_GenerateCrashFiles.KERNEL"
      7 PURPOSE = "Verify that process crash files are generated."
      8 TIME = "SHORT"
      9 TEST_CATEGORY = "Functional"
     10 TEST_CLASS = "logging"
     11 TEST_TYPE = "server"
     12 ATTRIBUTES = "suite:usb_detect,suite:manual_platform_suite"
     13 
     14 DOC = """
     15 Crash process and confirm log files are generated.
     16 """
     17 
     18 def run(machine):
     19     host = hosts.create_host(machine)
     20     crash_cmd = "echo BUG > /sys/kernel/debug/provoke-crash/DIRECT"
     21     crash_files = ["kcrash", "meta"]
     22     prefix = "kernel"
     23     job.run_test("logging_GenerateCrashFiles", host=host,
     24                  crash_cmd=crash_cmd, crash_files=crash_files,
     25                  prefix=prefix, tag="KERNEL")
     26 
     27 parallel_simple(run, machines)
     28 
     29