1// Copyright 2019 The ChromiumOS Authors 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5package main 6 7import ( 8 "testing" 9) 10 11const crosNonHardenedGoldenDir = "testdata/cros_nonhardened_golden" 12 13func TestCrosNonHardenedConfig(t *testing.T) { 14 withTestContext(t, func(ctx *testContext) { 15 ctx.NoteTestWritesToUmask() 16 17 useLlvmNext := false 18 useCCache := true 19 cfg, err := getConfig("cros.nonhardened", useCCache, useLlvmNext, "123") 20 if err != nil { 21 t.Fatal(err) 22 } 23 ctx.updateConfig(cfg) 24 25 runGoldenRecords(ctx, crosNonHardenedGoldenDir, createSyswrapperGoldenInputs(ctx)) 26 }) 27} 28