From db40c3f869cbee0d02ad5aff4519c72c9476e141 Mon Sep 17 00:00:00 2001 From: Akim Demaille <akim@lrde.epita.fr> Date: Thu, 1 Aug 2013 16:11:27 +0200 Subject: [PATCH] tests: minor change to make it easier to test other skeletons * tests/c++.at (Variants): Pass the skeleton as argument. --- tests/c++.at | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/tests/c++.at b/tests/c++.at index 96f2ac1d..e4c527c1 100644 --- a/tests/c++.at +++ b/tests/c++.at @@ -174,11 +174,10 @@ AT_CLEANUP m4_pushdef([AT_TEST], [AT_SETUP([Variants $1]) -AT_BISON_OPTION_PUSHDEFS([%skeleton "lalr1.cc" %debug $1]) +AT_BISON_OPTION_PUSHDEFS([%debug $1]) # Store strings and integers in a list of strings. AT_DATA_GRAMMAR([list.y], [[%debug -%skeleton "lalr1.cc" %define api.value.type variant ]m4_bpatsubst([$1], [\\n], [ ])[ @@ -320,13 +319,13 @@ AT_BISON_OPTION_POPDEFS AT_CLEANUP ]) -AT_TEST([]) -AT_TEST([%define parse.assert]) -AT_TEST([%locations %define parse.assert]) -AT_TEST([[%define parse.assert %code {\n#define TWO_STAGE_BUILD\n}]]) -AT_TEST([[%define parse.assert %define api.token.constructor]]) -AT_TEST([[%define parse.assert %define api.token.constructor %define api.token.prefix {TOK_}]]) -AT_TEST([[%locations %define parse.assert %define api.token.constructor %define api.token.prefix {TOK_}]]) +AT_TEST([[%skeleton "lalr1.cc" ]]) +AT_TEST([[%skeleton "lalr1.cc" %define parse.assert]]) +AT_TEST([[%skeleton "lalr1.cc" %locations %define parse.assert]]) +AT_TEST([[%skeleton "lalr1.cc" %define parse.assert %code {\n#define TWO_STAGE_BUILD\n}]]) +AT_TEST([[%skeleton "lalr1.cc" %define parse.assert %define api.token.constructor]]) +AT_TEST([[%skeleton "lalr1.cc" %define parse.assert %define api.token.constructor %define api.token.prefix {TOK_}]]) +AT_TEST([[%skeleton "lalr1.cc" %locations %define parse.assert %define api.token.constructor %define api.token.prefix {TOK_}]]) m4_popdef([AT_TEST]) -- 2.45.2