aboutsummaryrefslogtreecommitdiff
path: root/compiler_wrapper/cros_nonhardened_config_test.go
diff options
context:
space:
mode:
authorTobias Bosch <tbosch@google.com>2019-08-13 09:04:46 -0700
committerTobias Bosch <tbosch@google.com>2019-08-13 18:42:04 +0000
commitcaf583bca202cd1c5b3ae75e03073cba105f5e6d (patch)
tree6c37e64f7fef117a1cd8103466ca445bab153a58 /compiler_wrapper/cros_nonhardened_config_test.go
parentb30a1ed8f990b24980ca5c6ceeaedfb806c48521 (diff)
downloadtoolchain-utils-caf583bca202cd1c5b3ae75e03073cba105f5e6d.tar.gz
Create a goldenfile for every section.
Previously, a golden file contained multiple names sections. This change splits these into separate files, making changes easier to compare. BUG=chromium:773875 TEST=unit test Change-Id: Icffec335601297f504f98c4ff1654238f7838080 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/1752523 Tested-by: Tobias Bosch <tbosch@google.com> Reviewed-by: George Burgess <gbiv@chromium.org>
Diffstat (limited to 'compiler_wrapper/cros_nonhardened_config_test.go')
-rw-r--r--compiler_wrapper/cros_nonhardened_config_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler_wrapper/cros_nonhardened_config_test.go b/compiler_wrapper/cros_nonhardened_config_test.go
index 2753e306..41e3d7c9 100644
--- a/compiler_wrapper/cros_nonhardened_config_test.go
+++ b/compiler_wrapper/cros_nonhardened_config_test.go
@@ -9,13 +9,13 @@ import (
)
const oldNonHardenedWrapperPathForTest = "/usr/x86_64-pc-linux-gnu/arm-none-eabi/gcc-bin/4.9.x/sysroot_wrapper"
-const crosNonHardenedGoldenFile = "testdata/cros_nonhardened_golden.json"
+const crosNonHardenedGoldenDir = "testdata/cros_nonhardened_golden"
func TestCrosNonHardenedConfig(t *testing.T) {
withTestContext(t, func(ctx *testContext) {
useCCache := true
ctx.updateConfig(oldNonHardenedWrapperPathForTest, getCrosNonHardenedConfig(useCCache))
- runGoldenRecords(ctx, crosNonHardenedGoldenFile, createSyswrapperGoldenInputs(ctx))
+ runGoldenRecords(ctx, crosNonHardenedGoldenDir, createSyswrapperGoldenInputs(ctx))
})
}