Skip to content
Snippets Groups Projects
Commit b893d0cd authored by Patrick Baudin's avatar Patrick Baudin
Browse files

[Tests] using MODULE directive

parent 9abb2263
No related branches found
No related tags found
No related merge requests found
/* run.config*
EXECNOW: make -s @PTEST_DIR@/big_local_array_script.cmxs
OPT: @EVA_OPTIONS@ -print -journal-disable -eva -report
OPT: @EVA_OPTIONS@ -load-module @PTEST_DIR@/big_local_array_script -then-on prj -print -report
MODULE: big_local_array_script
OPT: @EVA_OPTIONS@ -then-on prj -print -report
MODULE:
OPT: @EVA_OPTIONS@ -print -journal-disable -no-initialized-padding-locals -eva
*/
......
/* run.config
EXECNOW: make -s tests/cil/Change_formals.cmxs
OPT: -load-module tests/cil/Change_formals.cmxs -cpp-extra-args="-DNO_PROTO" -then-on test -print
OPT: -load-module tests/cil/Change_formals.cmxs -cpp-extra-args="-DNO_IMPLEM" -then-on test -print
OPT: -load-module tests/cil/Change_formals.cmxs -then-on test -print
MODULE: Change_formals
OPT: -cpp-extra-args="-DNO_PROTO" -then-on test -print
OPT: -cpp-extra-args="-DNO_IMPLEM" -then-on test -print
OPT: -then-on test -print
*/
#ifndef NO_PROTO
......
/* run.config
EXECNOW: make -s @PTEST_DIR@/@PTEST_NAME@.cmxs
OPT: -json-compilation-database @PTEST_DIR@ -print
OPT: @PTEST_DIR@/jcdb2.c -json-compilation-database @PTEST_DIR@/with_arguments.json -print
OPT: -json-compilation-database @PTEST_DIR@/with_arguments.json -no-autoload-plugins -load-module @PTEST_DIR@/@PTEST_NAME@.cmxs
EXECNOW: LOG list_files.res LOG list_files.err share/analysis-scripts/list_files.py @PTEST_DIR@/compile_commands_working.json > @PTEST_DIR@/result/list_files.res 2> @PTEST_DIR@/result/list_files.err
EXECNOW: LOG logic-pp-include.res LOG logic-pp-include.err @frama-c@ -json-compilation-database @PTEST_DIR@/logic-pp-include @PTEST_DIR@/logic-pp-include/no-stdio.c -print -no-autoload-plugins > @PTEST_DIR@/result/logic-pp-include.res 2> @PTEST_DIR@/result/logic-pp-include.err
OPT: -json-compilation-database @PTEST_DIR@ -print
OPT: @PTEST_DIR@/jcdb2.c -json-compilation-database @PTEST_DIR@/with_arguments.json -print
MODULE: @PTEST_NAME@
OPT: -json-compilation-database @PTEST_DIR@/with_arguments.json -no-autoload-plugins
MODULE:
EXECNOW: LOG list_files.res LOG list_files.err share/analysis-scripts/list_files.py @PTEST_DIR@/compile_commands_working.json > @PTEST_DIR@/result/list_files.res 2> @PTEST_DIR@/result/list_files.err
EXECNOW: LOG logic-pp-include.res LOG logic-pp-include.err @frama-c@ -json-compilation-database @PTEST_DIR@/logic-pp-include @PTEST_DIR@/logic-pp-include/no-stdio.c -print -no-autoload-plugins > @PTEST_DIR@/result/logic-pp-include.res 2> @PTEST_DIR@/result/logic-pp-include.err
*/
#include <stdio.h>
#ifdef TOUNDEF
......
/* run.config*
EXECNOW: make -s @PTEST_DIR@/check_libc_naming_conventions.cmxs
EXECNOW: make -s @PTEST_DIR@/check_const.cmxs
EXECNOW: make -s @PTEST_DIR@/check_parsing_individual_headers.cmxs
EXECNOW: make -s @PTEST_DIR@/check_libc_anonymous_tags.cmxs
EXECNOW: make -s @PTEST_DIR@/check_compliance.cmxs
OPT: -load-module @PTEST_DIR@/check_libc_naming_conventions -print -cpp-extra-args='-nostdinc -Ishare/libc' -metrics -metrics-libc -load-module @PTEST_DIR@/check_const -load-module metrics -eva @EVA_CONFIG@ -then -lib-entry -no-print -metrics-no-libc
MODULE: check_libc_naming_conventions, check_const
OPT: -print -cpp-extra-args='-nostdinc -Ishare/libc' -metrics -metrics-libc -load-module metrics -eva @EVA_CONFIG@ -then -lib-entry -no-print -metrics-no-libc
MODULE:
OPT: -print -print-libc -machdep x86_32
OPT: -load-module @PTEST_DIR@/check_parsing_individual_headers
OPT: -load-module @PTEST_DIR@/check_libc_anonymous_tags
OPT: -load-module @PTEST_DIR@/check_compliance -kernel-msg-key printer:attrs
CMD: ./tests/libc/check_full_libc.sh
MODULE: check_parsing_individual_headers
OPT:
MODULE: check_libc_anonymous_tags
OPT:
MODULE: check_compliance
OPT: -kernel-msg-key printer:attrs
MODULE:
CMD: ./tests/libc/check_full_libc.sh
OPT:
**/
#define __FC_REG_TEST
// Some functions such as usleep() are only defined for older of POSIX headers,
// while others may be defined only by newer ones, so it is not possible to
// test all of them. We nevertheless define some headers to test additional
......
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