1# Copyright (c) 2011 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
5AUTHOR = "Chrome OS Team"
6NAME = "platform_ToolchainOptions"
7PURPOSE = """
8Verify that system ELF executables were compiled with a
9 hardened toolchain.
10"""
11CRITERIA = """
12Fail if we find any ELF files compiled without the following options:
131. -fstack-protector-all
142. -D_FORTIFY_SOURCE=2
153. -Wl,-z,now
164. -Wl,-z,relro
175. -fPIE
18"""
19ATTRIBUTES = "suite:bvt-cq, suite:toolchain-tests"
20TEST_CLASS = "platform"
21TEST_CATEGORY = "Functional"
22TEST_TYPE = "client"
23TIME="MEDIUM"
24JOB_RETRIES = 2
25
26DOC = """
27Tests whether system ELF executables were compiled with a hardened toolchain.
28"""
29
30job.run_test("platform_ToolchainOptions", args=args)
31