From 55888c8e18db674bb14ce3b9d586fa21adb28cad Mon Sep 17 00:00:00 2001 From: Lorenz Bauer Date: Fri, 10 May 2024 11:38:01 +0100 Subject: [PATCH] WIP Signed-off-by: Lorenz Bauer --- internal/kconfig/kconfig_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/internal/kconfig/kconfig_test.go b/internal/kconfig/kconfig_test.go index 19f42f745..1c0b2ffbe 100644 --- a/internal/kconfig/kconfig_test.go +++ b/internal/kconfig/kconfig_test.go @@ -53,6 +53,16 @@ func BenchmarkParseFiltered(b *testing.B) { } } +func TestConfigFprobe(t *testing.T) { + f, err := Find() + qt.Assert(t, qt.IsNil(err)) + defer f.Close() + + cfg, err := Parse(f, nil) + qt.Assert(t, qt.IsNil(err)) + qt.Assert(t, qt.Equals(cfg["CONFIG_FPROBE"], "y")) +} + func TestParse(t *testing.T) { t.Parallel()