From ae69805df18dcd73865b68ef4337b6a17dd25e15 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 4 Nov 2025 09:06:32 -0800 Subject: tests: Add a basic test for the codegen implementation code This just tests that it works, so it catches the previous bug. Not sure how to test this more thoroughly. --- test cases/frameworks/8 flex/meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test cases/frameworks/8 flex/meson.build b/test cases/frameworks/8 flex/meson.build index 32eb89de9..0b1107010 100644 --- a/test cases/frameworks/8 flex/meson.build +++ b/test cases/frameworks/8 flex/meson.build @@ -1,7 +1,7 @@ # SPDX-License-Identifier: Apache-2.0 # Copyright © 2024-2025 Intel Corporation -project('flex and bison', 'c') +project('flex and bison', 'c', meson_version : '>= 1.10.0') # The point of this test is that one generator # may output headers that are necessary to build @@ -22,9 +22,11 @@ endif codegen = import('unstable-codegen') lex = codegen.lex(implementations : ['flex', 'reflex', 'lex']) +message('lex implementation:', lex.implementation()) lfiles = lex.generate('lexer.l') yacc = codegen.yacc(implementations : ['byacc', 'bison', 'yacc']) +message('yacc implementation:', yacc.implementation()) pfiles = yacc.generate('parser.y', header : '@BASENAME@.tab.h') e = executable( -- cgit v1.2.3