Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
b893d0cd
Commit
b893d0cd
authored
4 years ago
by
Patrick Baudin
Browse files
Options
Downloads
Patches
Plain Diff
[Tests] using MODULE directive
parent
9abb2263
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
tests/builtins/big_local_array.i
+3
-2
3 additions, 2 deletions
tests/builtins/big_local_array.i
tests/cil/change_formals.c
+4
-4
4 additions, 4 deletions
tests/cil/change_formals.c
tests/jcdb/jcdb.c
+8
-6
8 additions, 6 deletions
tests/jcdb/jcdb.c
tests/libc/fc_libc.c
+11
-11
11 additions, 11 deletions
tests/libc/fc_libc.c
with
26 additions
and
23 deletions
tests/builtins/big_local_array.i
+
3
−
2
View file @
b893d0cd
/* 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
*/
...
...
This diff is collapsed.
Click to expand it.
tests/cil/change_formals.c
+
4
−
4
View file @
b893d0cd
/* 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
...
...
This diff is collapsed.
Click to expand it.
tests/jcdb/jcdb.c
+
8
−
6
View file @
b893d0cd
/* 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
...
...
This diff is collapsed.
Click to expand it.
tests/libc/fc_libc.c
+
11
−
11
View file @
b893d0cd
/* 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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment