Skip to content

Instantly share code, notes, and snippets.

@bdbaddog
Created April 1, 2021 18:39
Show Gist options
  • Save bdbaddog/f31567cfa85312eda5307bf203c217c0 to your computer and use it in GitHub Desktop.
Save bdbaddog/f31567cfa85312eda5307bf203c217c0 to your computer and use it in GitHub Desktop.
parser_src = ["src/weebparse.c", "src/weebutil.c"]
lextest_defines = ["MOCKA_TESTVARS"]
if "CPP_DEFINES" in env:
lextest_defines += env["CPP_DEFINES"]
printwrap_def = lextest_defines + ["INI_PRINT"]
printwrap_env = env.Clone(
CFLAGS=env["CCFLAGS"],
CPPDEFINES=printwrap_def + ["TEST_WEEBPARSE_GOOD1"],
SHOBJPREFIX="twg_",
OBJPREFIX="twg_",
)
test_weebparse_good1 = printwrap_env.Program(
target="src/t/test_weebparse_good1.t",
source=parser_src + ["src/t/test_weebparse.c"],
)
test_weebparse_badfiles = env.Program(
target="src/t/test_weebparse_badfiles.t",
source=parser_src + ["src/t/test_weebparse_badfiles.c"],
CFLAGS=env["CCFLAGS"],
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment