Skip to content
Snippets Groups Projects
Commit 8a5dd30a authored by François Bobot's avatar François Bobot
Browse files

[Tests] Fix problem of path

parent 4c23cf3d
No related branches found
No related tags found
No related merge requests found
/* run.config* /* run.config*
PLUGIN: metrics PLUGIN: metrics
DEPS: ../../../share/libc/string.c OPT: -eva-no-builtins-auto @EVA_OPTIONS@ %{read:../../syntax/framac_share_path}/libc/string.c -eva -eva-slevel 6 -metrics-eva-cover -then -metrics-libc
OPT: -eva-no-builtins-auto @EVA_OPTIONS@ ../../../share/libc/string.c -eva -eva-slevel 6 -metrics-eva-cover -then -metrics-libc
*/ */
#include "string.h" #include "string.h"
......
[kernel] Parsing coverage.c (with preprocessing) [kernel] Parsing coverage.c (with preprocessing)
[kernel] Parsing FRAMA-C/share/libc/string.c (with preprocessing) [kernel] Parsing FRAMAC_SHARE/libc/string.c (with preprocessing)
[eva] Analyzing a complete application starting at main [eva] Analyzing a complete application starting at main
[eva] Computing initial state [eva] Computing initial state
[eva] Initial state computed [eva] Initial state computed
[eva:initial-state] Values of globals at initialization [eva:initial-state] Values of globals at initialization
[eva] computing for function strlen <- main. [eva] computing for function strlen <- main.
Called from coverage.c:11. Called from coverage.c:10.
[eva] Recording results for strlen [eva] Recording results for strlen
[eva] Done for function strlen [eva] Done for function strlen
[eva] Recording results for main [eva] Recording results for main
......
/* run.config* /* run.config*
FILTER: sed -e 's:/\(tmp\|var\|build\)/[^ ]*\.i:/tmp/FILE.i:g; s:$PWD::g; s:-I.*share/frama-c/share/libc:-I LIBC:g' FILTER: sed -e "s:/\(tmp\|var\|build\)/[^ ]*\.i:/tmp/FILE.i:g; s:$PWD:.:g; s:-I.*share/frama-c/share/libc:-I LIBC:g"
OPT: -no-autoload-plugins -cpp-frama-c-compliant -cpp-command "echo [\$(basename '%1') \$(basename '%1') \$(basename '%i') \$(basename '%input')] ['%2' '%2' '%o' '%output'] ['%args']" OPT: -no-autoload-plugins -cpp-frama-c-compliant -cpp-command "echo [\$(basename '%1') \$(basename '%1') \$(basename '%i') \$(basename '%input')] ['%2' '%2' '%o' '%output'] ['%args']"
OPT: -no-autoload-plugins -cpp-frama-c-compliant -cpp-command "echo %%1 = \$(basename '%1') %%2 = '%2' %%args = '%args'" OPT: -no-autoload-plugins -cpp-frama-c-compliant -cpp-command "echo %%1 = \$(basename '%1') %%2 = '%2' %%args = '%args'"
OPT: -no-autoload-plugins -cpp-frama-c-compliant -cpp-command "printf \"%s\" \"using \\% has no effect : \$(basename \"\%input\")\"" OPT: -no-autoload-plugins -cpp-frama-c-compliant -cpp-command "printf \"%s\" \"using \\% has no effect : \$(basename \"\%input\")\""
......
(rule
(action (with-stdout-to framac_share_path (pipe-stdout (run frama-c -print-share-path) (run tr -d '\n'))))
)
/* run.config /* run.config
DEPS: ../../../share/libc/string.h OPT:%{read:../framac_share_path}/libc/string.h @PTEST_FILE@ @PTEST_FILE@ -print
OPT: -add-symbolic-path SHARE:../../../share ../../../share/libc/string.h @PTEST_FILE@ @PTEST_FILE@ -print OPT: @PTEST_FILE@ %{read:../framac_share_path}/libc/string.h @PTEST_FILE@ -print
OPT: -add-symbolic-path SHARE:../../../share @PTEST_FILE@ ../../../share/libc/string.h @PTEST_FILE@ -print OPT: @PTEST_FILE@ @PTEST_FILE@ %{read:../framac_share_path}/libc/string.h -print
OPT: -add-symbolic-path SHARE:../../../share @PTEST_FILE@ @PTEST_FILE@ ../../../share/libc/string.h -print
*/ */
#include "string.h" #include "string.h"
......
[kernel] Preprocessing command: [kernel] Preprocessing command:
gcc -E -C -I LIBC -D__FRAMAC__ -D__FC_MACHDEP_X86_32 -dD -nostdinc -m32 'FRAMA-C/tests/syntax/result/cpp-command.c' -o '/tmp/FILE.i' gcc -E -C -I LIBC -D__FRAMAC__ -D__FC_MACHDEP_X86_32 -dD -nostdinc -m32 './cpp-command.c' -o '/tmp/FILE.i'
[kernel] Parsing SHARE/libc/string.h (with preprocessing) [kernel] Parsing FRAMAC_SHARE/libc/string.h (with preprocessing)
[kernel] Parsing multiple_decls_contracts.c (with preprocessing) [kernel] Parsing multiple_decls_contracts.c (with preprocessing)
[kernel] Parsing multiple_decls_contracts.c (with preprocessing) [kernel] Parsing multiple_decls_contracts.c (with preprocessing)
[kernel] multiple_decls_contracts.c:11: Warning: [kernel] multiple_decls_contracts.c:10: Warning:
dropping duplicate def'n of func strdup at multiple_decls_contracts.c:11 in favor of that at multiple_decls_contracts.c:11 dropping duplicate def'n of func strdup at multiple_decls_contracts.c:10 in favor of that at multiple_decls_contracts.c:10
/* Generated by Frama-C */ /* Generated by Frama-C */
#include "FRAMA-C/share/libc/__fc_alloc_axiomatic.h" #include "stddef.h"
#include "FRAMA-C/share/libc/__fc_define_size_t.h"
#include "FRAMA-C/share/libc/__fc_define_wchar_t.h"
#include "FRAMA-C/share/libc/__fc_string_axiomatic.h"
#include "FRAMA-C/share/libc/string.h"
#include "FRAMA-C/share/libc/strings.h"
#include "stdlib.h" #include "stdlib.h"
#include "string.h" #include "string.h"
#include "strings.h" #include "strings.h"
......
[kernel] Parsing multiple_decls_contracts.c (with preprocessing) [kernel] Parsing multiple_decls_contracts.c (with preprocessing)
[kernel] Parsing SHARE/libc/string.h (with preprocessing) [kernel] Parsing FRAMAC_SHARE/libc/string.h (with preprocessing)
[kernel] Parsing multiple_decls_contracts.c (with preprocessing) [kernel] Parsing multiple_decls_contracts.c (with preprocessing)
[kernel] multiple_decls_contracts.c:11: Warning: [kernel] multiple_decls_contracts.c:10: Warning:
dropping duplicate def'n of func strdup at multiple_decls_contracts.c:11 in favor of that at multiple_decls_contracts.c:11 dropping duplicate def'n of func strdup at multiple_decls_contracts.c:10 in favor of that at multiple_decls_contracts.c:10
/* Generated by Frama-C */ /* Generated by Frama-C */
#include "FRAMA-C/share/libc/__fc_alloc_axiomatic.h"
#include "FRAMA-C/share/libc/string.h"
#include "FRAMA-C/share/libc/strings.h"
#include "stddef.h" #include "stddef.h"
#include "stdlib.h" #include "stdlib.h"
#include "string.h" #include "string.h"
......
[kernel] Parsing multiple_decls_contracts.c (with preprocessing) [kernel] Parsing multiple_decls_contracts.c (with preprocessing)
[kernel] Parsing multiple_decls_contracts.c (with preprocessing) [kernel] Parsing multiple_decls_contracts.c (with preprocessing)
[kernel] Parsing SHARE/libc/string.h (with preprocessing) [kernel] Parsing FRAMAC_SHARE/libc/string.h (with preprocessing)
[kernel] multiple_decls_contracts.c:11: Warning: [kernel] multiple_decls_contracts.c:10: Warning:
dropping duplicate def'n of func strdup at multiple_decls_contracts.c:11 in favor of that at multiple_decls_contracts.c:11 dropping duplicate def'n of func strdup at multiple_decls_contracts.c:10 in favor of that at multiple_decls_contracts.c:10
/* Generated by Frama-C */ /* Generated by Frama-C */
#include "FRAMA-C/share/libc/__fc_alloc_axiomatic.h"
#include "FRAMA-C/share/libc/__fc_string_axiomatic.h"
#include "FRAMA-C/share/libc/string.h"
#include "FRAMA-C/share/libc/strings.h"
#include "stddef.h" #include "stddef.h"
#include "stdlib.h" #include "stdlib.h"
#include "string.h" #include "string.h"
......
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