Skip to content
Snippets Groups Projects
Commit d2c652b4 authored by Virgile Prevosto's avatar Virgile Prevosto Committed by Andre Maroneze
Browse files

Add test case for new option -json-compilation-database

parent 7ee2e445
No related branches found
No related tags found
No related merge requests found
......@@ -1256,6 +1256,10 @@ $(LONELY_TESTS_DYN_FILES): OFLAGS+=$(TEST_DIRS_AS_PLUGIN:%=-I tests/%)
# Tests directories without .ml but that must be tested anyway
PLUGIN_TESTS_LIST += cil
ifeq ("$(HAS_YOJSON)","yes")
PLUGIN_TESTS_LIST += jcdb
endif
##############
# Emacs tags #
##############
......
[
{ "directory": "tests/jcdb",
"command": "/usr/bin/clang++ -DTEST=42",
"file": "jcdb.c"
}
]
/* run.config
OPT: -json-compilation-database @PTEST_DIR@ -print
*/
int main () { return TEST; }
[kernel] Parsing tests/jcdb/jcdb.c (with preprocessing)
/* Generated by Frama-C */
int main(void)
{
int __retres;
__retres = 42;
return __retres;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment