diff --git a/src/plugins/dive/tests/test_config b/src/plugins/dive/tests/test_config index 2d0ddaaf0293d6066350e8148f331836380d44af..c7640848779f891045e674e4eb255ef66d47cb00 100644 --- a/src/plugins/dive/tests/test_config +++ b/src/plugins/dive/tests/test_config @@ -1,4 +1,4 @@ LOG: @PTEST_NAME@.dot PLUGIN: from,inout,eva,variadic,scope,dive -OPT: -eva-msg-key=-initial-state -eva-no-show-progress -dive-output-dot @PTEST_RESULT@/@PTEST_NAME@.dot +OPT: -eva-msg-key=-initial-state -eva-no-show-progress -dive-output-dot ./@PTEST_NAME@.dot FILTER: perl -0777 -pe 's/\[server[^[]*//g' diff --git a/src/plugins/markdown-report/tests/md/cwe126.c b/src/plugins/markdown-report/tests/md/cwe126.c index 0750b43d6cb6673fcae0d4c0a95ed3a5d67867fd..015a0395139321163774a6149c18378e801b3858 100644 --- a/src/plugins/markdown-report/tests/md/cwe126.c +++ b/src/plugins/markdown-report/tests/md/cwe126.c @@ -1,6 +1,6 @@ /* run.config PLUGIN: @PTEST_PLUGIN@ markdown-report.eva-info - OPT: -mdr-remarks %{dep:@PTEST_DIR@/@PTEST_NAME@.remarks.md} + OPT: -mdr-remarks %{dep:./@PTEST_NAME@.remarks.md} */ /* extracted from Juliet test suite v1.3 for C diff --git a/src/plugins/markdown-report/tests/md/test_config b/src/plugins/markdown-report/tests/md/test_config index 43f2d664e4579878e03a5783c2b82f41d879e809..3d564e21d56b73257ae5cc1c77aa9508833d0eae 100644 --- a/src/plugins/markdown-report/tests/md/test_config +++ b/src/plugins/markdown-report/tests/md/test_config @@ -1,3 +1,3 @@ PLUGIN: inout,scope,eva markdown-report LOG: @PTEST_NAME@.@PTEST_NUMBER@.md -CMD: @frama-c@ -eva @PTEST_FILE@ -mdr-gen md -mdr-date="now" -mdr-out @PTEST_RESULT@/@PTEST_NAME@.@PTEST_NUMBER@.md +CMD: @frama-c@ -eva @PTEST_FILE@ -mdr-gen md -mdr-date="now" -mdr-out ./@PTEST_NAME@.@PTEST_NUMBER@.md diff --git a/src/plugins/markdown-report/tests/sarif/cwe125.c b/src/plugins/markdown-report/tests/sarif/cwe125.c index b983da0cb79e2581734c83d071dde69dd7e3fdff..c7914cbf5bc8dbe29086a369e7a4e5b27040aff7 100644 --- a/src/plugins/markdown-report/tests/sarif/cwe125.c +++ b/src/plugins/markdown-report/tests/sarif/cwe125.c @@ -1,8 +1,8 @@ /* run.config NOFRAMAC: use execnow for proper sequencing of executions -EXECNOW: BIN @PTEST_NAME@_parse.sav LOG @PTEST_NAME@.parse.log LOG @PTEST_NAME@.parse.err @frama-c@ @PTEST_FILE@ -save @PTEST_RESULT@/@PTEST_NAME@_parse.sav > @PTEST_RESULT@/@PTEST_NAME@.parse.log 2> @PTEST_RESULT@/@PTEST_NAME@.parse.err -EXECNOW: BIN @PTEST_NAME@_eva.sav LOG @PTEST_NAME@.eva.log LOG @PTEST_NAME@.eva.err @frama-c@ -load %{dep:@PTEST_RESULT@/@PTEST_NAME@_parse.sav} -eva -save @PTEST_RESULT@/@PTEST_NAME@_eva.sav > @PTEST_RESULT@/@PTEST_NAME@.eva.log 2> @PTEST_RESULT@/@PTEST_NAME@.eva.err -EXECNOW: BIN @PTEST_NAME@.sarif.unfiltered LOG @PTEST_NAME@.sarif.log LOG @PTEST_NAME@.sarif.err @frama-c@ -load %{dep:@PTEST_RESULT@/@PTEST_NAME@_eva.sav} -then -mdr-out @PTEST_RESULT@/@PTEST_NAME@.sarif.unfiltered -mdr-gen sarif -mdr-no-print-libc -mdr-sarif-deterministic > @PTEST_RESULT@/@PTEST_NAME@.sarif.log 2> @PTEST_RESULT@/@PTEST_NAME@.sarif.err +EXECNOW: BIN @PTEST_NAME@_parse.sav LOG @PTEST_NAME@.parse.log LOG @PTEST_NAME@.parse.err @frama-c@ @PTEST_FILE@ -save ./@PTEST_NAME@_parse.sav > ./@PTEST_NAME@.parse.log 2> ./@PTEST_NAME@.parse.err +EXECNOW: BIN @PTEST_NAME@_eva.sav LOG @PTEST_NAME@.eva.log LOG @PTEST_NAME@.eva.err @frama-c@ -load %{dep:./@PTEST_NAME@_parse.sav} -eva -save ./@PTEST_NAME@_eva.sav > ./@PTEST_NAME@.eva.log 2> ./@PTEST_NAME@.eva.err +EXECNOW: BIN @PTEST_NAME@.sarif.unfiltered LOG @PTEST_NAME@.sarif.log LOG @PTEST_NAME@.sarif.err @frama-c@ -load %{dep:./@PTEST_NAME@_eva.sav} -then -mdr-out ./@PTEST_NAME@.sarif.unfiltered -mdr-gen sarif -mdr-no-print-libc -mdr-sarif-deterministic > ./@PTEST_NAME@.sarif.log 2> ./@PTEST_NAME@.sarif.err EXECNOW: LOG @PTEST_NAME@.sarif sed -e "s:@PTEST_SESSION@:PTEST_SESSION:" %{dep:@PTEST_NAME@.sarif.unfiltered} > @PTEST_NAME@.sarif 2> @NULL */ #include "__fc_builtin.h" diff --git a/src/plugins/markdown-report/tests/sarif/libc.c b/src/plugins/markdown-report/tests/sarif/libc.c index 97ac292b33584782e2c3aefcb182f54fba992132..0c78840e88d99f128eadfc651acd4ba3a3fb0c06 100644 --- a/src/plugins/markdown-report/tests/sarif/libc.c +++ b/src/plugins/markdown-report/tests/sarif/libc.c @@ -1,10 +1,10 @@ /* run.config CMD: @frama-c@ -eva -eva-no-results -mdr-gen sarif -mdr-sarif-deterministic BIN: with-libc.sarif.unfiltered - OPT: -mdr-out @PTEST_RESULT@/with-libc.sarif.unfiltered + OPT: -mdr-out ./with-libc.sarif.unfiltered EXECNOW: LOG with-libc.sarif sed -e "s:@PTEST_SESSION@:PTEST_SESSION:" %{dep:with-libc.sarif.unfiltered} > with-libc.sarif 2> @NULL BIN: without-libc.sarif.unfiltered - OPT: -mdr-no-print-libc -mdr-out @PTEST_RESULT@/without-libc.sarif.unfiltered + OPT: -mdr-no-print-libc -mdr-out ./without-libc.sarif.unfiltered EXECNOW: LOG without-libc.sarif sed -e "s:@PTEST_SESSION@:PTEST_SESSION:" %{dep:without-libc.sarif.unfiltered} > without-libc.sarif 2> @NULL */ #include <string.h> diff --git a/src/plugins/markdown-report/tests/sarif/std_string.c b/src/plugins/markdown-report/tests/sarif/std_string.c index 723cc5eda08137cfa4d7326b47a425b61c67cd7f..992e36a58f04c7011f00af431acd558a340d5311 100644 --- a/src/plugins/markdown-report/tests/sarif/std_string.c +++ b/src/plugins/markdown-report/tests/sarif/std_string.c @@ -1,6 +1,6 @@ /* run.config* BIN: @PTEST_NAME@.sarif.unfiltered -OPT: -eva -then -mdr-sarif-deterministic -mdr-gen sarif -mdr-out @PTEST_RESULT@/@PTEST_NAME@.sarif.unfiltered +OPT: -eva -then -mdr-sarif-deterministic -mdr-gen sarif -mdr-out ./@PTEST_NAME@.sarif.unfiltered EXECNOW: LOG @PTEST_NAME@.sarif sed -e "s:@PTEST_SESSION@:PTEST_SESSION:" %{dep:@PTEST_NAME@.sarif.unfiltered} > @PTEST_NAME@.sarif 2> @NULL */ #include "string.c" diff --git a/src/plugins/nonterm/tests/nonterm/output_to_file.i b/src/plugins/nonterm/tests/nonterm/output_to_file.i index 94d49796629d655c02e8a4dfb35b7196b0dde0c4..fdafda6bdc0bce6abb4de89bf8ddf1fc0623c5aa 100644 --- a/src/plugins/nonterm/tests/nonterm/output_to_file.i +++ b/src/plugins/nonterm/tests/nonterm/output_to_file.i @@ -1,6 +1,6 @@ /* run.config LOG: output_to_file.txt - STDOPT: #"-nonterm-log :@PTEST_RESULT@/output_to_file.txt" + STDOPT: #"-nonterm-log :./output_to_file.txt" */ void loop() { diff --git a/src/plugins/server/tests/batch/test_config b/src/plugins/server/tests/batch/test_config index 074eee0172b502132bed87a44fea50d0da9c1822..88dfbe964202cbd2b23f3e1471cdeffc4bfe7e5d 100644 --- a/src/plugins/server/tests/batch/test_config +++ b/src/plugins/server/tests/batch/test_config @@ -1,3 +1,3 @@ PLUGIN: server LOG: @PTEST_NAME@.out.json -OPT: -server-batch %{dep:@PTEST_DIR@/@PTEST_NAME@.json} -server-batch-output-dir @PTEST_RESULT@ -server-msg-key use-relative-filepath +OPT: -server-batch %{dep:./@PTEST_NAME@.json} -server-batch-output-dir @PTEST_RESULT@ -server-msg-key use-relative-filepath diff --git a/src/plugins/variadic/tests/known/print_libc.c b/src/plugins/variadic/tests/known/print_libc.c index d837ececb50efcb3898ea7952fc9fd34e2f5f3d2..c5671d81d47e721ec75cc919fe255c1efd6187db 100644 --- a/src/plugins/variadic/tests/known/print_libc.c +++ b/src/plugins/variadic/tests/known/print_libc.c @@ -1,7 +1,7 @@ /* run.config PLUGIN: variadic LOG: @PTEST_NAME@.pretty.c - OPT: %{dep:@PTEST_DIR@/empty.c} -no-print-libc -print -ocode @PTEST_RESULT@/@PTEST_NAME@.pretty.c -then @PTEST_RESULT@/@PTEST_NAME@.pretty.c + OPT: %{dep:./empty.c} -no-print-libc -print -ocode ./@PTEST_NAME@.pretty.c -then ./@PTEST_NAME@.pretty.c */ #include <stdio.h> diff --git a/tests/cil/cpu_a.c b/tests/cil/cpu_a.c index a97da066ed18deb30432c6b42417a8c56fe313bc..0faf9296aa8a8a20efd459c99561abfc1cf182c1 100644 --- a/tests/cil/cpu_a.c +++ b/tests/cil/cpu_a.c @@ -1,5 +1,5 @@ /* run.config - OPT: %{dep:@PTEST_DIR@/cpu_b.c} -machdep x86_16 -print + OPT: %{dep:./cpu_b.c} -machdep x86_16 -print */ typedef unsigned short DWORD ; diff --git a/tests/cil/cpu_b.c b/tests/cil/cpu_b.c index 0835b42718b5ad83dbcee6b5b3fa4fd6edfb0725..c40577b180ea8607513017547212bd56f52598ac 100644 --- a/tests/cil/cpu_b.c +++ b/tests/cil/cpu_b.c @@ -1,5 +1,5 @@ /* run.config - OPT: %{dep:@PTEST_DIR@/cpu_a.c} -machdep x86_16 -print + OPT: %{dep:./cpu_a.c} -machdep x86_16 -print */ typedef unsigned int DWORD ; diff --git a/tests/cil/merge.c b/tests/cil/merge.c index 4e108ad538cd625d35bed8cfc721ac313d571802..aa1d5dfd73fb3a5a2130b9525e64ea2a00c39ee1 100644 --- a/tests/cil/merge.c +++ b/tests/cil/merge.c @@ -1,4 +1,4 @@ /* run.config - STDOPT: +"%{dep:@PTEST_DIR@/merge2.c}" + STDOPT: +"%{dep:./merge2.c}" */ extern int x; diff --git a/tests/cil/merge2.c b/tests/cil/merge2.c index a354233ee0aa7ce674e80a4dfa060577128db3ce..78dc2ae53347994c7c94c543b1855ea8fce45ca6 100644 --- a/tests/cil/merge2.c +++ b/tests/cil/merge2.c @@ -1,4 +1,4 @@ /* run.config - STDOPT: +"%{dep:@PTEST_DIR@/merge.c}" + STDOPT: +"%{dep:./merge.c}" */ int x =2; diff --git a/tests/compliance/check-json.i b/tests/compliance/check-json.i index d0ed09b932d65834737d3e6ffad428c2b8a53bd2..8a287415fd091d398d648101bedb53c745612c5c 100644 --- a/tests/compliance/check-json.i +++ b/tests/compliance/check-json.i @@ -1,11 +1,11 @@ /*run.config MACRO: SHARE @FRAMAC_SHARE@/compliance NOFRAMAC: - EXECNOW: LOG json_@PTEST_NAME@_1.txt python3 -m json.tool < @SHARE@/c11_functions.json | head -n 2 | tail -n 1 > @PTEST_RESULT@/json_@PTEST_NAME@_1.txt 2> @DEV_NULL@ - EXECNOW: LOG json_@PTEST_NAME@_2.txt python3 -m json.tool < @SHARE@/glibc_functions.json | head -n 2 | tail -n 1 > @PTEST_RESULT@/json_@PTEST_NAME@_2.txt 2> @DEV_NULL@ - EXECNOW: LOG json_@PTEST_NAME@_3.txt python3 -m json.tool < @SHARE@/nonstandard_identifiers.json | head -n 2 | tail -n 1 > @PTEST_RESULT@/json_@PTEST_NAME@_3.txt 2> @DEV_NULL@ - EXECNOW: LOG json_@PTEST_NAME@_4.txt python3 -m json.tool < @SHARE@/posix_identifiers.json | head -n 2 | tail -n 1 > @PTEST_RESULT@/json_@PTEST_NAME@_4.txt 2> @DEV_NULL@ - EXECNOW: LOG json_@PTEST_NAME@_5.txt python3 -m json.tool < @SHARE@/compiler_builtins.json | head -n 2 | tail -n 1 > @PTEST_RESULT@/json_@PTEST_NAME@_5.txt 2> @DEV_NULL@ - EXECNOW: LOG json_@PTEST_NAME@_6.txt python3 -m json.tool < @SHARE@/gcc_builtins.json | head -n 2 | tail -n 1 > @PTEST_RESULT@/json_@PTEST_NAME@_6.txt 2> @DEV_NULL@ - EXECNOW: LOG json_@PTEST_NAME@_7.txt python3 %{dep:@PTEST_DIR@/sanity-checks.py} @SHARE@ > @PTEST_RESULT@/json_@PTEST_NAME@_7.txt 2> @DEV_NULL@ + EXECNOW: LOG json_@PTEST_NAME@_1.txt python3 -m json.tool < @SHARE@/c11_functions.json | head -n 2 | tail -n 1 > ./json_@PTEST_NAME@_1.txt 2> @DEV_NULL@ + EXECNOW: LOG json_@PTEST_NAME@_2.txt python3 -m json.tool < @SHARE@/glibc_functions.json | head -n 2 | tail -n 1 > ./json_@PTEST_NAME@_2.txt 2> @DEV_NULL@ + EXECNOW: LOG json_@PTEST_NAME@_3.txt python3 -m json.tool < @SHARE@/nonstandard_identifiers.json | head -n 2 | tail -n 1 > ./json_@PTEST_NAME@_3.txt 2> @DEV_NULL@ + EXECNOW: LOG json_@PTEST_NAME@_4.txt python3 -m json.tool < @SHARE@/posix_identifiers.json | head -n 2 | tail -n 1 > ./json_@PTEST_NAME@_4.txt 2> @DEV_NULL@ + EXECNOW: LOG json_@PTEST_NAME@_5.txt python3 -m json.tool < @SHARE@/compiler_builtins.json | head -n 2 | tail -n 1 > ./json_@PTEST_NAME@_5.txt 2> @DEV_NULL@ + EXECNOW: LOG json_@PTEST_NAME@_6.txt python3 -m json.tool < @SHARE@/gcc_builtins.json | head -n 2 | tail -n 1 > ./json_@PTEST_NAME@_6.txt 2> @DEV_NULL@ + EXECNOW: LOG json_@PTEST_NAME@_7.txt python3 %{dep:./sanity-checks.py} @SHARE@ > ./json_@PTEST_NAME@_7.txt 2> @DEV_NULL@ */ diff --git a/tests/dynamic/dynamic.i b/tests/dynamic/dynamic.i index ca9861b12ca9a9e852286010071abe1e4946ad7b..f282a068aa49d22c805365c96683a9dde08e70ac 100644 --- a/tests/dynamic/dynamic.i +++ b/tests/dynamic/dynamic.i @@ -1,9 +1,9 @@ /*run.config EXIT: 1 - DEPS: @PTEST_DIR@/directory_path/README - OPT: -add-path %{dep:@PTEST_DIR@/file_path} -add-path @PTEST_DIR@/directory_path -add-path @PTEST_DIR@/none + DEPS: ./directory_path/README + OPT: -add-path %{dep:./file_path} -add-path ./directory_path -add-path ./none EXIT: 0 MODULE: empty abstract abstract2 OPT: */ -// Note: the dependency @PTEST_DIR@/directory_path/README is used to create the directory directory_path by the copy_files of the dune file. +// Note: the dependency ./directory_path/README is used to create the directory directory_path by the copy_files of the dune file. diff --git a/tests/fc_script/build-callgraph.i b/tests/fc_script/build-callgraph.i index 9510c608c6740e5922b4e26e31ebea5cd301f92c..43682ba812fb812bfad29941c729a9fc607dccec 100644 --- a/tests/fc_script/build-callgraph.i +++ b/tests/fc_script/build-callgraph.i @@ -1,6 +1,6 @@ /* run.config NOFRAMAC: testing frama-c-script, not frama-c itself - EXECNOW: LOG build-callgraph.res LOG build-callgraph.err PTESTS_TESTING=1 %{bin:frama-c-script} heuristic-print-callgraph %{dep:@PTEST_DIR@/@PTEST_NAME@.i} > @PTEST_RESULT@/build-callgraph.res 2> @PTEST_RESULT@/build-callgraph.err + EXECNOW: LOG build-callgraph.res LOG build-callgraph.err PTESTS_TESTING=1 %{bin:frama-c-script} heuristic-print-callgraph %{dep:./@PTEST_NAME@.i} > ./build-callgraph.res 2> ./build-callgraph.err */ #include <stdio.h> diff --git a/tests/fc_script/list_functions.i b/tests/fc_script/list_functions.i index 225f70d0a90bc31504e675d9bbaa7bc70503d7f8..75e20a87360c92e2e5b3f47155b2fb53e64762b4 100644 --- a/tests/fc_script/list_functions.i +++ b/tests/fc_script/list_functions.i @@ -1,19 +1,19 @@ /* run.config NOFRAMAC: testing frama-c-script, not frama-c itself - DEPS: @PTEST_DEPS@ @PTEST_DIR@/for-find-fun.c - DEPS: @PTEST_DEPS@ @PTEST_DIR@/for-find-fun2.c - DEPS: @PTEST_DEPS@ @PTEST_DIR@/for-list-functions.c - DEPS: @PTEST_DEPS@ @PTEST_DIR@/list_functions.i - DEPS: @PTEST_DEPS@ @PTEST_DIR@/main.c - DEPS: @PTEST_DEPS@ @PTEST_DIR@/main2.c - DEPS: @PTEST_DEPS@ @PTEST_DIR@/main3.c - DEPS: @PTEST_DEPS@ @PTEST_DIR@/make-wrapper.c - DEPS: @PTEST_DEPS@ @PTEST_DIR@/make-wrapper2.c - DEPS: @PTEST_DEPS@ @PTEST_DIR@/make-wrapper3.c + DEPS: @PTEST_DEPS@ ./for-find-fun.c + DEPS: @PTEST_DEPS@ ./for-find-fun2.c + DEPS: @PTEST_DEPS@ ./for-list-functions.c + DEPS: @PTEST_DEPS@ ./list_functions.i + DEPS: @PTEST_DEPS@ ./main.c + DEPS: @PTEST_DEPS@ ./main2.c + DEPS: @PTEST_DEPS@ ./main3.c + DEPS: @PTEST_DEPS@ ./make-wrapper.c + DEPS: @PTEST_DEPS@ ./make-wrapper2.c + DEPS: @PTEST_DEPS@ ./make-wrapper3.c - DEPS: @PTEST_DEPS@ @PTEST_DIR@/build-callgraph.i - DEPS: @PTEST_DEPS@ @PTEST_DIR@/recursions.i + DEPS: @PTEST_DEPS@ ./build-callgraph.i + DEPS: @PTEST_DEPS@ ./recursions.i - EXECNOW: LOG heuristic_list_functions.res LOG heuristic_list_functions.err PTESTS_TESTING=1 %{bin:frama-c-script} heuristic-list-functions true true @PTEST_DEPS@ > @PTEST_RESULT@/heuristic_list_functions.res 2> @PTEST_RESULT@/heuristic_list_functions.err + EXECNOW: LOG heuristic_list_functions.res LOG heuristic_list_functions.err PTESTS_TESTING=1 %{bin:frama-c-script} heuristic-list-functions true true @PTEST_DEPS@ > ./heuristic_list_functions.res 2> ./heuristic_list_functions.err */ diff --git a/tests/fc_script/main.c b/tests/fc_script/main.c index decfb23991130135e247f622aec8f8d5e5606121..1428c373f694cfce0c1f97140f921fa4199319da 100644 --- a/tests/fc_script/main.c +++ b/tests/fc_script/main.c @@ -2,14 +2,14 @@ NOFRAMAC: testing frama-c-script, not frama-c itself COMMENT: the 'build' command cannot be tested because it requires 'glub'. DEPS: main2.c main3.c main.c - EXECNOW: LOG list_files.res LOG list_files.err PTESTS_TESTING=1 %{bin:frama-c-script} list-files %{dep:@PTEST_DIR@/list_files.json} > @PTEST_RESULT@/list_files.res 2> @PTEST_RESULT@/list_files.err + EXECNOW: LOG list_files.res LOG list_files.err PTESTS_TESTING=1 %{bin:frama-c-script} list-files %{dep:./list_files.json} > ./list_files.res 2> ./list_files.err DEPS: for-find-fun2.c for-find-fun.c for-list-functions.c for-list-functions.h for-list-functions2.h main2.c main3.c main.c make-wrapper2.c make-wrapper3.c make-wrapper.c - EXECNOW: LOG find_fun1.res LOG find_fun1.err PTESTS_TESTING=1 %{bin:frama-c-script} find-fun main2 @PTEST_DIR@ > @PTEST_RESULT@/find_fun1.res 2> @PTEST_RESULT@/find_fun1.err - EXECNOW: LOG find_fun2.res LOG find_fun2.err PTESTS_TESTING=1 %{bin:frama-c-script} find-fun main3 @PTEST_DIR@ > @PTEST_RESULT@/find_fun2.res 2> @PTEST_RESULT@/find_fun2.err - EXECNOW: LOG find_fun3.res LOG find_fun3.err PTESTS_TESTING=1 %{bin:frama-c-script} find-fun false_positive @PTEST_DIR@ > @PTEST_RESULT@/find_fun3.res 2> @PTEST_RESULT@/find_fun3.err + EXECNOW: LOG find_fun1.res LOG find_fun1.err PTESTS_TESTING=1 %{bin:frama-c-script} find-fun main2 ./ > ./find_fun1.res 2> ./find_fun1.err + EXECNOW: LOG find_fun2.res LOG find_fun2.err PTESTS_TESTING=1 %{bin:frama-c-script} find-fun main3 ./ > ./find_fun2.res 2> ./find_fun2.err + EXECNOW: LOG find_fun3.res LOG find_fun3.err PTESTS_TESTING=1 %{bin:frama-c-script} find-fun false_positive ./ > ./find_fun3.res 2> ./find_fun3.err DEPS: - EXECNOW: LOG list_functions.res LOG list_functions.err PTESTS_TESTING=1 %{bin:frama-c-script} list-functions %{dep:@PTEST_DIR@/for-find-fun2.c} %{dep:@PTEST_DIR@/for-list-functions.c} > @PTEST_RESULT@/list_functions.res 2> @PTEST_RESULT@/list_functions.err - EXECNOW: LOG list_functions2.res LOG list_functions2.err LOG list_functions2.json PTESTS_TESTING=1 %{bin:frama-c-script} list-functions %{dep:@PTEST_DIR@/for-find-fun2.c} %{dep:@PTEST_DIR@/for-list-functions.c} -list-functions-declarations -list-functions-output @PTEST_RESULT@/list_functions2.json -list-functions-debug 1 > @PTEST_RESULT@/list_functions2.res 2> @PTEST_RESULT@/list_functions2.err + EXECNOW: LOG list_functions.res LOG list_functions.err PTESTS_TESTING=1 %{bin:frama-c-script} list-functions %{dep:./for-find-fun2.c} %{dep:./for-list-functions.c} > ./list_functions.res 2> ./list_functions.err + EXECNOW: LOG list_functions2.res LOG list_functions2.err LOG list_functions2.json PTESTS_TESTING=1 %{bin:frama-c-script} list-functions %{dep:./for-find-fun2.c} %{dep:./for-list-functions.c} -list-functions-declarations -list-functions-output ./list_functions2.json -list-functions-debug 1 > ./list_functions2.res 2> ./list_functions2.err */ diff --git a/tests/fc_script/make-wrapper.c b/tests/fc_script/make-wrapper.c index 571dd185ada00e6bfdb91bdbc88d2609a951656e..a861aefe78f6bb856a0fdfe21fb436dc8161391d 100644 --- a/tests/fc_script/make-wrapper.c +++ b/tests/fc_script/make-wrapper.c @@ -3,7 +3,7 @@ MACRO: RM_TMP_DIR rm -rf make-for-make-wrapper.parse make-for-make-wrapper.eva NOFRAMAC: testing frama-c-script COMMENT: in case of errors, remove the 'grep' part to get the full output PLUGIN: eva,from,inout,metrics,nonterm,report,scope,variadic - EXECNOW: LOG make-wrapper.res LOG make-wrapper.err (cd @PTEST_DIR@ && touch %{dep:make-wrapper2.c} && touch %{dep:make-wrapper3.c} && @RM_TMP_DIR@ && FRAMAC='%{bin:frama-c} @PTEST_DEFAULT_OPTIONS@ @PTEST_LOAD_OPTIONS@' PTESTS_TESTING=1 %{bin:frama-c-script} make-wrapper --make-dir . -f %{dep:make-for-make-wrapper.mk} | grep -A999999 "make-wrapper recommendations" && @RM_TMP_DIR@) > @PTEST_RESULT@/make-wrapper.res 2> @PTEST_RESULT@/make-wrapper.err + EXECNOW: LOG make-wrapper.res LOG make-wrapper.err (cd ./ && touch %{dep:make-wrapper2.c} && touch %{dep:make-wrapper3.c} && @RM_TMP_DIR@ && FRAMAC='%{bin:frama-c} @PTEST_DEFAULT_OPTIONS@ @PTEST_LOAD_OPTIONS@' PTESTS_TESTING=1 %{bin:frama-c-script} make-wrapper --make-dir . -f %{dep:make-for-make-wrapper.mk} | grep -A999999 "make-wrapper recommendations" && @RM_TMP_DIR@) > ./make-wrapper.res 2> ./make-wrapper.err */ diff --git a/tests/fc_script/recursions.i b/tests/fc_script/recursions.i index 1d1f993cf17245094b713370b8ab32bcc941f2e4..77b0c7b1f57f26c28afe626abcbef7d3308b37dc 100644 --- a/tests/fc_script/recursions.i +++ b/tests/fc_script/recursions.i @@ -1,6 +1,6 @@ /* run.config NOFRAMAC: testing frama-c-script, not frama-c itself - EXECNOW: LOG recursions.res LOG recursions.err PTESTS_TESTING=1 %{bin:frama-c-script} heuristic-detect-recursion @PTEST_FILE@ > @PTEST_RESULT@/recursions.res 2> @PTEST_RESULT@/recursions.err + EXECNOW: LOG recursions.res LOG recursions.err PTESTS_TESTING=1 %{bin:frama-c-script} heuristic-detect-recursion @PTEST_FILE@ > ./recursions.res 2> ./recursions.err */ volatile int v; diff --git a/tests/float/absorb.c b/tests/float/absorb.c index c53452aa6966c517b9b960fc3dad049dabec7538..e76dea9e8d78075c823bec6449d4e7aac971354c 100644 --- a/tests/float/absorb.c +++ b/tests/float/absorb.c @@ -1,12 +1,12 @@ /* run.config COMMENT: run.config is intentionally not-* PLUGIN: - EXECNOW: BIN absorb.sav LOG absorb_sav.res LOG absorb_sav.err @frama-c@ -save @PTEST_RESULT@/absorb.sav @PTEST_FILE@ > @PTEST_RESULT@/absorb_sav.res 2> @PTEST_RESULT@/absorb_sav.err + EXECNOW: BIN absorb.sav LOG absorb_sav.res LOG absorb_sav.err @frama-c@ -save ./absorb.sav @PTEST_FILE@ > ./absorb_sav.res 2> ./absorb_sav.err PLUGIN: @EVA_PLUGINS@ - EXECNOW: BIN absorb.sav2 LOG absorb_sav2.res LOG absorb_sav2.err @frama-c@ -load %{dep:@PTEST_RESULT@/absorb.sav} -eva @EVA_CONFIG@ -float-hex -save @PTEST_RESULT@/absorb.sav2 > @PTEST_RESULT@/absorb_sav2.res 2> @PTEST_RESULT@/absorb_sav2.err + EXECNOW: BIN absorb.sav2 LOG absorb_sav2.res LOG absorb_sav2.err @frama-c@ -load %{dep:./absorb.sav} -eva @EVA_CONFIG@ -float-hex -save ./absorb.sav2 > ./absorb_sav2.res 2> ./absorb_sav2.err COMMENT: the following CMD redefinition omits adding @PTEST_FILE@ on purpose. CMD: @frama-c@ @PTEST_OPTIONS@ - OPT: -load %{dep:@PTEST_RESULT@/absorb.sav2} -deps -out -input + OPT: -load %{dep:./absorb.sav2} -deps -out -input */ /* run.config* DONTRUN: diff --git a/tests/idct/ieee_1180_1990.c b/tests/idct/ieee_1180_1990.c index 09a50b86bcd9148674788ad54409a47bc0a34235..90bc2edd2edd91cf7500e146ca51c0e12603245a 100644 --- a/tests/idct/ieee_1180_1990.c +++ b/tests/idct/ieee_1180_1990.c @@ -1,6 +1,6 @@ /* run.config* PLUGIN: @PTEST_PLUGIN@ report - STDOPT: +"-eva-msg-key=summary -float-normal -no-warn-signed-overflow %{dep:@PTEST_DIR@/idct.c} -eva-remove-redundant-alarms -eva-memexec -eva-builtin sqrt:Frama_C_sqrt,cos:Frama_C_cos -then -report -report-print-properties" + STDOPT: +"-eva-msg-key=summary -float-normal -no-warn-signed-overflow %{dep:./idct.c} -eva-remove-redundant-alarms -eva-memexec -eva-builtin sqrt:Frama_C_sqrt,cos:Frama_C_cos -then -report -report-print-properties" */ /* IEEE_1180_1990: a testbed for IDCT accuracy * Copyright (C) 2001 Renaud Pacalet diff --git a/tests/jcdb/jbdb.c b/tests/jcdb/jbdb.c index 0180348922d95cc1d0a01879fe2819e718552c54..f0030542d0cd44d0fdd380ed41e20e9c4458a94d 100644 --- a/tests/jcdb/jbdb.c +++ b/tests/jcdb/jbdb.c @@ -1,5 +1,5 @@ /* run.config -OPT: -json-compilation-database %{dep:@PTEST_DIR@/build_commands.json} -print +OPT: -json-compilation-database %{dep:./build_commands.json} -print */ int f2 () { diff --git a/tests/jcdb/jbdb2.c b/tests/jcdb/jbdb2.c index 90ff3d399fe2690611dcec388ce0a79c9d4e3687..facaf28cdea079832b906f95671e9fd48f99e26e 100644 --- a/tests/jcdb/jbdb2.c +++ b/tests/jcdb/jbdb2.c @@ -1,5 +1,5 @@ /* run.config -OPT: -json-compilation-database %{dep:@PTEST_DIR@/build_commands.json} -print +OPT: -json-compilation-database %{dep:./build_commands.json} -print */ int f1 () { diff --git a/tests/jcdb/jcdb.c b/tests/jcdb/jcdb.c index cb5c84914d85a2ca0cbd3c690208adb1457e8675..35173a2f0b1768c90e0b2efa639df5c2f11a4e6a 100644 --- a/tests/jcdb/jcdb.c +++ b/tests/jcdb/jcdb.c @@ -1,14 +1,14 @@ /* run.config DEPS: compile_commands.json COMMENT: parsing option are defined in the default json file "compile_commands.json" - OPT: -json-compilation-database @PTEST_DIR@ -print + OPT: -json-compilation-database ./ -print DEPS: - OPT: %{dep:@PTEST_DIR@/jcdb2.c} -json-compilation-database %{dep:@PTEST_DIR@/with_arguments.json} -print + OPT: %{dep:./jcdb2.c} -json-compilation-database %{dep:./with_arguments.json} -print MODULE: @PTEST_NAME@ - OPT: -json-compilation-database %{dep:@PTEST_DIR@/with_arguments.json} + OPT: -json-compilation-database %{dep:./with_arguments.json} MODULE: DEPS: file_without_main.c - EXECNOW: LOG list_files.res LOG list_files.err %{bin:frama-c-script} list-files %{dep:@PTEST_DIR@/compile_commands_working.json} > @PTEST_RESULT@/list_files.res 2> @PTEST_RESULT@/list_files.err + EXECNOW: LOG list_files.res LOG list_files.err %{bin:frama-c-script} list-files %{dep:./compile_commands_working.json} > ./list_files.res 2> ./list_files.err */ #include <stdio.h> diff --git a/tests/jcdb/logic-pp-include.c b/tests/jcdb/logic-pp-include.c index b7b01d3df6c6355842b5d48358d3220c277fa14b..d3ce9f72b6f37835d8fe454e95732440c4dd57f9 100644 --- a/tests/jcdb/logic-pp-include.c +++ b/tests/jcdb/logic-pp-include.c @@ -1,5 +1,5 @@ /* run.config COMMENT: test related to a bugfix in the management of relative sub-directories: DEPS: logic-pp-include/compile_commands.json - OPT: -json-compilation-database @PTEST_DIR@/logic-pp-include %{dep:@PTEST_DIR@/logic-pp-include/no-stdio.c} -print + OPT: -json-compilation-database ./logic-pp-include %{dep:./logic-pp-include/no-stdio.c} -print */ diff --git a/tests/jcdb/logic-pp-include/no-stdio.c b/tests/jcdb/logic-pp-include/no-stdio.c index 1168462ce7702cf820f70484b7a59f92f9aeba7a..84b330f87d559dd74de2eecc6d565e115c89069e 100644 --- a/tests/jcdb/logic-pp-include/no-stdio.c +++ b/tests/jcdb/logic-pp-include/no-stdio.c @@ -1,5 +1,5 @@ /* run.config - OPT: -json-compilation-database %{dep:@PTEST_DIR@/no-stdio.json} -print + OPT: -json-compilation-database %{dep:./no-stdio.json} -print */ // no-stdio.json must have "-includestdio.h" and define ZERO diff --git a/tests/jcdb/subdir.c b/tests/jcdb/subdir.c index bedec1a5a070082ebc9a22ff4849d4ba1ff78b49..dbb11f820262c6a42be1eee12571d1acb8e45dd7 100644 --- a/tests/jcdb/subdir.c +++ b/tests/jcdb/subdir.c @@ -1,7 +1,7 @@ /* run.config NOFRAMAC: DEPS: subdir1/header.h subdir2/included.h subdir.json subdir.c included2.h - EXECNOW: LOG subdir.res LOG subdir.err (cd subdir1 && @frama-c@ -add-symbolic-path $PWD/..:PWD/.. -json-compilation-database ../subdir.json ../subdir.c) > @PTEST_RESULT@/subdir.res 2> @PTEST_RESULT@/subdir.err + EXECNOW: LOG subdir.res LOG subdir.err (cd subdir1 && @frama-c@ -add-symbolic-path $PWD/..:PWD/.. -json-compilation-database ../subdir.json ../subdir.c) > ./subdir.res 2> ./subdir.err */ // this test must be run with PWD in subdir1 diff --git a/tests/libc/time_misc.c b/tests/libc/time_misc.c index da8e73a77eac1f10b3db3fa4e57bb18012647c7f..2a483a08e691f1f9cb7e25cc65830ecf14ab0ae8 100644 --- a/tests/libc/time_misc.c +++ b/tests/libc/time_misc.c @@ -43,6 +43,6 @@ int main(int argc, char **argv) /* Local Variables: -compile-command: "cd ../.. && ptests.byte -show -config gcc @PTEST_DIR@/time.c" +compile-command: "cd ../.. && ptests.byte -show -config gcc ./time.c" End: */ diff --git a/tests/metrics/libc.c b/tests/metrics/libc.c index 24a6f7278783c020da7b24d15deddcfe140f1a9e..5fb71ab2fdc791240f740695d9f369821727b970 100644 --- a/tests/metrics/libc.c +++ b/tests/metrics/libc.c @@ -3,7 +3,7 @@ EXECNOW: LOG @PTEST_NAME@_metrics.res LOG @PTEST_NAME@_metrics.err @frama-c@ @PTEST_FILE@ -metrics -metrics-libc -then -metrics-no-libc | %{dep:@PTEST_SUITE_DIR@/../libc/check_some_metrics.sh} "> 5" "> 100" "= 0" "> 10" "= 2" "= 6" "= 0" "= 0" "= 0" "= 4" >@PTEST_NAME@_metrics.res 2>@PTEST_NAME@_metrics.err STDOPT: #"-metrics-eva-cover" LOG: libc.json - STDOPT: #"-metrics-libc -metrics-output @PTEST_RESULT@/libc.json" + STDOPT: #"-metrics-libc -metrics-output ./libc.json" */ #include <ctype.h> #include <stdio.h> // defines external variables diff --git a/tests/metrics/used-files.i b/tests/metrics/used-files.i index 1e26ff05add3c121cbbe4c02dced14566e998662..3d0d4b6aea898718c0226b8e6720ae3162f4c22a 100644 --- a/tests/metrics/used-files.i +++ b/tests/metrics/used-files.i @@ -1,6 +1,6 @@ /* run.config - MACRO: SOURCES %{dep:@PTEST_DIR@/@PTEST_NAME@1.i} %{dep:@PTEST_DIR@/@PTEST_NAME@2.i} %{dep:@PTEST_DIR@/@PTEST_NAME@3.i} %{dep:@PTEST_DIR@/@PTEST_NAME@4.i} %{dep:@PTEST_DIR@/@PTEST_NAME@5.i} %{dep:@PTEST_DIR@/@PTEST_NAME@6.i} %{dep:@PTEST_DIR@/@PTEST_NAME@7.i} %{dep:@PTEST_DIR@/@PTEST_NAME@8.i} %{dep:@PTEST_DIR@/@PTEST_NAME@9.c} %{dep:@PTEST_DIR@/@PTEST_NAME@1.h} %{dep:@PTEST_DIR@/@PTEST_NAME@2.h} - DEPS: @PTEST_DIR@/@PTEST_NAME@10.c + MACRO: SOURCES %{dep:./@PTEST_NAME@1.i} %{dep:./@PTEST_NAME@2.i} %{dep:./@PTEST_NAME@3.i} %{dep:./@PTEST_NAME@4.i} %{dep:./@PTEST_NAME@5.i} %{dep:./@PTEST_NAME@6.i} %{dep:./@PTEST_NAME@7.i} %{dep:./@PTEST_NAME@8.i} %{dep:./@PTEST_NAME@9.c} %{dep:./@PTEST_NAME@1.h} %{dep:./@PTEST_NAME@2.h} + DEPS: ./@PTEST_NAME@10.c OPT: -metrics-used-files @SOURCES@ OPT: -metrics-used-files -main g @SOURCES@ */ diff --git a/tests/misc/audit.c b/tests/misc/audit.c index 7582fc95e7fdabdaf04d50c468dfe1932c596eb1..9b469f280e04bb03817386182b243df1fc36919d 100644 --- a/tests/misc/audit.c +++ b/tests/misc/audit.c @@ -1,9 +1,9 @@ /* run.config PLUGIN: @EVA_PLUGINS@ - EXECNOW: BIN audit.json cat %{dep:@PTEST_DIR@/audit-in.json} | sed -e 's:PTEST_DIR:@PTEST_DIR@:' > @PTEST_RESULT@/audit.json 2> @DEV_NULL@ + EXECNOW: BIN audit.json cat %{dep:./audit-in.json} | sed -e 's:PTEST_DIR:.:' > ./audit.json 2> @DEV_NULL@ DEPS: audit_included.h, audit_included_but_not_listed.h LOG: audit-out.json - STDOPT: #"-audit-check %{dep:@PTEST_RESULT@/audit.json} -audit-prepare @PTEST_RESULT@/audit-out.json -kernel-warn-key audit=active" + STDOPT: #"-audit-check %{dep:./audit.json} -audit-prepare ./audit-out.json -kernel-warn-key audit=active" */ #include "audit_included.h" #include "audit_included_but_not_listed.h" diff --git a/tests/misc/bts0525-2.i b/tests/misc/bts0525-2.i index f7d39a9f57803091070a53dfcdae4e6baaa27a7b..946bfe1c022b76dd7fc54f3329bae9ddd3505ea3 100644 --- a/tests/misc/bts0525-2.i +++ b/tests/misc/bts0525-2.i @@ -1,5 +1,5 @@ /* run.config - OPT: -typecheck %{dep:@PTEST_DIR@/bts0525.i} + OPT: -typecheck %{dep:./bts0525.i} */ typedef enum {E1=2, E2} T_EN1 ; diff --git a/tests/misc/bts0525.i b/tests/misc/bts0525.i index bfbff38d31f30ec505a543eaf9f799ff1294e20c..c2a76ec1e2507cb68c6d4755d108c41422fc8f78 100644 --- a/tests/misc/bts0525.i +++ b/tests/misc/bts0525.i @@ -1,5 +1,5 @@ /* run.config - OPT: %{dep:@PTEST_DIR@/bts0525-2.i} + OPT: %{dep:./bts0525-2.i} */ typedef enum {E3=2, E4} T_EN2 ; typedef enum {E1=2, E2} T_EN1 ; diff --git a/tests/misc/bts0990_link.i b/tests/misc/bts0990_link.i index df2e45884e74332e8003a84b8cc3a784d0f2aa5e..3834bb46876136fa4d16dafd9157bc11c3cb5880 100644 --- a/tests/misc/bts0990_link.i +++ b/tests/misc/bts0990_link.i @@ -1,9 +1,9 @@ /* run.config* EXIT: 1 - OPT: %{dep:@PTEST_DIR@/bts0990_link_1.i} + OPT: %{dep:./bts0990_link_1.i} */ // NB: This test is meant to return an error, as s is declared as an array in -// %{dep:@PTEST_DIR@/bts0990_link_1.i} +// %{dep:./bts0990_link_1.i} char *s; diff --git a/tests/misc/cpp-extra-args-per-file1.c b/tests/misc/cpp-extra-args-per-file1.c index b7e64abcf11b993f77b12f991e9e6c91494b69be..813cc480f15e9b220ce422010ae811d7a781c1fc 100644 --- a/tests/misc/cpp-extra-args-per-file1.c +++ b/tests/misc/cpp-extra-args-per-file1.c @@ -1,5 +1,5 @@ /* run.config - OPT: -no-autoload-plugins -cpp-extra-args="-DGLOBAL" -cpp-extra-args-per-file @PTEST_DIR@/@PTEST_NAME@.c:'-DFILE1 -DMACRO_WITH_QUOTES="\"hello world"\"',@PTEST_DIR@/cpp-extra-args-per-file2.c:"-DFILE2" -print -then %{dep:@PTEST_DIR@/cpp-extra-args-per-file2.c} -no-print + OPT: -no-autoload-plugins -cpp-extra-args="-DGLOBAL" -cpp-extra-args-per-file ./@PTEST_NAME@.c:'-DFILE1 -DMACRO_WITH_QUOTES="\"hello world"\"',./cpp-extra-args-per-file2.c:"-DFILE2" -print -then %{dep:./cpp-extra-args-per-file2.c} -no-print */ #ifndef GLOBAL diff --git a/tests/misc/custom_machdep.c b/tests/misc/custom_machdep.c index 2de12207aa57799e9dccfc665cd76d419629bcba..c51544e41f4e98bea09bda86ebeb580a1c6db8b8 100644 --- a/tests/misc/custom_machdep.c +++ b/tests/misc/custom_machdep.c @@ -2,7 +2,7 @@ EXIT: 1 MODULE: @PTEST_NAME@.cmxs DEPS: @PTEST_NAME@/__fc_machdep_custom.h - OPT: -cpp-extra-args="-I@PTEST_DIR@/@PTEST_NAME@ -D__FC_MACHDEP_CUSTOM" -machdep custom -print -then -print + OPT: -cpp-extra-args="-I./@PTEST_NAME@ -D__FC_MACHDEP_CUSTOM" -machdep custom -print -then -print COMMENT: we need a -then to test double registering of a machdep */ #include "__fc_machdep_custom.h" diff --git a/tests/misc/global_decl_loc.i b/tests/misc/global_decl_loc.i index 755b5d1a822b7bb62ddfdb6ccb50a6de0fca2925..c9acc56f5dd0c18bcd267c57d5fe311ab0708f90 100644 --- a/tests/misc/global_decl_loc.i +++ b/tests/misc/global_decl_loc.i @@ -1,7 +1,7 @@ /* run.config COMMENT: with dune, the LIBS directive must be replaced by a MODULE directive (see also ./test_config file) MODULE: global_decl_loc - OPT: %{dep:@PTEST_DIR@/global_decl_loc2.i} + OPT: %{dep:./global_decl_loc2.i} */ int g; diff --git a/tests/misc/global_decl_loc2.i b/tests/misc/global_decl_loc2.i index 964f7e09301f4738337d4a33f1a45156d337844a..07967d5c3d7873c33ac86dac295018a2058e335c 100644 --- a/tests/misc/global_decl_loc2.i +++ b/tests/misc/global_decl_loc2.i @@ -2,7 +2,7 @@ COMMENT: with dune, the LIBS directive must be replaced by a MODULE directive (see also ./test_config file) MODULE: global_decl_loc - OPT: %{dep:@PTEST_DIR@/global_decl_loc.i} + OPT: %{dep:./global_decl_loc.i} */ extern int g; diff --git a/tests/misc/log-file.i b/tests/misc/log-file.i index 09a77cc462d57fc1678e9f1263f47bbdbece0569..e52fff894c5cc5b1de7ef07b093260981eb791a6 100644 --- a/tests/misc/log-file.i +++ b/tests/misc/log-file.i @@ -7,9 +7,9 @@ LOG: log-file-value-default.txt LOG: plugin-log-all.txt PLUGIN: @EVA_PLUGINS@ - STDOPT: #"-kernel-log w:@PTEST_RESULT@/log-file-kernel-warnings.txt,r:@PTEST_RESULT@/log-file-kernel-results.txt -eva-log f:@PTEST_RESULT@/log-file-feedback.txt,afewr:@PTEST_RESULT@/log-file-value-all.txt -eva-log :@PTEST_RESULT@/log-file-value-default.txt -then -kernel-log f:@PTEST_RESULT@/log-file-feedback.txt" + STDOPT: #"-kernel-log w:./log-file-kernel-warnings.txt,r:./log-file-kernel-results.txt -eva-log f:./log-file-feedback.txt,afewr:./log-file-value-all.txt -eva-log :./log-file-value-default.txt -then -kernel-log f:./log-file-feedback.txt" MODULE: plugin_log - OPT: -kernel-msg-key foo-category -kernel-log=a:@PTEST_RESULT@/plugin-log-all.txt + OPT: -kernel-msg-key foo-category -kernel-log=a:./plugin-log-all.txt DONTRUN: test disabled due to non-deterministic errors in CI */ int f(void); // generates kernel warning (missing spec) diff --git a/tests/misc/mergestruct2.i b/tests/misc/mergestruct2.i index 4c8ac341c4cf9e00222c7079209b6c5746dd8745..b51c06c0c1771822d45706f003a7000ba6ca78a6 100644 --- a/tests/misc/mergestruct2.i +++ b/tests/misc/mergestruct2.i @@ -1,5 +1,5 @@ /* run.config - OPT: -print %{dep:@PTEST_DIR@/mergestruct3.i} %{dep:@PTEST_DIR@/mergestruct1.i} + OPT: -print %{dep:./mergestruct3.i} %{dep:./mergestruct1.i} */ struct s *p; diff --git a/tests/misc/mergestruct3.i b/tests/misc/mergestruct3.i index 3a8943a8d8f8a892ad78f6c89deab5c7cfca55d9..4eac837dec6ce42f832a23357a4c6fdac2ec7c80 100644 --- a/tests/misc/mergestruct3.i +++ b/tests/misc/mergestruct3.i @@ -1,6 +1,6 @@ /* run.config - OPT: -print %{dep:@PTEST_DIR@/mergestruct1.i} %{dep:@PTEST_DIR@/mergestruct2.i} - OPT: -print %{dep:@PTEST_DIR@/mergestruct2.i} %{dep:@PTEST_DIR@/mergestruct1.i} + OPT: -print %{dep:./mergestruct1.i} %{dep:./mergestruct2.i} + OPT: -print %{dep:./mergestruct2.i} %{dep:./mergestruct1.i} */ struct s { float a; } s2; diff --git a/tests/misc/my_visitor.c b/tests/misc/my_visitor.c index ffb4b64f50373a83c58ea1efbeead58e23eee857..59c5651e8168f04d2aef08790a8e1f651dc57870 100644 --- a/tests/misc/my_visitor.c +++ b/tests/misc/my_visitor.c @@ -3,10 +3,10 @@ CMD: @frama-c@ @PTEST_OPTIONS@ PLUGIN: MODULE: @PTEST_NAME@ - EXECNOW: LOG my_visitor_sav.res LOG my_visitor_sav.err BIN my_visitor.sav @frama-c@ @PTEST_FILE@ -main f -save @PTEST_RESULT@/@PTEST_NAME@.sav > @PTEST_RESULT@/@PTEST_NAME@_sav.res 2> @PTEST_RESULT@/@PTEST_NAME@_sav.err - OPT: -load %{dep:@PTEST_RESULT@/@PTEST_NAME@.sav} -no-my-visitor -print + EXECNOW: LOG my_visitor_sav.res LOG my_visitor_sav.err BIN my_visitor.sav @frama-c@ @PTEST_FILE@ -main f -save ./@PTEST_NAME@.sav > ./@PTEST_NAME@_sav.res 2> ./@PTEST_NAME@_sav.err + OPT: -load %{dep:./@PTEST_NAME@.sav} -no-my-visitor -print MODULE: - OPT: -load %{dep:@PTEST_RESULT@/@PTEST_NAME@.sav} -print + OPT: -load %{dep:./@PTEST_NAME@.sav} -print */ int f() { int y = 0; diff --git a/tests/misc/oracle/audit-out.json b/tests/misc/oracle/audit-out.json index a8b104f9be78dc2ab732dd1655dcd1da30bfa25c..a30dab6035590e9ad28c191c7141cfbb4dda5a71 100644 --- a/tests/misc/oracle/audit-out.json +++ b/tests/misc/oracle/audit-out.json @@ -73,7 +73,7 @@ } }, "sources": { - "audit.c": "4707fbd9cf9d2b4b97da7e3cc446e7ba", + "audit.c": "44a9f9d8ff1e603b31021e4b945c829e", "audit_included.h": "c2cc488143a476f69cf2ed04c3439e6e", "audit_included_but_not_listed.h": "c2cc488143a476f69cf2ed04c3439e6e" } diff --git a/tests/misc/oracle/audit.res.oracle b/tests/misc/oracle/audit.res.oracle index c0a3b36a916efc05e641dc3ea390b6038d593dde..e846caa89554a01368b309c61db513bbb0108380 100644 --- a/tests/misc/oracle/audit.res.oracle +++ b/tests/misc/oracle/audit.res.oracle @@ -1,5 +1,5 @@ [kernel:audit] Warning: - different hashes for audit.c: got 4707fbd9cf9d2b4b97da7e3cc446e7ba, expected <none> (not in list) + different hashes for audit.c: got 44a9f9d8ff1e603b31021e4b945c829e, expected <none> (not in list) [kernel:audit] Warning: different hashes for audit_included.h: got c2cc488143a476f69cf2ed04c3439e6e, expected <none> (not in list) [kernel:audit] Warning: diff --git a/tests/pdg/call.c b/tests/pdg/call.c index cb47bb43fd1714890dba74abdd2be567f17948a0..2b5d7ef5e264bf4fa9dd84e1d8f7ad67d0da98d9 100644 --- a/tests/pdg/call.c +++ b/tests/pdg/call.c @@ -1,6 +1,6 @@ /* run.config - STDOPT: +"-lib-entry -main g -pdg -pdg-dot @PTEST_RESULT@/call " + STDOPT: +"-lib-entry -main g -pdg -pdg-dot ./call " */ /* Ne pas modifier : exemple utilisé dans le rapport. */ diff --git a/tests/pdg/doc_dot.c b/tests/pdg/doc_dot.c index 1b3f02807ad2149aea970de34ce39f3c74066f92..2b0064d71bb6a5bd7cf735d8d40f66708724f678 100644 --- a/tests/pdg/doc_dot.c +++ b/tests/pdg/doc_dot.c @@ -1,8 +1,8 @@ /* run.config - STDOPT: +"-lib-entry -main g -fct-pdg g -pdg-dot @PTEST_RESULT@/doc" + STDOPT: +"-lib-entry -main g -fct-pdg g -pdg-dot ./doc" */ /* To build the svg file: - * dot -Tsvg @PTEST_RESULT@/doc.g.dot > @PTEST_RESULT@/doc.g.svg + * dot -Tsvg ./doc.g.dot > ./doc.g.svg */ int G1, G2, T[10]; diff --git a/tests/pdg/dyn_dpds.c b/tests/pdg/dyn_dpds.c index 4d0909596c43be9d4737d2e1771be1ff8363ac79..4c18b2bd0a0ffc94bbd364989b7db5427f745c9b 100644 --- a/tests/pdg/dyn_dpds.c +++ b/tests/pdg/dyn_dpds.c @@ -6,10 +6,10 @@ /* To have a look at the dot PDG : - bin/toplevel.byte -deps -pdg-dot pdg -fct-pdg main %{dep:@PTEST_DIR@/@PTEST_NAME@.c} ; + bin/toplevel.byte -deps -pdg-dot pdg -fct-pdg main %{dep:./@PTEST_NAME@.c} ; zgrviewer pdg.main.dot - or use @PTEST_DIR@/@PTEST_NAME@.ml to test the dynamic dependencies. + or use ./@PTEST_NAME@.ml to test the dynamic dependencies. */ int G; diff --git a/tests/pdg/loops.c b/tests/pdg/loops.c index e6991c95603709ab5a1d71ec4e7aadd8a2dd8340..fdcdf71a2c22685babf50dacb29c2ca24854d492 100644 --- a/tests/pdg/loops.c +++ b/tests/pdg/loops.c @@ -20,15 +20,15 @@ F=maybe_infinite Pour voir le CFG : -bin/toplevel.opt -lib-entry -main $F -deps -verbose @PTEST_DIR@/loops.c +bin/toplevel.opt -lib-entry -main $F -deps -verbose ./loops.c zgrviewer ./$F_cfg.dot Pour voir les postdominateurs : -bin/toplevel.opt -lib-entry -main $F -fct-pdg $F -dot-postdom p %{dep:@PTEST_DIR@/loops.c} ; +bin/toplevel.opt -lib-entry -main $F -fct-pdg $F -dot-postdom p %{dep:./loops.c} ; zgrviewer ./p.$F.dot Pour voir le PDG : -bin/toplevel.opt -lib-entry -main $F -fct-pdg $F -pdg-dot pdg %{dep:@PTEST_DIR@/loops.c} ; +bin/toplevel.opt -lib-entry -main $F -fct-pdg $F -pdg-dot pdg %{dep:./loops.c} ; zgrviewer ./pdg.$F.dot */ @@ -123,7 +123,7 @@ L : n--; return n; } /* this function is similar to [test_ctrl_dpd_multiple] in - * [@PTEST_DIR@/dpds_intra.c] but the value analysis converges, + * [./dpds_intra.c] but the value analysis converges, * so we can see that [x=x+2;] has a control dependency on both [n<0] and [x<n]. */ int non_natural_loop (int n) { diff --git a/tests/pretty_printing/test_config b/tests/pretty_printing/test_config index ff6680cfb28502ee263c420ddbb028c47ffde076..5feb4989bf0a2bfd00639668a9521d46037895a4 100644 --- a/tests/pretty_printing/test_config +++ b/tests/pretty_printing/test_config @@ -3,4 +3,4 @@ COMMENT: the default option checks that pretty-printed code can be merged COMMENT: with the original one PLUGIN: CMD: FRAMAC_PLUGIN=tests/.empty @frama-c@ -OPT: @PTEST_FILE@ -print -then -ocode @PTEST_RESULT@/ocode_@PTEST_NAME@.c -print -then @PTEST_RESULT@/ocode_@PTEST_NAME@.c @PTEST_FILE@ -ocode="" -print +OPT: @PTEST_FILE@ -print -then -ocode ./ocode_@PTEST_NAME@.c -print -then ./ocode_@PTEST_NAME@.c @PTEST_FILE@ -ocode="" -print diff --git a/tests/scope/scope.c b/tests/scope/scope.c index 341b5a51f4614bc27f2f5fcef5ff50f844bfca64..d179afe5c02845ede300974f2f742b92a6d8f7f9 100644 --- a/tests/scope/scope.c +++ b/tests/scope/scope.c @@ -4,9 +4,9 @@ OPT: -eva @EVA_CONFIG@ -main loop */ /* - * bin/viewer.byte -main f %{dep:@PTEST_DIR@/scope.c} -eva - * bin/viewer.byte -main f2 %{dep:@PTEST_DIR@/scope.c} -eva - * bin/viewer.byte -main loop %{dep:@PTEST_DIR@/scope.c} -eva + * bin/viewer.byte -main f %{dep:./scope.c} -eva + * bin/viewer.byte -main f2 %{dep:./scope.c} -eva + * bin/viewer.byte -main loop %{dep:./scope.c} -eva */ #include "__fc_builtin.h" diff --git a/tests/scope/zones.c b/tests/scope/zones.c index c13c5daea5d146f84d0b9898ca51cf4b473b8571..e50466cacc188813d7d1bb6ec5e76848fe822281 100644 --- a/tests/scope/zones.c +++ b/tests/scope/zones.c @@ -4,7 +4,7 @@ OPT: -eva @EVA_OPTIONS@ */ -/* bin/viewer.opt -eva %{dep:@PTEST_DIR@/@PTEST_NAME@.c} */ +/* bin/viewer.opt -eva %{dep:./@PTEST_NAME@.c} */ int T [10]; struct Tstr { int a; int b; } S; diff --git a/tests/slicing/annot.i b/tests/slicing/annot.i index 16b203a069a0bd805272007cebb754491df23f27..a7f31f175eeba96fa18c58e363af33abc4e7aaf0 100644 --- a/tests/slicing/annot.i +++ b/tests/slicing/annot.i @@ -1,6 +1,6 @@ /* run.config - STDOPT: +"-main f1 -slice-assert f1 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " - STDOPT: +"-main f2 -slice-assert f2 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " + STDOPT: +"-main f1 -slice-assert f1 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " + STDOPT: +"-main f2 -slice-assert f2 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " */ extern int x, z; diff --git a/tests/slicing/bts0184.i b/tests/slicing/bts0184.i index e31dc44d77a27f9c98da31d218e7f9266efa7f91..f23723e131cfb220da8ed61348a64de1ffb15f2b 100644 --- a/tests/slicing/bts0184.i +++ b/tests/slicing/bts0184.i @@ -1,5 +1,5 @@ /* run.config - STDOPT: +"-slice-pragma x -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " + STDOPT: +"-slice-pragma x -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " **/ int x(int y, int z) { diff --git a/tests/slicing/bts0190.i b/tests/slicing/bts0190.i index 75f8814a164f0d5092fa373cdfe26f1a94d15c03..fc71f6c18ec146a7675765580da285dbbfbee734 100644 --- a/tests/slicing/bts0190.i +++ b/tests/slicing/bts0190.i @@ -1,5 +1,5 @@ /* run.config -STDOPT: +"-slicing-warn-key cmdline=active -slice-rd y -then-on 'Slicing export' -set-project-as-default -print -check -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " +STDOPT: +"-slicing-warn-key cmdline=active -slice-rd y -then-on 'Slicing export' -set-project-as-default -print -check -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " */ int z1(void); diff --git a/tests/slicing/bts0950_annot.i b/tests/slicing/bts0950_annot.i index 9ee94a7450fb3944f7f8b7ae9aea144213b77ab5..14d7b8515dae8bfb9f4e9431e93c9687b47dfbe5 100644 --- a/tests/slicing/bts0950_annot.i +++ b/tests/slicing/bts0950_annot.i @@ -1,5 +1,5 @@ /* run.config - STDOPT: +"-eva -slice-value a -then-on 'Slicing export' -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check" + STDOPT: +"-eva -slice-value a -then-on 'Slicing export' -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check" */ /*@ requires \valid(dest); */ extern void cpy(int *dest, const int *src); diff --git a/tests/slicing/bts1248.i b/tests/slicing/bts1248.i index 78d46f42b917f71edae00a90d4f84a49b999590c..23240ea8871efcbc3f250da0e973a828c5369915 100644 --- a/tests/slicing/bts1248.i +++ b/tests/slicing/bts1248.i @@ -1,5 +1,5 @@ /* run.config -STDOPT: +"-slice-rd x -main f -slicing-project-name p -then-on 'p export' -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i" +STDOPT: +"-slice-rd x -main f -slicing-project-name p -then-on 'p export' -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i" */ int f(void) { diff --git a/tests/slicing/bts1445.i b/tests/slicing/bts1445.i index 541654b7b8c5930091c85a943046171c2d3f3ddf..d2d55060322793bb2a05892fe81c0fffc5785bea 100644 --- a/tests/slicing/bts1445.i +++ b/tests/slicing/bts1445.i @@ -1,6 +1,6 @@ /* run.config -STDOPT: +"-slice-calls main -then-on 'Slicing export' -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i" -STDOPT: +"-slice-calls f -main f -then-on 'Slicing export' -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i" +STDOPT: +"-slice-calls main -then-on 'Slicing export' -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i" +STDOPT: +"-slice-calls f -main f -then-on 'Slicing export' -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i" */ int x = 0; diff --git a/tests/slicing/bts1684.i b/tests/slicing/bts1684.i index 73896eec1be98302b2489eb0acbe2f4937164191..0710356a2cada15b60ee5bcf0f20fbe3327eeaaa 100644 --- a/tests/slicing/bts1684.i +++ b/tests/slicing/bts1684.i @@ -1,5 +1,5 @@ /* run.config - STDOPT: +"-slice-calls main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i" + STDOPT: +"-slice-calls main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i" */ // bug about slicing CALLS TO MAIN function. double d1, d2, d3; diff --git a/tests/slicing/bts1768.i b/tests/slicing/bts1768.i index 2f0ede405278ce4946fc1e8a0c2e0d931edf5955..4f4be2f640c0794aa40e8c4277c8301aa7e3e808 100644 --- a/tests/slicing/bts1768.i +++ b/tests/slicing/bts1768.i @@ -1,5 +1,5 @@ /* run.config - STDOPT: +"-main main -slice-pragma main -ulevel 10 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i" + STDOPT: +"-main main -slice-pragma main -ulevel 10 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i" */ int choix ; int state = 1; diff --git a/tests/slicing/bts179.i b/tests/slicing/bts179.i index 790b4207a137a762a6efbeb0cd63535efb0243ea..c6268e81497ba85ee26d425ecb9b5f649c8e879b 100644 --- a/tests/slicing/bts179.i +++ b/tests/slicing/bts179.i @@ -1,6 +1,6 @@ /* run.config - STDOPT: +"-slice-return main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i" - STDOPT: +"-slice-pragma main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i" + STDOPT: +"-slice-return main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i" + STDOPT: +"-slice-pragma main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i" STDOPT: +"-sparecode-analysis" */ diff --git a/tests/slicing/bts283.i b/tests/slicing/bts283.i index b22c8de9fc8ddd070761f4f468a31302b3ff7424..2e73754243806c72153d13421c9546d708469b6a 100644 --- a/tests/slicing/bts283.i +++ b/tests/slicing/bts283.i @@ -1,5 +1,5 @@ /* run.config - STDOPT: +"-slice-return main -slice-undef-functions -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i" + STDOPT: +"-slice-return main -slice-undef-functions -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i" */ int x,y,z; diff --git a/tests/slicing/bts326.i b/tests/slicing/bts326.i index 75259064309da53546193ec0fde9ad8c6c5f58ea..b11e7b675c55a9626b75c2b9fb1298b65adc4fa2 100644 --- a/tests/slicing/bts326.i +++ b/tests/slicing/bts326.i @@ -1,5 +1,5 @@ /* run.config - STDOPT: +"-calldeps -slice-return main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-calldeps" + STDOPT: +"-calldeps -slice-return main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-calldeps" */ /* Problem : f(1) should be sliced out. See BTS#326 */ int t[2] ; diff --git a/tests/slicing/bts335.i b/tests/slicing/bts335.i index 6a2d334787fc595f000fdee61b4822bd6dd85e4d..942dde3dcff1816e29b6e7af1dd44dd02c80bcfd 100644 --- a/tests/slicing/bts335.i +++ b/tests/slicing/bts335.i @@ -1,10 +1,10 @@ /* run.config - STDOPT: +"-slice-pragma g -calldeps -slicing-level 3 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-calldeps" + STDOPT: +"-slice-pragma g -calldeps -slicing-level 3 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-calldeps" */ /* -bin/toplevel.opt -slice-pragma g -calldeps -slicing-level 3 %{dep:@PTEST_DIR@/bts335.c} -debug 2 -bin/toplevel.opt -pdg-debug -pdg -pdg-debug "-pdg-pot bts335" %{dep:@PTEST_DIR@/bts335.c} +bin/toplevel.opt -slice-pragma g -calldeps -slicing-level 3 %{dep:./bts335.c} -debug 2 +bin/toplevel.opt -pdg-debug -pdg -pdg-debug "-pdg-pot bts335" %{dep:./bts335.c} */ int T[2] = {0, 0}; void f (int i) { T[i]++; } diff --git a/tests/slicing/bts335b.i b/tests/slicing/bts335b.i index 2b0c2897869a9270c61219928480acfc55c91a58..d7a703dbaa1697a14fba86ca3f70df2d32c994da 100644 --- a/tests/slicing/bts335b.i +++ b/tests/slicing/bts335b.i @@ -1,5 +1,5 @@ /* run.config - STDOPT: +"-slice-return main -calldeps -slicing-level 3 -slicing-verbose 2 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-calldeps" + STDOPT: +"-slice-return main -calldeps -slicing-level 3 -slicing-verbose 2 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-calldeps" */ int X, Y; diff --git a/tests/slicing/bts336.i b/tests/slicing/bts336.i index 52ca7d3c7395691f11617ca9358cc302d63aaf29..33ef30d1c3a0437b91441e9b9681d21a184c61af 100644 --- a/tests/slicing/bts336.i +++ b/tests/slicing/bts336.i @@ -1,12 +1,12 @@ /* run.config - STDOPT: +"-slice-return main -calldeps -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-calldeps" - STDOPT: +"-main main2 -slice-return main2 -calldeps -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-calldeps" - STDOPT: +"-main main3 -slice-return main3 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-calldeps" - STDOPT: +"-main main3 -inout -calldeps -slice-return main3 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-calldeps -no-inout" - STDOPT: +"-main main -calldeps -slice-return main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-calldeps" - STDOPT: +"-main main4 -calldeps -slice-return main4 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-calldeps" - STDOPT: +"-main main4 -calldeps -slice-return main4 -slicing-level 3 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-calldeps" - STDOPT: +"-main main5 -calldeps -slice-return main5 -then-on 'Slicing export' -set-project-as-default -print @EVA_OPTIONS@ -calldeps -slice-return main5 -then-on 'Slicing export 2' -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-calldeps" + STDOPT: +"-slice-return main -calldeps -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-calldeps" + STDOPT: +"-main main2 -slice-return main2 -calldeps -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-calldeps" + STDOPT: +"-main main3 -slice-return main3 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-calldeps" + STDOPT: +"-main main3 -inout -calldeps -slice-return main3 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-calldeps -no-inout" + STDOPT: +"-main main -calldeps -slice-return main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-calldeps" + STDOPT: +"-main main4 -calldeps -slice-return main4 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-calldeps" + STDOPT: +"-main main4 -calldeps -slice-return main4 -slicing-level 3 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-calldeps" + STDOPT: +"-main main5 -calldeps -slice-return main5 -then-on 'Slicing export' -set-project-as-default -print @EVA_OPTIONS@ -calldeps -slice-return main5 -then-on 'Slicing export 2' -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-calldeps" */ // something to do to have better results... int T[10]; diff --git a/tests/slicing/bts341.i b/tests/slicing/bts341.i index 9aa1c496f712949574a77413c4068ba48f3fef6c..52b76cbb623fd249655f281143aabefd656c162a 100644 --- a/tests/slicing/bts341.i +++ b/tests/slicing/bts341.i @@ -1,5 +1,5 @@ /* run.config - STDOPT: +"-slice-assert main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check" + STDOPT: +"-slice-assert main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check" */ int main (int c) { if (c) diff --git a/tests/slicing/bts344.i b/tests/slicing/bts344.i index c502e144cb0c34c94ed8a09ebc2bbcb8d5e35e1f..9a92bf28fb84b9287f0f6ad74fcd00a640f24324 100644 --- a/tests/slicing/bts344.i +++ b/tests/slicing/bts344.i @@ -1,6 +1,6 @@ /* run.config - STDOPT: +"-slice-return main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" - STDOPT: +"-slice-return main_bis -main main_bis -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" + STDOPT: +"-slice-return main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" + STDOPT: +"-slice-return main_bis -main main_bis -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" */ int X, Y ; diff --git a/tests/slicing/bts345.i b/tests/slicing/bts345.i index d25661d0786415f753f630961474b128d79cb940..6577548058eb08a143f026b77896b8de5e8f6a84 100644 --- a/tests/slicing/bts345.i +++ b/tests/slicing/bts345.i @@ -1,9 +1,9 @@ /* run.config - STDOPT: +"-slice-return call_top -main call_top -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " - STDOPT: +"-slice-return top -main top -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " - STDOPT: +"-slice-return top -main call_top -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " - STDOPT: +"-slice-return called_by_top -main top -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " - STDOPT: +"-slice-return called_by_top -main call_top -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " + STDOPT: +"-slice-return call_top -main call_top -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " + STDOPT: +"-slice-return top -main top -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " + STDOPT: +"-slice-return top -main call_top -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " + STDOPT: +"-slice-return called_by_top -main top -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " + STDOPT: +"-slice-return called_by_top -main call_top -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " */ int called_indirectly_by_top (int x) { diff --git a/tests/slicing/bts679.i b/tests/slicing/bts679.i index d90857629a1318c1131d282542f1446edc3dc976..d79b3a2dacc3dcc5fa4e0840f919b5b847acf1e7 100644 --- a/tests/slicing/bts679.i +++ b/tests/slicing/bts679.i @@ -1,5 +1,5 @@ /* run.config -STDOPT: +"-slice-return main -then-on 'Slicing export' -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i" +STDOPT: +"-slice-return main -then-on 'Slicing export' -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i" */ void f(void) { return; } int X = 1 ; diff --git a/tests/slicing/bts679b.i b/tests/slicing/bts679b.i index e14ba54a3c485b1d1fe6657ea8f791e1384f0e4e..07196ed9a2456fe19981e6450f653234bfe438fb 100644 --- a/tests/slicing/bts679b.i +++ b/tests/slicing/bts679b.i @@ -1,5 +1,5 @@ /* run.config -STDOPT: +"-slice-assert main -then-on 'Slicing export' -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" +STDOPT: +"-slice-assert main -then-on 'Slicing export' -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" */ int X = 1 ; diff --git a/tests/slicing/bts709.c b/tests/slicing/bts709.c index 90c92abb06d2938a2f333c68a1eb0e161a88f763..1ce3b2f276af490de9a545f1843b3192dfd5db92 100644 --- a/tests/slicing/bts709.c +++ b/tests/slicing/bts709.c @@ -1,5 +1,5 @@ /* run.config - STDOPT: +"-slice-pragma func -no-unicode -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" + STDOPT: +"-slice-pragma func -no-unicode -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" */ #include <assert.h> diff --git a/tests/slicing/bts808.i b/tests/slicing/bts808.i index 7ab5e229ca6a701ea9e60dcc83456235d346aa91..196aa86cfb47b542413cb7a6bbc167944852cc93 100644 --- a/tests/slicing/bts808.i +++ b/tests/slicing/bts808.i @@ -1,5 +1,5 @@ /* run.config -* STDOPT: +"-slice-return main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " +* STDOPT: +"-slice-return main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " */ int f0 (void) { diff --git a/tests/slicing/bts827.i b/tests/slicing/bts827.i index 7d3ce40999d094fad5231ed8902393a5d3044718..ad4c7ad7f9bdbf94d20a22600fd720f69b419a61 100644 --- a/tests/slicing/bts827.i +++ b/tests/slicing/bts827.i @@ -1,5 +1,5 @@ /* run.config - STDOPT: +"-slice-return main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" + STDOPT: +"-slice-return main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" */ /* The problem was a mix-up between f outputs and retrun value. */ diff --git a/tests/slicing/call_accuracy.i b/tests/slicing/call_accuracy.i index 8ee65b76abe0002753d1e649210cedf61fa471c6..a543c9f9c7a4c53d98b8ca6c0bd204096593c0a9 100644 --- a/tests/slicing/call_accuracy.i +++ b/tests/slicing/call_accuracy.i @@ -1,5 +1,5 @@ /* run.config - STDOPT: +"-calldeps -slice-return main -slicing-level 3 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-calldeps" + STDOPT: +"-calldeps -slice-return main -slicing-level 3 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-calldeps" */ int f_cond (int c, int a, int b) { ++a; diff --git a/tests/slicing/call_demo.i b/tests/slicing/call_demo.i index bb8df328eb6ca1d8e61da9f1037f99438afbf4a8..dbb9832311f40904f7e87290f711e6c87cbb5be0 100644 --- a/tests/slicing/call_demo.i +++ b/tests/slicing/call_demo.i @@ -1,6 +1,6 @@ /* run.config - STDOPT: +"-slice-calls call1 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" - STDOPT: +"-slice-calls call2 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" + STDOPT: +"-slice-calls call1 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" + STDOPT: +"-slice-calls call2 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" */ //@ assigns \result \from v; diff --git a/tests/slicing/callwise.i b/tests/slicing/callwise.i index c9f593ac30752d10cb0552d4c9c887264c48ad70..539ba737b7b64e937b79568b40efad1b18a3aa6e 100644 --- a/tests/slicing/callwise.i +++ b/tests/slicing/callwise.i @@ -1,5 +1,5 @@ /* run.config - STDOPT: +"-calldeps -slice-return main -slicing-level 2 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-calldeps" + STDOPT: +"-calldeps -slice-return main -slicing-level 2 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-calldeps" */ int a = 1, b = 1, c = 1, d = 1, *p; diff --git a/tests/slicing/csmith.i b/tests/slicing/csmith.i index 9e976974dd76934eb19d22ad3d5a7317691ea57b..bf492fe694097876ecd1742c833a27ada234f456 100644 --- a/tests/slicing/csmith.i +++ b/tests/slicing/csmith.i @@ -1,5 +1,5 @@ /* run.config - STDOPT: +"-slice-return main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-slice-return main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " COMMENT: STDOPT: +"-main bts906b -fct-pdg bts906b -pdg-print -pdg-verbose 2" STDOPT: +"-main bts906c -fct-pdg bts906c -pdg-print -pdg-verbose 2" diff --git a/tests/slicing/filter.i b/tests/slicing/filter.i index 0caf99c023c81072a49e6aebf04c88792a092e85..453289dcea75bc778bb62defa2ee5d775f024d54 100644 --- a/tests/slicing/filter.i +++ b/tests/slicing/filter.i @@ -1,5 +1,5 @@ /* run.config - STDOPT: +"-slice-return main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-slice-return main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " **/ /* TESTS: this is about [filter] optimisations since sometimes, * slicing results are ok, but the generated new project is not correct. */ diff --git a/tests/slicing/forall_loop_invariant.i b/tests/slicing/forall_loop_invariant.i index 20ef37ca758ddf59bd967bd8662000cb83048802..3bade0c11d0d2ef63d514750a0ed68414679697d 100644 --- a/tests/slicing/forall_loop_invariant.i +++ b/tests/slicing/forall_loop_invariant.i @@ -1,5 +1,5 @@ /* run.config - STDOPT: +"-slice-assert main -then-on 'Slicing export' -print -then-on default -slice-value t -then-on 'Slicing export 2' -print -set-project-as-default -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps" + STDOPT: +"-slice-assert main -then-on 'Slicing export' -print -then-on default -slice-value t -then-on 'Slicing export 2' -print -set-project-as-default -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps" **/ diff --git a/tests/slicing/horwitz.i b/tests/slicing/horwitz.i index 62b29557becfdc37d0f1e27346d55501b8a0935d..41d6cb160f0b8386aa41c5e86b1e15bbe232d639 100644 --- a/tests/slicing/horwitz.i +++ b/tests/slicing/horwitz.i @@ -4,9 +4,9 @@ OPT: @EVA_OPTIONS@ -deps -slicing-level 0 */ -/* bin/toplevel.opt -deps -eva %{dep:@PTEST_DIR@/@PTEST_NAME@.c} */ -/* bin/toplevel.opt -deps -pdg-debug -pdg %{dep:@PTEST_DIR@/@PTEST_NAME@.c} */ -/* cf aussi @PTEST_DIR@/@PTEST_NAME@.ml */ +/* bin/toplevel.opt -deps -eva %{dep:./@PTEST_NAME@.c} */ +/* bin/toplevel.opt -deps -pdg-debug -pdg %{dep:./@PTEST_NAME@.c} */ +/* cf aussi ./@PTEST_NAME@.ml */ int add (int a, int b) { return a+b; diff --git a/tests/slicing/if_many_values.i b/tests/slicing/if_many_values.i index c3129a4ece7e2e8de06f2b15e2439095dd0c79cf..8cfb6e1c3dff865acac5d021e962803dbc458c6c 100644 --- a/tests/slicing/if_many_values.i +++ b/tests/slicing/if_many_values.i @@ -1,5 +1,5 @@ /* run.config - STDOPT: +"-slice-value r -eva-slevel 101 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps" + STDOPT: +"-slice-value r -eva-slevel 101 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps" **/ int r=1; diff --git a/tests/slicing/initialized.i b/tests/slicing/initialized.i index 5d74a46caff65813f38c6805f10d21f0c177fa59..39dded71622a0ce612392a7c204f0fc5ac7ab50c 100644 --- a/tests/slicing/initialized.i +++ b/tests/slicing/initialized.i @@ -1,5 +1,5 @@ /* run.config - STDOPT: +"-slice-assert main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " + STDOPT: +"-slice-assert main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " **/ void main() { diff --git a/tests/slicing/keep_annot.i b/tests/slicing/keep_annot.i index 663d8dcbbaf44c53b2664360430e55dd9245ccc9..3862ae38f9b5cf41da825e25319d90bb74e0c101 100644 --- a/tests/slicing/keep_annot.i +++ b/tests/slicing/keep_annot.i @@ -1,9 +1,9 @@ /* run.config - STDOPT: +"-eva-context-valid-pointers -lib-entry -main f -slice-assert f -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" - STDOPT: +"-eva-context-valid-pointers -lib-entry -main f -slice-assert f -slicing-keep-annotations -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" - STDOPT: +"-eva-context-valid-pointers -lib-entry -main L -slice-pragma L -slicing-keep-annotations -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" - STDOPT: +"-eva-context-valid-pointers -lib-entry -main L -slice-pragma L -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" - STDOPT: +"-slice-return bts1110 -main bts1110 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" + STDOPT: +"-eva-context-valid-pointers -lib-entry -main f -slice-assert f -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" + STDOPT: +"-eva-context-valid-pointers -lib-entry -main f -slice-assert f -slicing-keep-annotations -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" + STDOPT: +"-eva-context-valid-pointers -lib-entry -main L -slice-pragma L -slicing-keep-annotations -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" + STDOPT: +"-eva-context-valid-pointers -lib-entry -main L -slice-pragma L -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" + STDOPT: +"-slice-return bts1110 -main bts1110 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" */ diff --git a/tests/slicing/loop_infinite.i b/tests/slicing/loop_infinite.i index be4b3ddd3ff2dcaa7592fd364b4bddf7e9bdcc66..6563dc2dbd08895f6308c340ee5c182754235eef 100644 --- a/tests/slicing/loop_infinite.i +++ b/tests/slicing/loop_infinite.i @@ -1,5 +1,5 @@ /* run.config - STDOPT: +"-deps -slice-return main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps" + STDOPT: +"-deps -slice-return main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps" */ int main() { volatile int a=0,b,c; diff --git a/tests/slicing/loop_simple.i b/tests/slicing/loop_simple.i index 8ce6b061e66a8b7a1648a7a030b818fd190ea830..690e86f28106dd79e494d85da9977941a1f8186f 100644 --- a/tests/slicing/loop_simple.i +++ b/tests/slicing/loop_simple.i @@ -1,5 +1,5 @@ /* run.config - STDOPT: +"-deps -slice-return main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" + STDOPT: +"-deps -slice-return main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" */ int main() { int a,c; volatile int b = 0; diff --git a/tests/slicing/loops.i b/tests/slicing/loops.i index c090726af1890f478af972a650a7445d939f899b..6b6ffcb301940eff3177b26a0915af06a0d4c488 100644 --- a/tests/slicing/loops.i +++ b/tests/slicing/loops.i @@ -1,29 +1,29 @@ /* run.config - STDOPT: +"-deps -lib-entry -main f1 -slice-pragma f1 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" - STDOPT: +"-deps -lib-entry -main f1 -slice-assert f1 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" - STDOPT: +"-deps -lib-entry -main f2 -slice-pragma f2 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" - STDOPT: +"-deps -lib-entry -main f2 -slice-assert f2 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" - STDOPT: +"-deps -main test_infinite_loop_3 -slice-value G -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" - STDOPT: +"-deps -main test_infinite_loop_4 -slice-value G -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" - STDOPT: +"-deps -main test_infinite_loop_5 -slice-value G -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" - STDOPT: +"-deps -main loop -slice-value Z -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" - STDOPT: +"-deps -slice-calls loop -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" - STDOPT: +"-deps -slice-pragma loop -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" - STDOPT: +"-deps -slice-assert loop -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" - STDOPT: +"-deps -main loop -slice-rd Y -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" - STDOPT: +"-deps -main loop -slice-rd Z -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" - STDOPT: +"-deps -main loop -slice-wr Y -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" - STDOPT: +"-deps -main loop -slice-wr Z -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" - STDOPT: +"-deps -lib-entry -main stop_f1 -slice-pragma stop_f1 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" - STDOPT: +"-deps -lib-entry -main stop_f1 -slice-assert stop_f1 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" - STDOPT: +"-deps -lib-entry -main stop_f2 -slice-pragma stop_f2 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" - STDOPT: +"-deps -lib-entry -main stop_f2 -slice-assert stop_f2 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" - STDOPT: +"-deps -slice-value Z -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" - STDOPT: +"-deps -slice-rd Y -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" - STDOPT: +"-deps -slice-rd Z -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" - STDOPT: +"-deps -slice-wr Y -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" - STDOPT: +"-deps -slice-wr Z -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" - STDOPT: +"-deps -lib-entry -main alarm -slice-threat alarm -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" + STDOPT: +"-deps -lib-entry -main f1 -slice-pragma f1 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" + STDOPT: +"-deps -lib-entry -main f1 -slice-assert f1 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" + STDOPT: +"-deps -lib-entry -main f2 -slice-pragma f2 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" + STDOPT: +"-deps -lib-entry -main f2 -slice-assert f2 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" + STDOPT: +"-deps -main test_infinite_loop_3 -slice-value G -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" + STDOPT: +"-deps -main test_infinite_loop_4 -slice-value G -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" + STDOPT: +"-deps -main test_infinite_loop_5 -slice-value G -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" + STDOPT: +"-deps -main loop -slice-value Z -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" + STDOPT: +"-deps -slice-calls loop -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" + STDOPT: +"-deps -slice-pragma loop -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" + STDOPT: +"-deps -slice-assert loop -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" + STDOPT: +"-deps -main loop -slice-rd Y -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" + STDOPT: +"-deps -main loop -slice-rd Z -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" + STDOPT: +"-deps -main loop -slice-wr Y -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" + STDOPT: +"-deps -main loop -slice-wr Z -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" + STDOPT: +"-deps -lib-entry -main stop_f1 -slice-pragma stop_f1 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" + STDOPT: +"-deps -lib-entry -main stop_f1 -slice-assert stop_f1 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" + STDOPT: +"-deps -lib-entry -main stop_f2 -slice-pragma stop_f2 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" + STDOPT: +"-deps -lib-entry -main stop_f2 -slice-assert stop_f2 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" + STDOPT: +"-deps -slice-value Z -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" + STDOPT: +"-deps -slice-rd Y -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" + STDOPT: +"-deps -slice-rd Z -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" + STDOPT: +"-deps -slice-wr Y -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" + STDOPT: +"-deps -slice-wr Z -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" + STDOPT: +"-deps -lib-entry -main alarm -slice-threat alarm -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-deps" */ diff --git a/tests/slicing/ptr_fct.i b/tests/slicing/ptr_fct.i index ae0a6a538b9d91dea642cd7c3ed072db81655dfd..07f200d5b9eeb1ee8b4b3123ac0b35f3d05116b9 100644 --- a/tests/slicing/ptr_fct.i +++ b/tests/slicing/ptr_fct.i @@ -1,5 +1,5 @@ /* run.config - STDOPT: +"-main h -slice-return h -slicing-level 1 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-main h -slice-return h -slicing-level 1 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " */ int X ; diff --git a/tests/slicing/same_sliced_name_bts1422.i b/tests/slicing/same_sliced_name_bts1422.i index ff052185f05512c3c457d6a1f1c7fa30a4b951cf..e7af70ca76d352f5877bc175fef0aeaa9214cfa6 100644 --- a/tests/slicing/same_sliced_name_bts1422.i +++ b/tests/slicing/same_sliced_name_bts1422.i @@ -1,5 +1,5 @@ /* run.config -STDOPT: +"-main foo -slice-value y -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " +STDOPT: +"-main foo -slice-value y -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " */ int y; diff --git a/tests/slicing/select_by_annot.i b/tests/slicing/select_by_annot.i index b3a6edc99a83b8681b349298b942e5888ca817a0..751793b0c27928cacc419ad6151f64eba1379f59 100644 --- a/tests/slicing/select_by_annot.i +++ b/tests/slicing/select_by_annot.i @@ -4,20 +4,20 @@ OPT: @EVA_OPTIONS@ -deps -lib-entry -main main MODULE: - OPT: @EVA_OPTIONS@ -deps -lib-entry -main main -slice-pragma main -then-on 'Slicing export' -set-project-as-default -print -check -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps - OPT: @EVA_OPTIONS@ -deps -lib-entry -main main -slice-assert main -then-on 'Slicing export' -set-project-as-default -print -check -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps - OPT: @EVA_OPTIONS@ -deps -lib-entry -main main -slice-pragma modifS -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -check -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps - OPT: @EVA_OPTIONS@ -deps -lib-entry -main main -slice-pragma f1 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -check -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps - OPT: @EVA_OPTIONS@ -deps -lib-entry -main main -slice-pragma f2 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -check -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps - OPT: @EVA_OPTIONS@ -deps -lib-entry -main main -slice-pragma f3 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -check -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps - OPT: @EVA_OPTIONS@ -deps -lib-entry -main main -slice-pragma f4 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -check -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps - OPT: @EVA_OPTIONS@ -deps -lib-entry -main main -slice-pragma f5 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -check -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps - OPT: @EVA_OPTIONS@ -deps -lib-entry -main main -slice-pragma f6 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -check -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps - OPT: @EVA_OPTIONS@ -deps -lib-entry -main main -slice-pragma f7 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -check -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps - OPT: @EVA_OPTIONS@ -deps -lib-entry -main main -slice-loop-inv f8 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -check -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps - OPT: @EVA_OPTIONS@ -deps -lib-entry -main main -slice-pragma f8 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -check -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps - OPT: @EVA_OPTIONS@ -deps -lib-entry -main main -slice-assert f8 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -check -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps - OPT: @EVA_OPTIONS@ -deps -lib-entry -main main -slice-pragma f9 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -check -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps + OPT: @EVA_OPTIONS@ -deps -lib-entry -main main -slice-pragma main -then-on 'Slicing export' -set-project-as-default -print -check -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps + OPT: @EVA_OPTIONS@ -deps -lib-entry -main main -slice-assert main -then-on 'Slicing export' -set-project-as-default -print -check -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps + OPT: @EVA_OPTIONS@ -deps -lib-entry -main main -slice-pragma modifS -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -check -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps + OPT: @EVA_OPTIONS@ -deps -lib-entry -main main -slice-pragma f1 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -check -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps + OPT: @EVA_OPTIONS@ -deps -lib-entry -main main -slice-pragma f2 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -check -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps + OPT: @EVA_OPTIONS@ -deps -lib-entry -main main -slice-pragma f3 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -check -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps + OPT: @EVA_OPTIONS@ -deps -lib-entry -main main -slice-pragma f4 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -check -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps + OPT: @EVA_OPTIONS@ -deps -lib-entry -main main -slice-pragma f5 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -check -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps + OPT: @EVA_OPTIONS@ -deps -lib-entry -main main -slice-pragma f6 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -check -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps + OPT: @EVA_OPTIONS@ -deps -lib-entry -main main -slice-pragma f7 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -check -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps + OPT: @EVA_OPTIONS@ -deps -lib-entry -main main -slice-loop-inv f8 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -check -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps + OPT: @EVA_OPTIONS@ -deps -lib-entry -main main -slice-pragma f8 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -check -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps + OPT: @EVA_OPTIONS@ -deps -lib-entry -main main -slice-assert f8 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -check -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps + OPT: @EVA_OPTIONS@ -deps -lib-entry -main main -slice-pragma f9 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -check -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps */ struct Tstr { int a; int b; } S; diff --git a/tests/slicing/select_calls.i b/tests/slicing/select_calls.i index 1b09ac62bde4f363c2b22387c6a4be3fc36f4b5e..5f13556a7ce9c8de8091148568967d7f765071f2 100644 --- a/tests/slicing/select_calls.i +++ b/tests/slicing/select_calls.i @@ -1,6 +1,6 @@ /* run.config - STDOPT: +"-lib-entry -main f -slice-calls send -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " - STDOPT: +"-lib-entry -main g -slice-calls nothing -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-lib-entry -main f -slice-calls send -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-lib-entry -main g -slice-calls nothing -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " */ void nothing (void); diff --git a/tests/slicing/select_return.i b/tests/slicing/select_return.i index 24f773f35814abf3c5bd31aed00c3b09d8d71007..2baa8046238f8a3e7b725b3f99df95394392d58c 100644 --- a/tests/slicing/select_return.i +++ b/tests/slicing/select_return.i @@ -1,26 +1,26 @@ /* run.config - STDOPT: +"-slice-calls send -lib-entry -main g -slicing-level 0 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " - STDOPT: +"-slice-calls send -lib-entry -main g -slicing-level 1 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " - STDOPT: +"-slice-calls send -lib-entry -main g -slicing-level 2 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " - STDOPT: +"-slice-calls send -lib-entry -main g -slicing-level 3 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " - STDOPT: +"-slice-calls send,send_bis -lib-entry -main g -slicing-level 0 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " - STDOPT: +"-slice-calls send,send_bis -lib-entry -main g -slicing-level 1 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " - STDOPT: +"-slice-calls send,send_bis -lib-entry -main g -slicing-level 2 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " - STDOPT: +"-slice-calls send,send_bis -lib-entry -main g -slicing-level 3 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " - STDOPT: +"-slice-calls send,send_bis -lib-entry -main g -slicing-level 1 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " - STDOPT: +"-slice-calls send,send_bis -lib-entry -main g -slicing-level 2 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " - STDOPT: +"-slice-calls send,send_bis -lib-entry -main g -slicing-level 3 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " - STDOPT: +"-slice-return f -lib-entry -main g -slicing-level 0 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " - STDOPT: +"-slice-return f -lib-entry -main g -slicing-level 1 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " - STDOPT: +"-slice-return f -lib-entry -main g -slicing-level 2 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " - STDOPT: +"-slice-return f -lib-entry -main g -slicing-level 3 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " - STDOPT: +"-slice-pragma f -lib-entry -main g -slicing-level 0 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " - STDOPT: +"-slice-pragma f -lib-entry -main g -slicing-level 1 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " - STDOPT: +"-slice-pragma f -lib-entry -main g -slicing-level 2 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " - STDOPT: +"-slice-pragma f -lib-entry -main g -slicing-level 3 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " - STDOPT: +"-slice-value H -lib-entry -main g -slicing-level 1 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " - STDOPT: +"-slice-value H -lib-entry -main g -slicing-level 2 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " - STDOPT: +"-slice-value H -lib-entry -main g -slicing-level 3 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " + STDOPT: +"-slice-calls send -lib-entry -main g -slicing-level 0 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " + STDOPT: +"-slice-calls send -lib-entry -main g -slicing-level 1 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " + STDOPT: +"-slice-calls send -lib-entry -main g -slicing-level 2 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " + STDOPT: +"-slice-calls send -lib-entry -main g -slicing-level 3 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " + STDOPT: +"-slice-calls send,send_bis -lib-entry -main g -slicing-level 0 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " + STDOPT: +"-slice-calls send,send_bis -lib-entry -main g -slicing-level 1 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " + STDOPT: +"-slice-calls send,send_bis -lib-entry -main g -slicing-level 2 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " + STDOPT: +"-slice-calls send,send_bis -lib-entry -main g -slicing-level 3 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " + STDOPT: +"-slice-calls send,send_bis -lib-entry -main g -slicing-level 1 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " + STDOPT: +"-slice-calls send,send_bis -lib-entry -main g -slicing-level 2 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " + STDOPT: +"-slice-calls send,send_bis -lib-entry -main g -slicing-level 3 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " + STDOPT: +"-slice-return f -lib-entry -main g -slicing-level 0 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " + STDOPT: +"-slice-return f -lib-entry -main g -slicing-level 1 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " + STDOPT: +"-slice-return f -lib-entry -main g -slicing-level 2 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " + STDOPT: +"-slice-return f -lib-entry -main g -slicing-level 3 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " + STDOPT: +"-slice-pragma f -lib-entry -main g -slicing-level 0 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " + STDOPT: +"-slice-pragma f -lib-entry -main g -slicing-level 1 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " + STDOPT: +"-slice-pragma f -lib-entry -main g -slicing-level 2 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " + STDOPT: +"-slice-pragma f -lib-entry -main g -slicing-level 3 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " + STDOPT: +"-slice-value H -lib-entry -main g -slicing-level 1 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " + STDOPT: +"-slice-value H -lib-entry -main g -slicing-level 2 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " + STDOPT: +"-slice-value H -lib-entry -main g -slicing-level 3 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " */ int G,H,I; diff --git a/tests/slicing/select_return_bis.i b/tests/slicing/select_return_bis.i index b4c1a38d5b58a13bd6afa893e222fead03de3363..da2dbbb7fd89e2320c7293016707ce0d1457cad7 100644 --- a/tests/slicing/select_return_bis.i +++ b/tests/slicing/select_return_bis.i @@ -1,15 +1,15 @@ /* run.config - STDOPT: +"-slice-calls send -lib-entry -main g -slicing-level 0 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check" - STDOPT: +"-slice-calls send -lib-entry -main g -slicing-level 1 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check" - STDOPT: +"-slice-calls send -lib-entry -main g -slicing-level 2 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check" - STDOPT: +"-slice-calls send -lib-entry -main g -slicing-level 3 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check" - STDOPT: +"-slice-calls send,send_bis -lib-entry -main g -slicing-level 0 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check" - STDOPT: +"-slice-calls send,send_bis -lib-entry -main g -slicing-level 1 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check" - STDOPT: +"-slice-calls send,send_bis -lib-entry -main g -slicing-level 2 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check" - STDOPT: +"-slice-calls send,send_bis -lib-entry -main g -slicing-level 3 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check" - STDOPT: +"-slice-calls send,send_bis -lib-entry -main g -slicing-level 1 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check" - STDOPT: +"-slice-calls send,send_bis -lib-entry -main g -slicing-level 2 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check" - STDOPT: +"-slice-calls send,send_bis -lib-entry -main g -slicing-level 3 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check" + STDOPT: +"-slice-calls send -lib-entry -main g -slicing-level 0 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check" + STDOPT: +"-slice-calls send -lib-entry -main g -slicing-level 1 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check" + STDOPT: +"-slice-calls send -lib-entry -main g -slicing-level 2 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check" + STDOPT: +"-slice-calls send -lib-entry -main g -slicing-level 3 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check" + STDOPT: +"-slice-calls send,send_bis -lib-entry -main g -slicing-level 0 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check" + STDOPT: +"-slice-calls send,send_bis -lib-entry -main g -slicing-level 1 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check" + STDOPT: +"-slice-calls send,send_bis -lib-entry -main g -slicing-level 2 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check" + STDOPT: +"-slice-calls send,send_bis -lib-entry -main g -slicing-level 3 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check" + STDOPT: +"-slice-calls send,send_bis -lib-entry -main g -slicing-level 1 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check" + STDOPT: +"-slice-calls send,send_bis -lib-entry -main g -slicing-level 2 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check" + STDOPT: +"-slice-calls send,send_bis -lib-entry -main g -slicing-level 3 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check" */ int G,H,I; diff --git a/tests/slicing/sizeof.i b/tests/slicing/sizeof.i index 415bcc3880242b5ee9c0b02cc78c0489c32ee85e..c89dd0ba1f46018d88d2ba6253746f2860c32185 100644 --- a/tests/slicing/sizeof.i +++ b/tests/slicing/sizeof.i @@ -1,17 +1,17 @@ /* run.config - STDOPT: +"-deps -slice-return main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps" - STDOPT: +"-deps -slice-return SizeOf_1 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps" - STDOPT: +"-deps -slice-return SizeOf_2 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps" - STDOPT: +"-deps -slice-return SizeOfE_pt1 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps" - STDOPT: +"-deps -slice-return SizeOfE_pt2 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps" - STDOPT: +"-deps -slice-return SizeOfE_pt3 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps" - STDOPT: +"-deps -slice-return SizeOfE_pt_deref_1 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps" - STDOPT: +"-deps -slice-return SizeOfE_tab_1 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps" - STDOPT: +"-deps -slice-return SizeOfE_pt_tab_1 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps" - STDOPT: +"-deps -slice-return SizeOfE_pt_tab_2 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps" - STDOPT: +"-deps -slice-return SizeOfE_tab_acces_1 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps" - STDOPT: +"-deps -slice-pragma main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps" - STDOPT: +"-deps -slice-assert main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps" + STDOPT: +"-deps -slice-return main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps" + STDOPT: +"-deps -slice-return SizeOf_1 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps" + STDOPT: +"-deps -slice-return SizeOf_2 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps" + STDOPT: +"-deps -slice-return SizeOfE_pt1 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps" + STDOPT: +"-deps -slice-return SizeOfE_pt2 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps" + STDOPT: +"-deps -slice-return SizeOfE_pt3 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps" + STDOPT: +"-deps -slice-return SizeOfE_pt_deref_1 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps" + STDOPT: +"-deps -slice-return SizeOfE_tab_1 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps" + STDOPT: +"-deps -slice-return SizeOfE_pt_tab_1 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps" + STDOPT: +"-deps -slice-return SizeOfE_pt_tab_2 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps" + STDOPT: +"-deps -slice-return SizeOfE_tab_acces_1 -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps" + STDOPT: +"-deps -slice-pragma main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps" + STDOPT: +"-deps -slice-assert main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-deps" */ struct St { int i, *p, tab[5] ; } st ; diff --git a/tests/slicing/slice_behavior.i b/tests/slicing/slice_behavior.i index 17297d029f94f725b3a892516cb6da2758495ba4..d202453bb0c16bc3de259d2450fa6d7c261380b4 100644 --- a/tests/slicing/slice_behavior.i +++ b/tests/slicing/slice_behavior.i @@ -1,5 +1,5 @@ /* run.config - STDOPT: +"-eva -slice-assert f -slicing-level 0 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-eva" + STDOPT: +"-eva -slice-assert f -slicing-level 0 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check -no-eva" */ /*@ requires a > 0; */ int f(int a) { diff --git a/tests/slicing/slice_pragma_stmt.i b/tests/slicing/slice_pragma_stmt.i index 6ad6d043f4b52cfa1e010f6fe019c06c4bc9a627..d72c6f2ba13a607ced0a0e7f8e396bba12780e9c 100644 --- a/tests/slicing/slice_pragma_stmt.i +++ b/tests/slicing/slice_pragma_stmt.i @@ -1,27 +1,27 @@ /* run.config STDOPT: +"-print " - STDOPT: +"-main nop1 -slice-pragma nop1 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " - STDOPT: +"-main nop2 -slice-pragma nop2 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " - STDOPT: +"-main nop3 -slice-pragma nop3 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " - STDOPT: +"-main nop4 -slice-pragma nop4 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " - STDOPT: +"-main nop5 -slice-pragma nop5 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " - STDOPT: +"-main nop6 -slice-pragma nop6 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " - STDOPT: +"-main nop7 -slice-pragma nop7 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " - STDOPT: +"-main nop8 -slice-pragma nop8 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " - STDOPT: +"-main double_effect1 -slice-pragma double_effect1 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " - STDOPT: +"-main double_effect2 -slice-pragma double_effect2 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " - STDOPT: +"-main double_effect3 -slice-pragma double_effect3 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " - STDOPT: +"-main double_effect4 -slice-pragma double_effect4 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " - STDOPT: +"-main double_effect5 -slice-pragma double_effect5 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " - STDOPT: +"-main test1 -slice-pragma test1 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " - STDOPT: +"-main test2 -slice-pragma test2 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " - STDOPT: +"-main test3 -slice-pragma test3 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " - STDOPT: +"-main test4 -slice-pragma test4 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " - STDOPT: +"-main test5 -slice-pragma test5 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " - STDOPT: +"-main test6 -slice-pragma test6 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " - STDOPT: +"-main test7 -slice-pragma test7 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " - STDOPT: +"-main test8 -slice-pragma test8 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " - STDOPT: +"-main test9 -slice-pragma test9 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-main nop1 -slice-pragma nop1 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-main nop2 -slice-pragma nop2 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-main nop3 -slice-pragma nop3 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-main nop4 -slice-pragma nop4 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-main nop5 -slice-pragma nop5 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-main nop6 -slice-pragma nop6 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-main nop7 -slice-pragma nop7 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-main nop8 -slice-pragma nop8 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-main double_effect1 -slice-pragma double_effect1 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-main double_effect2 -slice-pragma double_effect2 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-main double_effect3 -slice-pragma double_effect3 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-main double_effect4 -slice-pragma double_effect4 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-main double_effect5 -slice-pragma double_effect5 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-main test1 -slice-pragma test1 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-main test2 -slice-pragma test2 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-main test3 -slice-pragma test3 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-main test4 -slice-pragma test4 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-main test5 -slice-pragma test5 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-main test6 -slice-pragma test6 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-main test7 -slice-pragma test7 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-main test8 -slice-pragma test8 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-main test9 -slice-pragma test9 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " */ typedef int stmt, expr, slice; int x, y ; diff --git a/tests/slicing/top.i b/tests/slicing/top.i index 308641cde3f34c78336e851c9b7005219c5a7f17..5584989abe488fe0cd58c381ab61cdb2a10e3911 100644 --- a/tests/slicing/top.i +++ b/tests/slicing/top.i @@ -1,7 +1,7 @@ /* run.config -* STDOPT: +"-eva-no-builtins-auto -slicing-level 0 -slice-return uncalled -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -check -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check" -* STDOPT: +"-eva-no-builtins-auto -slicing-level 2 -slice-return main -then-on 'Slicing export' -set-project-as-default -print -check -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check" -* STDOPT: +"-eva-no-builtins-auto -slicing-level 2 -slice-return strlen -then-on 'Slicing export' -set-project-as-default -print -check -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check" +* STDOPT: +"-eva-no-builtins-auto -slicing-level 0 -slice-return uncalled -no-slice-callers -then-on 'Slicing export' -set-project-as-default -print -check -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check" +* STDOPT: +"-eva-no-builtins-auto -slicing-level 2 -slice-return main -then-on 'Slicing export' -set-project-as-default -print -check -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check" +* STDOPT: +"-eva-no-builtins-auto -slicing-level 2 -slice-return strlen -then-on 'Slicing export' -set-project-as-default -print -check -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check" * * * diff --git a/tests/slicing/top2.i b/tests/slicing/top2.i index 8c8486c1eb5161d7c0cdabcc627b4bba2c80e7bb..8644cd9cd33e762cb2863ac4bb00181909e20f94 100644 --- a/tests/slicing/top2.i +++ b/tests/slicing/top2.i @@ -1,6 +1,6 @@ /* run.config -* STDOPT: +"-slicing-level 2 -slice-pragma main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " -* STDOPT: +"-slicing-level 2 -slice-return main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " +* STDOPT: +"-slicing-level 2 -slice-pragma main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " +* STDOPT: +"-slicing-level 2 -slice-return main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -check " */ diff --git a/tests/slicing/undef-fun.i b/tests/slicing/undef-fun.i index 2330657b9b42827acd9b4e5724a15b540b34cd39..07ddf2e3efa0714cd4c9a2085ecb0d737d3ffd45 100644 --- a/tests/slicing/undef-fun.i +++ b/tests/slicing/undef-fun.i @@ -1,5 +1,5 @@ /* run.config - STDOPT: +"-slice-undef-functions -slice-return f -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-slice-undef-functions -slice-return f -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " diff --git a/tests/slicing/unitialized.c b/tests/slicing/unitialized.c index af3f2903a469f00b93b686805a89e4882b43fd0c..e1767ca3f34d0961e6cce3f35e2c04983c7aa8f1 100644 --- a/tests/slicing/unitialized.c +++ b/tests/slicing/unitialized.c @@ -1,8 +1,8 @@ /* run.config - STDOPT: +"-slice-pragma g -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " - STDOPT: +"-slice-assert g -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " - STDOPT: +"-slice-assert main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " - STDOPT: +"-slice-return g -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-slice-pragma g -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-slice-assert g -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-slice-assert main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-slice-return g -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " */ #ifdef __FRAMAC__ //@ assigns \result \from \nothing; diff --git a/tests/slicing/unravel-flavors.i b/tests/slicing/unravel-flavors.i index f9297a0474522609097ca8ded955c47a5a43c150..ecdccb5711e95fceadcf06eea542de803c558c40 100644 --- a/tests/slicing/unravel-flavors.i +++ b/tests/slicing/unravel-flavors.i @@ -1,8 +1,8 @@ /* run.config - STDOPT: +"-slice-undef-functions -slice-return send1 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " - STDOPT: +"-slice-undef-functions -slice-return send2 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " - STDOPT: +"-slice-undef-functions -slice-return send3 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " - STDOPT: +"-slice-undef-functions -slice-return send4 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-slice-undef-functions -slice-return send1 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-slice-undef-functions -slice-return send2 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-slice-undef-functions -slice-return send3 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-slice-undef-functions -slice-return send4 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " */ /* Small example derived from examples given for UNRAVEL tool : */ diff --git a/tests/slicing/unravel-point.i b/tests/slicing/unravel-point.i index eada3c1702ee6b909dc0453f142ec7f5aeeebec3..7e6101394fe7f5f60a2859a8a6e7ac9ef73f8df7 100644 --- a/tests/slicing/unravel-point.i +++ b/tests/slicing/unravel-point.i @@ -1,9 +1,9 @@ /* run.config - STDOPT: +"-calldeps -slice-return send1 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-calldeps" - STDOPT: +"-calldeps -slice-return send2 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-calldeps" - STDOPT: +"-calldeps -slice-return send3 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-calldeps" - STDOPT: +"-calldeps -slice-return send4 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-calldeps" - STDOPT: +"-calldeps -slice-return send1 -slice-return send4 -then-on 'Slicing export' @EVA_OPTIONS@ -calldeps -slice-return send1_slice_1 -print -then-on 'Slicing export 2' -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-calldeps" + STDOPT: +"-calldeps -slice-return send1 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-calldeps" + STDOPT: +"-calldeps -slice-return send2 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-calldeps" + STDOPT: +"-calldeps -slice-return send3 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-calldeps" + STDOPT: +"-calldeps -slice-return send4 -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-calldeps" + STDOPT: +"-calldeps -slice-return send1 -slice-return send4 -then-on 'Slicing export' @EVA_OPTIONS@ -calldeps -slice-return send1_slice_1 -print -then-on 'Slicing export 2' -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -no-calldeps" diff --git a/tests/slicing/unravel-variance.i b/tests/slicing/unravel-variance.i index b8badd28f49dd8640f125b5a274da992d96087ad..1fbf32640e2974652c5bee4acd431805f616c1b3 100644 --- a/tests/slicing/unravel-variance.i +++ b/tests/slicing/unravel-variance.i @@ -1,9 +1,9 @@ /* run.config - STDOPT: +"-slice-calls printf1 -float-normal -eva-remove-redundant-alarms -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " - STDOPT: +"-slice-calls printf2 -float-normal -eva-remove-redundant-alarms -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " - STDOPT: +"-slice-calls printf3 -float-normal -eva-remove-redundant-alarms -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " - STDOPT: +"-slice-calls printf4 -float-normal -eva-remove-redundant-alarms -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " - STDOPT: +"-slice-calls printf5 -float-normal -eva-remove-redundant-alarms -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-slice-calls printf1 -float-normal -eva-remove-redundant-alarms -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-slice-calls printf2 -float-normal -eva-remove-redundant-alarms -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-slice-calls printf3 -float-normal -eva-remove-redundant-alarms -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-slice-calls printf4 -float-normal -eva-remove-redundant-alarms -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-slice-calls printf5 -float-normal -eva-remove-redundant-alarms -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " */ /* Small example devired from examples given for UNRAVEL tool : */ diff --git a/tests/slicing/unsupported.i b/tests/slicing/unsupported.i index ba59346f8b1602e4ccf5aa2ea98d87241ec2e7ac..8f487ef12733d1d84ba9a53514a984bab6ba0c24 100644 --- a/tests/slicing/unsupported.i +++ b/tests/slicing/unsupported.i @@ -1,5 +1,5 @@ /* run.config - STDOPT: +"-slice-return main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " + STDOPT: +"-slice-return main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i " STDOPT: +"-sparecode" */ diff --git a/tests/slicing/use_spec.i b/tests/slicing/use_spec.i index 3cd1285288822ec4ad0b9c24858c4aee0e2e942a..6cbcb0505d3096e103267acda22294c3ed96002a 100644 --- a/tests/slicing/use_spec.i +++ b/tests/slicing/use_spec.i @@ -1,5 +1,5 @@ /* run.config - STDOPT: +" -eva-use-spec f -slice-return main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.i" + STDOPT: +" -eva-use-spec f -slice-return main -then-on 'Slicing export' -set-project-as-default -print -then -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.i" STDOPT: +"-main main2 -slicing-level 3 -slice-undef-functions -eva-use-spec h -slice-return main2 -slicing-keep-annotations -then-on 'Slicing export' -set-project-as-default -print -eva @EVA_OPTIONS@ -eva-use-spec='-@all'" diff --git a/tests/spec/anon_arg_2.i b/tests/spec/anon_arg_2.i index 916d5d3e65bc0143c65d727594decd07e4102bcf..76f27083d0957780de9db9a88026c7c1b9d01c23 100644 --- a/tests/spec/anon_arg_2.i +++ b/tests/spec/anon_arg_2.i @@ -1,5 +1,5 @@ /* run.config* -STDOPT: #"%{dep:@PTEST_DIR@/anon_arg_1.i} @PTEST_FILE@" +STDOPT: #"%{dep:./anon_arg_1.i} @PTEST_FILE@" */ /*@ requires \valid(p); diff --git a/tests/spec/axiom_included.c b/tests/spec/axiom_included.c index a3a8be2d7a5ea2b0ce62db228ba4b4aee4d93387..14119e3cd333e9c002efaca39a25cd982c64e79e 100644 --- a/tests/spec/axiom_included.c +++ b/tests/spec/axiom_included.c @@ -1,6 +1,6 @@ /* run.config DEPS: axiom_included.h - STDOPT: +"%{dep:@PTEST_DIR@/axiom_included_1.c}" + STDOPT: +"%{dep:./axiom_included_1.c}" */ #include "axiom_included.h" diff --git a/tests/spec/clash_double_file_bts1598.c b/tests/spec/clash_double_file_bts1598.c index 1c0b3c1377459c07c1d872c32b7cfbd8cbe004c4..7211cc2918cdcb93998f27f36e996533e953dadc 100644 --- a/tests/spec/clash_double_file_bts1598.c +++ b/tests/spec/clash_double_file_bts1598.c @@ -1,7 +1,7 @@ /* run.config COMMENT: checks that linking string.h and its FC-pretty-printed version COMMENT: does not get rejected by name clash in the logic. See bts 1598 -OPT: @PTEST_FILE@ -cpp-extra-args " -Ishare/libc -nostdinc" -print -then -ocode @PTEST_RESULT@/foo.c -print -then @PTEST_FILE@ @PTEST_RESULT@/foo.c -ocode="" -print +OPT: @PTEST_FILE@ -cpp-extra-args " -Ishare/libc -nostdinc" -print -then -ocode ./foo.c -print -then @PTEST_FILE@ ./foo.c -ocode="" -print */ #include "__fc_builtin.h" diff --git a/tests/spec/first.c b/tests/spec/first.c index 4578e7d6f984cfaa7abb9a1cee5707b6049fa6e0..57b6a42ff7c415004e4c2563114211a04441012b 100644 --- a/tests/spec/first.c +++ b/tests/spec/first.c @@ -1,5 +1,5 @@ /* run.config - OPT: -print %{dep:@PTEST_DIR@/third.c} %{dep:@PTEST_DIR@/second.c} + OPT: -print %{dep:./third.c} %{dep:./second.c} */ /*@ behavior b: requires \valid(first); diff --git a/tests/spec/merge_1.i b/tests/spec/merge_1.i index 0e236f1cfaec8c87b87193f4061cf945d50e6ac9..2d829666bd74b7877385c5a0bca3bf38ee3924ea 100644 --- a/tests/spec/merge_1.i +++ b/tests/spec/merge_1.i @@ -1,5 +1,5 @@ /* run.config - STDOPT: +"%{dep:@PTEST_DIR@/merge_2.i}" + STDOPT: +"%{dep:./merge_2.i}" */ /*@ requires \valid(s); @ assigns \nothing; diff --git a/tests/spec/merge_bts938.c b/tests/spec/merge_bts938.c index 81f2626d24bcc615feb9e455754f7af3212b423b..8f3d91d70e11e79be97f915839c7dc71f441185f 100644 --- a/tests/spec/merge_bts938.c +++ b/tests/spec/merge_bts938.c @@ -1,6 +1,6 @@ /* run.config DEPS: merge_bts938.h - STDOPT: +"%{dep:@PTEST_DIR@/merge_bts938_1.c}" + STDOPT: +"%{dep:./merge_bts938_1.c}" */ #include "merge_bts938.h" diff --git a/tests/spec/merge_different_assigns.i b/tests/spec/merge_different_assigns.i index 90c66e6c0f8b2c00904390331951865c7b729a65..a01e20be4d78ec81b00e4ea98c444c169d05d6af 100644 --- a/tests/spec/merge_different_assigns.i +++ b/tests/spec/merge_different_assigns.i @@ -1,5 +1,5 @@ /* run.config - STDOPT: +"%{dep:@PTEST_DIR@/merge_different_assigns_bis.i}" + STDOPT: +"%{dep:./merge_different_assigns_bis.i}" */ int x, z, t, u, v, w; diff --git a/tests/spec/merge_logic_globals_1.c b/tests/spec/merge_logic_globals_1.c index e0c4f38410ceda566614f088291f0d25306c791c..6d7796757e8d1502650bbc5d8495877b71625e50 100644 --- a/tests/spec/merge_logic_globals_1.c +++ b/tests/spec/merge_logic_globals_1.c @@ -1,6 +1,6 @@ /* run.config DEPS: merge_logic_globals.h - OPT: -print %{dep:@PTEST_DIR@/merge_logic_globals_2.c} -cpp-extra-args="-I@PTEST_DIR@" + OPT: -print %{dep:./merge_logic_globals_2.c} -cpp-extra-args="-I./" */ #include "merge_logic_globals.h" diff --git a/tests/spec/model1.c b/tests/spec/model1.c index 69ab6b80250a4d2abd6de552eb25102bc2e046f6..49601dc5e95f0b4b4826eddf28f6fc61d9ad77d4 100644 --- a/tests/spec/model1.c +++ b/tests/spec/model1.c @@ -1,6 +1,6 @@ /* run.config DEPS: model1.h - STDOPT: +"%{dep:@PTEST_DIR@/model2.c}" + STDOPT: +"%{dep:./model2.c}" */ #include "model1.h" diff --git a/tests/spec/model2.c b/tests/spec/model2.c index dc4f5691904734059de7b2c53d69ee9b4321202b..2f541a72dfc311a6e0963cad7594e90eed9a5d60 100644 --- a/tests/spec/model2.c +++ b/tests/spec/model2.c @@ -1,5 +1,5 @@ /* run.config -DONTRUN: main test is in %{dep:@PTEST_DIR@/model1.c} +DONTRUN: main test is in %{dep:./model1.c} */ #include "model1.h" diff --git a/tests/spec/multi_axiomatic_1.i b/tests/spec/multi_axiomatic_1.i index 0687661447a6ad579c257d193727dc636d90bea6..c16dc4c3578b50d342b3dcefb64140b6ce4222c6 100644 --- a/tests/spec/multi_axiomatic_1.i +++ b/tests/spec/multi_axiomatic_1.i @@ -1,5 +1,5 @@ /* run.config -OPT: %{dep:@PTEST_DIR@/multi_axiomatic_2.i} -print +OPT: %{dep:./multi_axiomatic_2.i} -print */ /*@ diff --git a/tests/spec/multi_axiomatic_2.i b/tests/spec/multi_axiomatic_2.i index 2d99bea95e3e95d69959df8a159d8999c3d095be..3b5af08cc0d9c6ce6c3365b9fed519a67c67f87f 100644 --- a/tests/spec/multi_axiomatic_2.i +++ b/tests/spec/multi_axiomatic_2.i @@ -1,5 +1,5 @@ /* run.config -DONTRUN: main configuration in %{dep:@PTEST_DIR@/multi_axiomatic_1.i} +DONTRUN: main configuration in %{dep:./multi_axiomatic_1.i} */ /*@ axiomatic ax { logic int Acc(int m); } diff --git a/tests/spec/multiple_decl_def_1.c b/tests/spec/multiple_decl_def_1.c index 936d427c415a4059975cb0c244298d35f3024a22..3a536e9b9ff18d78d1fe80e35e700443944a5902 100644 --- a/tests/spec/multiple_decl_def_1.c +++ b/tests/spec/multiple_decl_def_1.c @@ -1,5 +1,5 @@ /* run.config - OPT: -print %{dep:@PTEST_DIR@/multiple_decl_def_2.c} + OPT: -print %{dep:./multiple_decl_def_2.c} */ /* see bug #43 && #128 */ diff --git a/tests/spec/multiple_file_1.c b/tests/spec/multiple_file_1.c index 63dc0cab6214d17b5231ee092fca59c9f4056c7c..6cf683877e474ebe0e8eba64c9a9f697e68731f9 100644 --- a/tests/spec/multiple_file_1.c +++ b/tests/spec/multiple_file_1.c @@ -1,5 +1,5 @@ /* run.config - OPT: -print %{dep:@PTEST_DIR@/multiple_file_2.c} + OPT: -print %{dep:./multiple_file_2.c} */ /* see bug #43 */ diff --git a/tests/spec/multiple_include_2.c b/tests/spec/multiple_include_2.c index 43291fec8c9ece98b6ee82c52e1091f1bf0b26c0..55c992526b3dcaa3fe9528f7e8562dea9accd4c9 100644 --- a/tests/spec/multiple_include_2.c +++ b/tests/spec/multiple_include_2.c @@ -1,7 +1,7 @@ /* run.config EXIT: 1 DEPS: multiple_include.h - OPT: -kernel-warn-key=annot-error=active -print %{dep:@PTEST_DIR@/multiple_include_1.c} + OPT: -kernel-warn-key=annot-error=active -print %{dep:./multiple_include_1.c} */ #include "multiple_include.h" diff --git a/tests/spec/rm_qualifiers.i b/tests/spec/rm_qualifiers.i index c730e461a4005ab5333372e54e64508659853078..3461a101dd845be8a562fbdd275299de66d5126f 100644 --- a/tests/spec/rm_qualifiers.i +++ b/tests/spec/rm_qualifiers.i @@ -1,5 +1,5 @@ /* run.config -OPT: @PTEST_FILE@ -ocode @PTEST_RESULT@/@PTEST_NAME@_res.i -print -then @PTEST_RESULT@/@PTEST_NAME@_res.i -ocode="" -print +OPT: @PTEST_FILE@ -ocode ./@PTEST_NAME@_res.i -print -then ./@PTEST_NAME@_res.i -ocode="" -print */ extern void G(const void* p); typedef volatile int ARR[42][3]; diff --git a/tests/spec/use.c b/tests/spec/use.c index 8a84f1802f399f481034310d3032724c09c22f7d..44c4c2741fb8b3c2530dfc6e89ef8ceb4f6c350e 100644 --- a/tests/spec/use.c +++ b/tests/spec/use.c @@ -1,6 +1,6 @@ /* run.config DEPS: dec.h - STDOPT: +"%{dep:@PTEST_DIR@/use2.c}" + STDOPT: +"%{dep:./use2.c}" */ // BTS 0887 diff --git a/tests/spec/volatile.c b/tests/spec/volatile.c index 4dc57c87695ebe011c5274e9110348efaabf1215..c369f8c024087edefa228a791c348f2df6d413bf 100644 --- a/tests/spec/volatile.c +++ b/tests/spec/volatile.c @@ -1,6 +1,6 @@ /* run.config DEPS: volatile.h - OPT: %{dep:@PTEST_DIR@/volatile_aux.c} -print -copy + OPT: %{dep:./volatile_aux.c} -print -copy */ #include "volatile.h" diff --git a/tests/syntax/aggressive_merging_1.i b/tests/syntax/aggressive_merging_1.i index 1ff332eec4e9331acd9f2b91b82e9dce907fe024..930b5eadfc4a6b9a11f6855cdc3233298e2fed16 100644 --- a/tests/syntax/aggressive_merging_1.i +++ b/tests/syntax/aggressive_merging_1.i @@ -1,5 +1,5 @@ /* run.config - STDOPT: +"%{dep:@PTEST_DIR@/aggressive_merging_2.i} -aggressive-merging" + STDOPT: +"%{dep:./aggressive_merging_2.i} -aggressive-merging" */ static inline void f(void) { return; diff --git a/tests/syntax/anon_enum_libc.c b/tests/syntax/anon_enum_libc.c index 55a1a952097df987ce611d8a2d446e7de9815e28..53ac42b1b0a0c1d71ee3d9664f5d9f0650eb344f 100644 --- a/tests/syntax/anon_enum_libc.c +++ b/tests/syntax/anon_enum_libc.c @@ -1,6 +1,6 @@ /* run.config DEPS: anon_enum_libc.h - OPT: -cpp-extra-args="-I @PTEST_DIR@" -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.c -print -then -ocode="" @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.c -print + OPT: -cpp-extra-args="-I ./" -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.c -print -then -ocode="" ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.c -print */ struct { int x; float y; } s1; enum { BLA=4, BLI=12 }; diff --git a/tests/syntax/bts0323.c b/tests/syntax/bts0323.c index 7f624018539a1740b0a89d5e9f330562e98e2c09..4ece768a3551c4621c0054a1057fda658020cab4 100644 --- a/tests/syntax/bts0323.c +++ b/tests/syntax/bts0323.c @@ -1,6 +1,6 @@ /* run.config DEPS: bts0323.h - STDOPT: +"%{dep:@PTEST_DIR@/bts0323-2.c}" + STDOPT: +"%{dep:./bts0323-2.c}" */ #include "bts0323.h" void f() { x = 0; } diff --git a/tests/syntax/bts0442-2.i b/tests/syntax/bts0442-2.i index 579a877ad22e25f818adc8530c421e51da93ba6c..d0eafb4fde140a080948442b0daea13137c81353 100644 --- a/tests/syntax/bts0442-2.i +++ b/tests/syntax/bts0442-2.i @@ -1,5 +1,5 @@ /* run.config -STDOPT: +"%{dep:@PTEST_DIR@/bts0442.i}" +STDOPT: +"%{dep:./bts0442.i}" */ enum E { E0=0, E1=1} ve1=E1; void f (void) { diff --git a/tests/syntax/bts0442.i b/tests/syntax/bts0442.i index 2c44d84fdb461cbc2c7a27ef221f4c181d2cae69..91608b805a125da8a9db7b2aa2301075513e425a 100644 --- a/tests/syntax/bts0442.i +++ b/tests/syntax/bts0442.i @@ -1,4 +1,4 @@ /* run.config -STDOPT: +"%{dep:@PTEST_DIR@/bts0442-2.i}" +STDOPT: +"%{dep:./bts0442-2.i}" */ enum E { E1=1, E2=2} ve2=E2; diff --git a/tests/syntax/bts0672_link.c b/tests/syntax/bts0672_link.c index b75887c3b413d8e5f8c08db5adbdf322d7fb3ee6..7649b6a954da0b85124b8a9e440e5710bcc4894a 100644 --- a/tests/syntax/bts0672_link.c +++ b/tests/syntax/bts0672_link.c @@ -1,6 +1,6 @@ /* run.config - STDOPT: +"%{dep:@PTEST_DIR@/bts0672_link_2.c}" - STDOPT: +"%{dep:@PTEST_DIR@/bts0672_link_2.c}" +"-cpp-extra-args='-DPROTO'" + STDOPT: +"%{dep:./bts0672_link_2.c}" + STDOPT: +"%{dep:./bts0672_link_2.c}" +"-cpp-extra-args='-DPROTO'" */ int Frama_C_entropy_source; diff --git a/tests/syntax/bts1553_2.i b/tests/syntax/bts1553_2.i index 2508c7bc66b29fa66841619dd1e9dec682e3c158..5fb335ec42820df0416f5e5758a4d0514d1a3760 100644 --- a/tests/syntax/bts1553_2.i +++ b/tests/syntax/bts1553_2.i @@ -1,5 +1,5 @@ /* run.config - STDOPT: +"@PTEST_DIR@/bts1553.i -kernel-msg-key file -kernel-msg-key=-file:transformation,-file:source" + STDOPT: +"./bts1553.i -kernel-msg-key file -kernel-msg-key=-file:transformation,-file:source" COMMENT: this file is also parsed together with bts1553.i */ diff --git a/tests/syntax/enum1.c b/tests/syntax/enum1.c index 1e851c556fdd00c4c2644a20f650ab46525da5d7..74487342a08ae8ec1c9ce9187d903670247f8a2e 100644 --- a/tests/syntax/enum1.c +++ b/tests/syntax/enum1.c @@ -1,6 +1,6 @@ /* run.config DEPS: enum.h - STDOPT: +"%{dep:@PTEST_DIR@/enum2.c}" + STDOPT: +"%{dep:./enum2.c}" */ diff --git a/tests/syntax/extern_init.i b/tests/syntax/extern_init.i index 1e63bc6a5cd0edcd038a9d842debb5ac53e5ec80..f8369c6e83d9224e2946905cf6010a01fb81add7 100644 --- a/tests/syntax/extern_init.i +++ b/tests/syntax/extern_init.i @@ -1,7 +1,7 @@ /* run.config PLUGIN: eva,inout,scope -OPT: %{dep:@PTEST_DIR@/@PTEST_NAME@_1.i} %{dep:@PTEST_DIR@/@PTEST_NAME@_2.i} -eva @EVA_CONFIG@ -OPT: %{dep:@PTEST_DIR@/@PTEST_NAME@_2.i} %{dep:@PTEST_DIR@/@PTEST_NAME@_1.i} -eva @EVA_CONFIG@ +OPT: %{dep:./@PTEST_NAME@_1.i} %{dep:./@PTEST_NAME@_2.i} -eva @EVA_CONFIG@ +OPT: %{dep:./@PTEST_NAME@_2.i} %{dep:./@PTEST_NAME@_1.i} -eva @EVA_CONFIG@ */ extern int a[] ; diff --git a/tests/syntax/formals_decl_leak.i b/tests/syntax/formals_decl_leak.i index 75df98918e1701ee9d233ba79608fccadaee7da2..c7fe61604213e8200f52121f767ab34da1d0a565 100644 --- a/tests/syntax/formals_decl_leak.i +++ b/tests/syntax/formals_decl_leak.i @@ -1,6 +1,6 @@ /* run.config MODULE: @PTEST_NAME@ - OPT: -print -no-autoload-plugins %{dep:@PTEST_DIR@/@PTEST_NAME@_1.i} + OPT: -print -no-autoload-plugins %{dep:./@PTEST_NAME@_1.i} */ void f(int x); diff --git a/tests/syntax/formals_decl_leak_1.i b/tests/syntax/formals_decl_leak_1.i index 3fb93c23877dd2b9fe2e7e83eecb6be9ad947bad..24f30985c2e631dac8840bbd8cd85e3c19c4d5e4 100644 --- a/tests/syntax/formals_decl_leak_1.i +++ b/tests/syntax/formals_decl_leak_1.i @@ -1,5 +1,5 @@ /* run.config -DONTRUN: main test is located in @PTEST_DIR@/formals_decl_leak.i +DONTRUN: main test is located in ./formals_decl_leak.i */ void f(int y); diff --git a/tests/syntax/inconsistent_decl.c b/tests/syntax/inconsistent_decl.c index d27679ec4f16b344de6cae41590397cff58a7a48..f9a3207135130bc2c94bd2cae9ebbc93b29f2318 100644 --- a/tests/syntax/inconsistent_decl.c +++ b/tests/syntax/inconsistent_decl.c @@ -1,7 +1,7 @@ /* run.config EXIT: 1 - STDOPT: +"%{dep:@PTEST_DIR@/inconsistent_decl_2.i}" - STDOPT: +"%{dep:@PTEST_DIR@/inconsistent_decl_2.i}"+"-cpp-extra-args='-DWITH_PROTO'" + STDOPT: +"%{dep:./inconsistent_decl_2.i}" + STDOPT: +"%{dep:./inconsistent_decl_2.i}"+"-cpp-extra-args='-DWITH_PROTO'" */ #ifdef WITH_PROTO diff --git a/tests/syntax/inconsistent_decl_2.i b/tests/syntax/inconsistent_decl_2.i index 2452dc7cebee5a83a3db1bcd198f8b165ed4d67d..690558677ae3c646888d34d17184a2d1309157b3 100644 --- a/tests/syntax/inconsistent_decl_2.i +++ b/tests/syntax/inconsistent_decl_2.i @@ -1,5 +1,5 @@ /* run.config -DONTRUN: main test is at @PTEST_DIR@/inconsistent_decl.c +DONTRUN: main test is at ./inconsistent_decl.c */ int f(double x); diff --git a/tests/syntax/inline_def_1.i b/tests/syntax/inline_def_1.i index 2b6cf856a6a1c122240f3380de8cbbce0a026a23..17dce1c79660087b8632c54059ffb1b5a219065c 100644 --- a/tests/syntax/inline_def_1.i +++ b/tests/syntax/inline_def_1.i @@ -1,5 +1,5 @@ /* run.config -STDOPT: +"%{dep:@PTEST_DIR@/inline_def_2.i}" +STDOPT: +"%{dep:./inline_def_2.i}" */ // inline definition can be used in this translation unit, but does not diff --git a/tests/syntax/inline_def_bad_1.i b/tests/syntax/inline_def_bad_1.i index 37c0f891ee032bcee5d77fac54b9680115fbbcef..0a80ad46d0f89ecdfc3852b9d8d3f645b2fe89d0 100644 --- a/tests/syntax/inline_def_bad_1.i +++ b/tests/syntax/inline_def_bad_1.i @@ -1,5 +1,5 @@ /* run.config -STDOPT: +"%{dep:@PTEST_DIR@/inline_def_bad_2.i}" +STDOPT: +"%{dep:./inline_def_bad_2.i}" */ extern inline f() { return 1; } diff --git a/tests/syntax/label_decl.i b/tests/syntax/label_decl.i index 2304ecf7522732f3208f6b4a901012412022b4b1..ff902a5b95dead0a964451d1476b2db3b6ccd18f 100644 --- a/tests/syntax/label_decl.i +++ b/tests/syntax/label_decl.i @@ -1,5 +1,5 @@ /* run.config -MACRO: TMP @PTEST_RESULT@/ocode_@PTEST_NAME@.i +MACRO: TMP ./ocode_@PTEST_NAME@.i OPT: -print -then -print -ocode @TMP@ -then @TMP@ -print -ocode="" */ struct s { int i; }; diff --git a/tests/syntax/merge_attrs_align.c b/tests/syntax/merge_attrs_align.c index 41cbe951b502fd8c22f4902e7d2083e45692b54a..5735977b8d33f395088761e49823857f9e9c9438 100644 --- a/tests/syntax/merge_attrs_align.c +++ b/tests/syntax/merge_attrs_align.c @@ -1,13 +1,13 @@ /*run.config EXIT: 1 - STDOPT: +"-machdep x86_64" +"%{dep:@PTEST_DIR@/merge_attrs_align1.c}" +"%{dep:@PTEST_DIR@/merge_attrs_align2.c}" - STDOPT: +"-machdep x86_64" +"%{dep:@PTEST_DIR@/merge_attrs_align1.c}" +"%{dep:@PTEST_DIR@/merge_attrs_align3.c}" + STDOPT: +"-machdep x86_64" +"%{dep:./merge_attrs_align1.c}" +"%{dep:./merge_attrs_align2.c}" + STDOPT: +"-machdep x86_64" +"%{dep:./merge_attrs_align1.c}" +"%{dep:./merge_attrs_align3.c}" EXIT: 0 - STDOPT: +"-machdep x86_64" +"%{dep:@PTEST_DIR@/merge_attrs_align1.c}" +"%{dep:@PTEST_DIR@/merge_attrs_align4.c}" - STDOPT: +"-machdep x86_64" +"%{dep:@PTEST_DIR@/merge_attrs_align2.c}" +"%{dep:@PTEST_DIR@/merge_attrs_align3.c}" + STDOPT: +"-machdep x86_64" +"%{dep:./merge_attrs_align1.c}" +"%{dep:./merge_attrs_align4.c}" + STDOPT: +"-machdep x86_64" +"%{dep:./merge_attrs_align2.c}" +"%{dep:./merge_attrs_align3.c}" EXIT: 1 - STDOPT: +"-machdep x86_64" +"%{dep:@PTEST_DIR@/merge_attrs_align2.c}" +"%{dep:@PTEST_DIR@/merge_attrs_align4.c}" - STDOPT: +"-machdep x86_64" +"%{dep:@PTEST_DIR@/merge_attrs_align3.c}" +"%{dep:@PTEST_DIR@/merge_attrs_align4.c}" + STDOPT: +"-machdep x86_64" +"%{dep:./merge_attrs_align2.c}" +"%{dep:./merge_attrs_align4.c}" + STDOPT: +"-machdep x86_64" +"%{dep:./merge_attrs_align3.c}" +"%{dep:./merge_attrs_align4.c}" */ // for testing with GCC/Clang diff --git a/tests/syntax/merge_bts0948.i b/tests/syntax/merge_bts0948.i index 9cec05f94ed233e5b6acc40721c84d6d66164cb0..dfec356f7e29a47f06d1d1d90a0ffac4e9dc48b4 100644 --- a/tests/syntax/merge_bts0948.i +++ b/tests/syntax/merge_bts0948.i @@ -1,5 +1,5 @@ /* run.config - STDOPT: +"%{dep:@PTEST_DIR@/merge_bts0948_1.i}" +"%{dep:@PTEST_DIR@/merge_bts0948_2.i}" + STDOPT: +"%{dep:./merge_bts0948_1.i}" +"%{dep:./merge_bts0948_2.i}" */ /*@ requires \valid((char*)dest); diff --git a/tests/syntax/merge_inline_1.c b/tests/syntax/merge_inline_1.c index ec465fac50903da73ae1f0e6cb88d9cfe5e75541..d1856bd086d364e418d4a23f0dec9d46d844bbbe 100644 --- a/tests/syntax/merge_inline_1.c +++ b/tests/syntax/merge_inline_1.c @@ -1,5 +1,5 @@ /* run.config -OPT: %{dep:@PTEST_DIR@/merge_inline_2.c} -aggressive-merging -print +OPT: %{dep:./merge_inline_2.c} -aggressive-merging -print */ /* Test that we rename properly inlines even if they have prototypes and diff --git a/tests/syntax/merge_union.c b/tests/syntax/merge_union.c index ca5392d9dbd0e224516dbe15e737fc4a055c064e..ca8d02303351cdfc37fb3d87651dbd9e135c5c68 100644 --- a/tests/syntax/merge_union.c +++ b/tests/syntax/merge_union.c @@ -1,7 +1,7 @@ /* run.config DEPS: merge_union.h - OPT: -cpp-extra-args="-I @PTEST_DIR@" %{dep:@PTEST_DIR@/@PTEST_NAME@_2.c} %{dep:@PTEST_DIR@/@PTEST_NAME@_3.c} -print - OPT: -cpp-extra-args="-I @PTEST_DIR@" %{dep:@PTEST_DIR@/@PTEST_NAME@_2.c} %{dep:@PTEST_DIR@/@PTEST_NAME@_3.c} -print -kernel-warn-key="linker:drop-conflicting-unused=inactive" + OPT: -cpp-extra-args="-I ./" %{dep:./@PTEST_NAME@_2.c} %{dep:./@PTEST_NAME@_3.c} -print + OPT: -cpp-extra-args="-I ./" %{dep:./@PTEST_NAME@_2.c} %{dep:./@PTEST_NAME@_3.c} -print -kernel-warn-key="linker:drop-conflicting-unused=inactive" */ #include "merge_union.h" int f(un* u); diff --git a/tests/syntax/merge_unused.c b/tests/syntax/merge_unused.c index 349921c0430dd43c9c8581c9aea91c14b5abfd7f..c47f29295db57eca00539ab5dc756518566f9d91 100644 --- a/tests/syntax/merge_unused.c +++ b/tests/syntax/merge_unused.c @@ -1,7 +1,7 @@ /* run.config* EXIT: 1 DEPS: merge_unused.h - OPT: -cpp-extra-args="-I@PTEST_DIR@" %{dep:@PTEST_DIR@/@PTEST_NAME@_2.c} -print + OPT: -cpp-extra-args="-I./" %{dep:./@PTEST_NAME@_2.c} -print */ #pragma pack(1) diff --git a/tests/syntax/merge_variadic.i b/tests/syntax/merge_variadic.i index 71598363f14e9ae1412478c99ab6272ef06b5b4f..1ae4ccef8017a90881b393f8a775321bdad1814c 100644 --- a/tests/syntax/merge_variadic.i +++ b/tests/syntax/merge_variadic.i @@ -1,6 +1,6 @@ /* run.config PLUGIN: variadic - OPT: %{dep:@PTEST_DIR@/@PTEST_NAME@_aux.i} -print + OPT: %{dep:./@PTEST_NAME@_aux.i} -print */ int open (const char* file, int flags, int mode) { return -1; diff --git a/tests/syntax/no-print-libc-reparse.c b/tests/syntax/no-print-libc-reparse.c index daf1949eb41ec1a798e5f67e562588933d453d30..0a6f03ed327ac99ddd5f1d77cb0946152a789a92 100644 --- a/tests/syntax/no-print-libc-reparse.c +++ b/tests/syntax/no-print-libc-reparse.c @@ -1,5 +1,5 @@ /*run.config - STDOPT: +"-no-print-libc -print -ocode @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.c -then @PTEST_RESULT@/ocode_@PTEST_NUMBER@_@PTEST_NAME@.c" + STDOPT: +"-no-print-libc -print -ocode ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.c -then ./ocode_@PTEST_NUMBER@_@PTEST_NAME@.c" */ // tests that using -no-print-libc on a file with an enum produces output that diff --git a/tests/syntax/static_formals_1.c b/tests/syntax/static_formals_1.c index 56662240c4673a7af126f709860d22910cf07502..887a80d4aeaa837b8b37b0fc94e28e0856f07e57 100644 --- a/tests/syntax/static_formals_1.c +++ b/tests/syntax/static_formals_1.c @@ -1,6 +1,6 @@ /* run.config DEPS: static_formals.h - STDOPT: +"%{dep:@PTEST_DIR@/static_formals_2.c}" +"-cpp-extra-args=\"-I @PTEST_DIR@\"" +"-kernel-msg-key printer:vid" + STDOPT: +"%{dep:./static_formals_2.c}" +"-cpp-extra-args=\"-I ./\"" +"-kernel-msg-key printer:vid" */ #include "static_formals.h" int g() { return f(4); } diff --git a/tests/syntax/tentative_definition.c b/tests/syntax/tentative_definition.c index 4e8253e21ff088c8c6c2de7f68ec587ad25c8e5d..d1bf888b8cdc09fa6a3033a319f7335b7900f8a1 100644 --- a/tests/syntax/tentative_definition.c +++ b/tests/syntax/tentative_definition.c @@ -1,15 +1,15 @@ /* run.config* -OPT: -cpp-extra-args="-DEEDN" %{dep:@PTEST_DIR@/@PTEST_NAME@_aux.c} -print -OPT: -cpp-extra-args="-DEENN" %{dep:@PTEST_DIR@/@PTEST_NAME@_aux.c} -print -OPT: -cpp-extra-args="-DENND" %{dep:@PTEST_DIR@/@PTEST_NAME@_aux.c} -print -OPT: -cpp-extra-args="-DENNN" %{dep:@PTEST_DIR@/@PTEST_NAME@_aux.c} -print -OPT: -cpp-extra-args="-DNNNN" %{dep:@PTEST_DIR@/@PTEST_NAME@_aux.c} -print +OPT: -cpp-extra-args="-DEEDN" %{dep:./@PTEST_NAME@_aux.c} -print +OPT: -cpp-extra-args="-DEENN" %{dep:./@PTEST_NAME@_aux.c} -print +OPT: -cpp-extra-args="-DENND" %{dep:./@PTEST_NAME@_aux.c} -print +OPT: -cpp-extra-args="-DENNN" %{dep:./@PTEST_NAME@_aux.c} -print +OPT: -cpp-extra-args="-DNNNN" %{dep:./@PTEST_NAME@_aux.c} -print EXIT: 1 -OPT: -cpp-extra-args="-DEEDD" %{dep:@PTEST_DIR@/@PTEST_NAME@_aux.c} -print -OPT: -cpp-extra-args="-DENDD" %{dep:@PTEST_DIR@/@PTEST_NAME@_aux.c} -print -OPT: -cpp-extra-args="-DENDN" %{dep:@PTEST_DIR@/@PTEST_NAME@_aux.c} -print -OPT: -cpp-extra-args="-DNNDD" %{dep:@PTEST_DIR@/@PTEST_NAME@_aux.c} -print -OPT: -cpp-extra-args="-DNNDN" %{dep:@PTEST_DIR@/@PTEST_NAME@_aux.c} -print +OPT: -cpp-extra-args="-DEEDD" %{dep:./@PTEST_NAME@_aux.c} -print +OPT: -cpp-extra-args="-DENDD" %{dep:./@PTEST_NAME@_aux.c} -print +OPT: -cpp-extra-args="-DENDN" %{dep:./@PTEST_NAME@_aux.c} -print +OPT: -cpp-extra-args="-DNNDD" %{dep:./@PTEST_NAME@_aux.c} -print +OPT: -cpp-extra-args="-DNNDN" %{dep:./@PTEST_NAME@_aux.c} -print */ // OK (one global defined to 1) diff --git a/tests/syntax/typedef_incorrect_pretty_print_bts1518.i b/tests/syntax/typedef_incorrect_pretty_print_bts1518.i index 8c36069cabb9cf2ce5a8153f32dfef8c4cbd00b7..d435be52fa38783bd64ecbf267ed24845f8f5fa3 100644 --- a/tests/syntax/typedef_incorrect_pretty_print_bts1518.i +++ b/tests/syntax/typedef_incorrect_pretty_print_bts1518.i @@ -1,7 +1,7 @@ /* run.config DONTRUN: bug fix in progress MACRO: OUT @PTEST_NAME@_res.i -EXECNOW: LOG @OUT@ @frama-c@ @PTEST_FILE@ -ocode @PTEST_RESULT@/@OUT@ -print -then @PTEST_RESULT@/@OUT@ -print +EXECNOW: LOG @OUT@ @frama-c@ @PTEST_FILE@ -ocode ./@OUT@ -print -then ./@OUT@ -print */ /* Generated by Frama-C */ /* Generated by Frama-C */ diff --git a/tests/syntax/typedef_multi_1.c b/tests/syntax/typedef_multi_1.c index b5052ec59a08e6033a8d32e14b423079027bb9c7..cb74ac7263cf33d5172a23a27e3fd204bd11ab88 100644 --- a/tests/syntax/typedef_multi_1.c +++ b/tests/syntax/typedef_multi_1.c @@ -1,7 +1,7 @@ /* run.config MODULE: typedef_multi DEPS: typedef_multi.h - OPT: -no-autoload-plugins %{dep:@PTEST_DIR@/typedef_multi_2.c} + OPT: -no-autoload-plugins %{dep:./typedef_multi_2.c} */ #include "typedef_multi.h" diff --git a/tests/syntax/typedef_multi_2.c b/tests/syntax/typedef_multi_2.c index 24bbeae93e5a08033e732d1dd1948b38c0fdbc0d..e60b2defff9507a36086e93ac23cb3ecc8cb0002 100644 --- a/tests/syntax/typedef_multi_2.c +++ b/tests/syntax/typedef_multi_2.c @@ -1,5 +1,5 @@ /* run.config -DONTRUN: main test is at %{dep:@PTEST_DIR@/typedef_multi_1.c} +DONTRUN: main test is at %{dep:./typedef_multi_1.c} */ #include "typedef_multi.h" diff --git a/tests/syntax/vdefined_bts1241.i b/tests/syntax/vdefined_bts1241.i index 77854d6e4805837b8149926e56e52b093a591e5b..686fde105d06c61517943c04ad172630cae253e0 100644 --- a/tests/syntax/vdefined_bts1241.i +++ b/tests/syntax/vdefined_bts1241.i @@ -1,5 +1,5 @@ /* run.config -STDOPT: +"%{dep:@PTEST_DIR@/vdefined_bts1241_1.i}" +STDOPT: +"%{dep:./vdefined_bts1241_1.i}" */ int f(); diff --git a/tests/syntax/vdefined_bts1241_1.i b/tests/syntax/vdefined_bts1241_1.i index ad1dedd017b1d635af8e870655920a9b343a9d80..99b3589ec6d68a118510be615ed1e66dda67a459 100644 --- a/tests/syntax/vdefined_bts1241_1.i +++ b/tests/syntax/vdefined_bts1241_1.i @@ -1,5 +1,5 @@ /* run.config -DONTRUN: main test at @PTEST_DIR@/vdefined_bts1241.i +DONTRUN: main test at ./vdefined_bts1241.i */ int f(); diff --git a/tests/value/CruiseControl.c b/tests/value/CruiseControl.c index 056242d9d39652b045248d5cf94e8fa50bfe03cb..3d586fb8c9f54231d0551622369e81d3b73aedb7 100644 --- a/tests/value/CruiseControl.c +++ b/tests/value/CruiseControl.c @@ -1,6 +1,6 @@ /* run.config* DEPS: CruiseControl.h CruiseControl_extern.h scade_types.h config_types.h definitions.h - STDOPT: #"-float-normal %{dep:@PTEST_DIR@/CruiseControl_const.c} -lib-entry -main CruiseControl -eva-context-depth 10 -eva-context-valid-pointers" + STDOPT: #"-float-normal %{dep:./CruiseControl_const.c} -lib-entry -main CruiseControl -eva-context-depth 10 -eva-context-valid-pointers" */ /*$************* SCADE_KCG KCG Version 5.1.1 (build i10) ************** diff --git a/tests/value/abstract_struct_1.c b/tests/value/abstract_struct_1.c index a91af23f78194ea52ef06b9bf7e823d5a71ca11f..110a69057c171d5f32744d17fae68fb386dd1ffe 100644 --- a/tests/value/abstract_struct_1.c +++ b/tests/value/abstract_struct_1.c @@ -1,5 +1,5 @@ /* run.config* - STDOPT: #"%{dep:@PTEST_DIR@/abstract_struct_2.c} -lib-entry -eva-msg-key initial-state" + STDOPT: #"%{dep:./abstract_struct_2.c} -lib-entry -eva-msg-key initial-state" */ #include "stdlib.h" diff --git a/tools/ptests/ptests.ml b/tools/ptests/ptests.ml index fa3f15ea40eb681d6cb538e206e95d5b10d68615..07f6d35ebe2ffc0d48698a78c5a4bacdaa669604 100644 --- a/tools/ptests/ptests.ml +++ b/tools/ptests/ptests.ml @@ -252,13 +252,15 @@ let example_msg = @@<alias-name> # Tests all configurations related to the <alias-name>@ \ @@<alias-name>_config # Tests only the default configuration.@ \ @@<alias-name>_config_<configuration> # Tests only the specified <configuration>.@ \ - @@<PTEST_NAME>.wtests # Tests the specified file.@ \ - @@<PTEST_NAME>.<PTEST_NUMBER>.exec.wtests # Tests the specified sub-test comand.@ \ - @@<PTEST_NAME>.<PTEST_NUMBER>.execnow.wtests # Tests the specified execnow command.@ \ @@<PTEST_FILE> # Force to reproduce the corresponding test and prints the outputs.@ \ - @@<PTEST_NAME>.<PTEST_NUMBER>.exec.show # Prints the related sub-test command.@ \ - @@<PTEST_NAME>.<PTEST_NUMBER>.execnow.show # Prints the related execnow command.@ \ - @@<PTEST_NAME>.<PTEST_NUMBER>.diff # Prints the difference from the related oracles.@ \ + @@<PTEST_NAME>.wtests # Tests the specified file.@ \ + @@<PTEST_NAME>.<PTEST_NUMBER>.exec.wtests # Tests the specified sub-test command.@ \ + @@<PTEST_NAME>.<PTEST_NUMBER>.execnow.wtests # Tests the specified execnow command.@ \ + @@<PTEST_NAME>.diff # Prints differences with the oracles related to the specified file.@ \ + @@<PTEST_NAME>.<PTEST_NUMBER>.exec.diff # Prints differences with the oracles related to the specified sub-test command.@ \ + @@<PTEST_NAME>.<PTEST_NUMBER>.execnow.diff # Prints differences with the oracles related to the specified execnow command.@ \ + @@<PTEST_NAME>.<PTEST_NUMBER>.exec.show # Prints the related sub-test command.@ \ + @@<PTEST_NAME>.<PTEST_NUMBER>.execnow.show # Prints the related execnow command.@ \ Note: the <alias-name> defaults to 'ptests'. It can be specified in different ways:@ \ - from the command line option '-dune-alias <alias-name>'@ \ - from directives in 'ptests_config' files such as 'DUNE_ALIAS = <alias-name>'@ \ @@ -1158,11 +1160,6 @@ type toplevel_command = deps: deps; } -let catenate_number nb_files prefix n = - if nb_files > 1 - then prefix ^ "." ^ (string_of_int n) - else prefix - let name_without_extension command = try Filename.chop_extension command.file @@ -1176,7 +1173,10 @@ let make_oracle_file ~env x = Filename.concat (config_name ~env "oracle") x let gen_prefix gen_file cmd = let prefix = gen_file (name_without_extension cmd) in - catenate_number cmd.nb_files prefix cmd.nth + if cmd.nb_files > 1 + then prefix ^ "." ^ (string_of_int cmd.nth) + else prefix + let oracle_prefix ~env = gen_prefix (make_oracle_file ~env) let log_prefix ~env = gen_prefix (make_result_file ~env) @@ -1297,8 +1297,6 @@ let redirection ?reslog ?errlog cmd = let ptests_alias ~env = config_name ~env (env.dune_alias ^ "_config") -let mk_alias cmd suffix = Format.sprintf "%s.%d.%s" cmd.test_name cmd.nth suffix - type wtest = { dir: (string [@default ""]); (* information on the test directory *) info: (string [@default ""]); (* information *) @@ -1367,6 +1365,12 @@ let oracle_target oracle_fmt dir fname = Format.fprintf oracle_fmt "(rule (target %S) (mode fallback) (action (write-file %S \"\")))\n" fname fname +let subtest_alias_prefix cmd = + Format.sprintf "%s.%d.%s" + cmd.test_name + cmd.nth + (if cmd.execnow then "execnow" else "exec") + let command_string ~env ~result_fmt ~oracle_fmt command = let log_prefix = log_prefix ~env command in let reslog = log_prefix ^ ".res.log" in @@ -1411,7 +1415,8 @@ let command_string ~env ~result_fmt ~oracle_fmt command = oracle_err = Filename.concat ".." (oracle_prefix ^ ".err.oracle"); } in - let wrapper_basename = mk_alias command "exec.wtests" in + let subtest_alias = subtest_alias_prefix command in + let wrapper_basename = subtest_alias ^ ".wtests" in if !wrapper_cmd <> "" then begin Format.fprintf result_fmt "(rule ; %s\n \ @@ -1514,7 +1519,7 @@ let command_string ~env ~result_fmt ~oracle_fmt command = (* rule: *) n command.nth command.file (* alias: *) - (ptests_alias ~env) + (subtest_alias ^ ".diff") (* enabled_if: *) pp_enabled_if command.deps (* action: *) @@ -1531,7 +1536,7 @@ let command_string ~env ~result_fmt ~oracle_fmt command = (* rule: *) command.nth command.file (* alias: *) - (mk_alias command "exec") + subtest_alias (* deps: *) pp_command_deps command (* enabled_if: *) @@ -1550,7 +1555,7 @@ let command_string ~env ~result_fmt ~oracle_fmt command = (* rule: *) command.nth command.file (* alias: *) - (mk_alias command "exec.show") + (subtest_alias ^ ".show") (* deps: *) pp_command_deps command (* to get an updated build even in case of using the result *) (* enabled_if: *) @@ -1558,7 +1563,7 @@ let command_string ~env ~result_fmt ~oracle_fmt command = (* action: *) ("echo '" ^ show_cmd wtest.cmd ^"'"); - let diff_alias = log_prefix ^ ".diff" in + let diff_alias = subtest_alias ^ ".diff" in (* diff with oracles *) Format.fprintf result_fmt "(rule\n \ @@ -1591,8 +1596,16 @@ let command_string ~env ~result_fmt ~oracle_fmt command = (deps (alias %S))\n \ %a\n\ )@." - (ptests_alias ~env) + (command.test_name ^ ".diff") diff_alias + pp_enabled_if command.deps; + Format.fprintf result_fmt + "(alias (name %S)\n \ + (deps (alias %S))\n \ + %a\n\ + )@." + (ptests_alias ~env) + (command.test_name ^ ".diff") pp_enabled_if command.deps ; let oracle_subdir = SubDir.oracle_subdir ~env command.directory in @@ -1701,7 +1714,8 @@ let process_file ~env ~result_fmt ~oracle_fmt file directory config modules = (* Detect the problem even if the LOG/BIN is a macro expanded there into an @EMPTY_STRING@ *) Format.eprintf "%s: EXEC/EXECNOW#%d without LOG nor BIN target (DEPRECATED): %s@." file nth wtest.cmd; - let wrapper_basename = mk_alias cmd "execnow.wtests" in + let subtest_alias = subtest_alias_prefix cmd in + let wrapper_basename = subtest_alias ^ ".wtests" in if !wrapper_cmd <> "" then begin Format.fprintf result_fmt "(rule ; %s\n \ @@ -1772,7 +1786,7 @@ let process_file ~env ~result_fmt ~oracle_fmt file directory config modules = (* rule: *) nth file (* alias: *) - (mk_alias cmd "execnow.show") + (subtest_alias ^ ".show") (* deps: *) pp_command_deps cmd (* to get an updated build even in case of using the result *) (* enabled_if: *) @@ -1780,23 +1794,42 @@ let process_file ~env ~result_fmt ~oracle_fmt file directory config modules = (* action: *) ("echo '" ^ show_cmd wtest.cmd ^"'"); ; - List.iteri (fun n log -> - Format.fprintf result_fmt - "(rule ; COMPARE TARGET #%d OF EXECNOW #%d FOR TEST FILE %S\n \ - (alias %s)\n \ - %a\n\ - (action (diff %S %S))\n\ - )@." - (* rule: *) - n nth file - (* alias: *) - (ptests_alias ~env) - (* enabled_if: *) - pp_enabled_if cmd.deps - (* action: *) - (SubDir.make_file (SubDir.oracle_dir ~env) log) - log - ) wtest.log + if wtest.log <> [] then begin + List.iteri (fun n log -> + Format.fprintf result_fmt + "(rule ; COMPARE TARGET #%d OF EXECNOW #%d FOR TEST FILE %S\n \ + (alias %s)\n \ + %a\n\ + (action (diff %S %S))\n\ + )@." + (* rule: *) + n nth file + (* alias: *) + (subtest_alias ^ ".diff") + (* enabled_if: *) + pp_enabled_if cmd.deps + (* action: *) + (SubDir.make_file (SubDir.oracle_dir ~env) log) + log + ) wtest.log; + let diff_alias = subtest_alias ^ ".diff" in + Format.fprintf result_fmt + "(alias (name %S)\n \ + (deps (alias %S))\n \ + %a\n\ + )@." + (cmd.test_name ^ ".diff") + diff_alias + pp_enabled_if cmd.deps; + Format.fprintf result_fmt + "(alias (name %S)\n \ + (deps (alias %S))\n \ + %a\n\ + )@." + (ptests_alias ~env) + (cmd.test_name ^ ".diff") + pp_enabled_if cmd.deps + end in if config.dc_commands <> [] || config.dc_execnow <> [] then begin let pp_list_alias fmt l = List.iter (Format.fprintf fmt "(alias %S)") l in