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
257a6b46
Commit
257a6b46
authored
3 years ago
by
Patrick Baudin
Committed by
Virgile Prevosto
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[Ptests] update doc
parent
94a79991
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/developer/advance.tex
+5
-1
5 additions, 1 deletion
doc/developer/advance.tex
ptests/ptests.ml
+32
-14
32 additions, 14 deletions
ptests/ptests.ml
with
37 additions
and
15 deletions
doc/developer/advance.tex
+
5
−
1
View file @
257a6b46
...
@@ -954,13 +954,17 @@ the configuration header of a test (or a test suite).
...
@@ -954,13 +954,17 @@ the configuration header of a test (or a test suite).
\textbf
{
Kind
}
&
\textbf
{
Name
}
&
\textbf
{
Specification
}
&
\textbf
{
default
}
\\
\textbf
{
Kind
}
&
\textbf
{
Name
}
&
\textbf
{
Specification
}
&
\textbf
{
default
}
\\
\hline
\hline
\hline
\multirow
{
4
}{
23mm
}{
\centering
{
Command
}}
\hline
\multirow
{
4
}{
23mm
}{
\centering
{
Command
}}
&
\texttt
{
PLUGIN
}
\nscodeidxdef
{
Test!Directive
}{
PLUGIN
}
&
Plugins to be loaded with each subsequent
&
\texttt
{
from,inout,eva,scope,variadic
}
for tests under
\texttt
{
./tests
}
directory
\\
&
\texttt
{
CMD
}
\nscodeidxdef
{
Test!Directive
}{
CMD
}
&
\texttt
{
CMD
}
\nscodeidxdef
{
Test!Directive
}{
CMD
}
&
Program to run
&
Program to run
&
\texttt
{
./bin/toplevel.opt
}
&
\texttt
{
./bin/toplevel.opt
}
\\
\\
&
\texttt
{
OPT
}
\nscodeidxdef
{
Test!Directive
}{
OPT
}
&
\texttt
{
OPT
}
\nscodeidxdef
{
Test!Directive
}{
OPT
}
&
Options given to the program
&
Options given to the program
&
\texttt
{
-val -out -input -deps
}
&
\texttt
{
-val -out -input -deps
}
for tests under
\texttt
{
./tests
}
directory
\\
\\
&
\texttt
{
STDOPT
}
\nscodeidxdef
{
Test!Directive
}{
STDOPT
}
&
\texttt
{
STDOPT
}
\nscodeidxdef
{
Test!Directive
}{
STDOPT
}
&
Add and remove options from the default set
&
Add and remove options from the default set
...
...
This diff is collapsed.
Click to expand it.
ptests/ptests.ml
+
32
−
14
View file @
257a6b46
...
@@ -318,19 +318,33 @@ let example_msg =
...
@@ -318,19 +318,33 @@ let example_msg =
MACRO: <name> <def> @[<v 0># Set a definition to the macro @@<name>@@.@]@ \
MACRO: <name> <def> @[<v 0># Set a definition to the macro @@<name>@@.@]@ \
@]@ \
@]@ \
@[<v 1>\
@[<v 1>\
Some predefined macros can be used in test commands:@ \
Default directive values:@ \
@@PTEST_DIR@@ # Dirname of the test file.@ \
FILEREG: %s@ \
@@PTEST_FILE@@ # Substituted by the test filename.@ \
CMD: %s@ \
@@PTEST_NAME@@ # Basename of the test file.@ \
EXIT: 0@ \
@@PTEST_NUMBER@@ # Test command number.@ \
@]@ \
@@PTEST_CONFIG@@ # Test configuration suffix.@ \
@[<v 1>\
@@PTEST_RESULT@@ # Shorthand alias to '@@PTEST_DIR@@/result@@PTEST_CONFIG@@' (the result directory dedicated to the tested configuration).@ \
Some predefined macros can be used in test commands:@ \
@@PTEST_ORACLE@@ # Basename of the current oracle file (macro only usable in FILTER directives).@ \
@@PTEST_DIR@@ # Dirname of the test file.@ \
@@PTEST_MODULE@@ # Current list of module defined by the MODULE directive.@ \
@@PTEST_FILE@@ # Substituted by the test filename.@ \
@@PTEST_LOAD_MODULE@@ # The '-load-module' option related to the MODULE directive.@ \
@@PTEST_NAME@@ # Basename of the test file.@ \
@@PTEST_PLUGIN@@ # Current list of plugins defined by the PLUGIN directive.@ \
@@PTEST_NUMBER@@ # Test command number.@ \
@@PTEST_LOAD_PLUGIN@@ # The '-load-module' option related to the PLUGIN directive.@ \
@@PTEST_CONFIG@@ # Test configuration suffix.@ \
@@PTEST_LOAD_OPTIONS@@ # Shorthand alias to '@@PTEST_LOAD_PLUGIN@@ @@PTEST_LOAD_MODULE@@' .@ \
@@PTEST_RESULT@@ # Shorthand alias to '@@PTEST_DIR@@/result@@PTEST_CONFIG@@' (the result directory dedicated to the tested configuration).@ \
@@PTEST_ORACLE@@ # Basename of the current oracle file (macro only usable in FILTER directives).@ \
@@PTEST_MODULE@@ # Current list of module defined by the MODULE directive.@ \
@@PTEST_PLUGIN@@ # Current list of plugins defined by the PLUGIN directive.@ \
@]@ \
Other macros can only be used in test commands (CMD and EXECNOW directives):@ \
@@PTEST_DEFAULT_OPTIONS@@ # The default option list: %s@ \
@@PTEST_LOAD_MODULE@@ # The '-load-module' option related to the MODULE directive.@ \
@@PTEST_LOAD_PLUGIN@@ # The '-load-module' option related to the PLUGIN directive.@ \
@@PTEST_LOAD_OPTIONS@@ # Shorthand alias to '@@PTEST_LOAD_PLUGIN@@ @@PTEST_LOAD_MODULE@@' .@ \
@@PTEST_OPTIONS@@ # The current list of options related to OPT and STDOPT directives (for CMD directives).@ \
@@frama-c@@ # Shortcut defined as follow: %s@ \
@@frama-c-cmd@@ # Shortcut defined as follow: %s@ \
@@frama-c-exe@@ # set to the value of the 'TOPLEVEL_PATH' variable from './tests/ptests_config' file.@ \
@]@ \
@[<v 1>\
@[<v 1>\
Examples:@ \
Examples:@ \
ptests@ \
ptests@ \
...
@@ -345,7 +359,11 @@ let example_msg =
...
@@ -345,7 +359,11 @@ let example_msg =
ptests -v -j 1 \
ptests -v -j 1 \
# to check the time taken by each test\
# to check the time taken by each test\
@]@ @]"
@]@ @]"
;;
test_file_regexp
!
default_toplevel
!
macro_default_options
!
macro_frama_c
!
macro_frama_c_cmd
let
umsg
=
"Usage: ptests [options] [names of test suites]"
;;
let
umsg
=
"Usage: ptests [options] [names of test suites]"
;;
...
...
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