Revise fpp-depend tests

Conform to changes in tool
This commit is contained in:
bocchino 2021-06-28 15:39:21 -07:00
parent 7567a68299
commit d25a91fa7f
8 changed files with 24 additions and 11 deletions

View File

@ -1,3 +0,0 @@
[ local path prefix ]/compiler/tools/fpp-depend/test/included1.fppi
[ local path prefix ]/compiler/tools/fpp-depend/test/included2.fppi
[ local path prefix ]/compiler/tools/fpp-depend/test/included3.fppi

View File

@ -0,0 +1,3 @@
[ local path prefix ]/compiler/tools/fpp-depend/test/included1.fppi
[ local path prefix ]/compiler/tools/fpp-depend/test/included2.fppi
[ local path prefix ]/compiler/tools/fpp-depend/test/included3.fppi

View File

@ -1,2 +1 @@
[ local path prefix ]/compiler/tools/fpp-depend/test/locate_constant_include_3.fppi
[ local path prefix ]/compiler/tools/fpp-depend/test/locate_constant_include_2.fppi

View File

@ -0,0 +1 @@
[ local path prefix ]/compiler/tools/fpp-depend/test/locate_constant_include_2.fppi

View File

@ -40,12 +40,16 @@ done > default-tests.sh
# Custom tests
include()
{
run_test -i include
run_test '-i tmp.out.txt' include
remove_path_prefix < tmp.out.txt > include_output.out.txt
compare include_output
}
included_dep_i()
{
run_test -i included_dep included_dep_i
run_test '-i tmp.out.txt' included_dep included_dep_i
remove_path_prefix < tmp.out.txt > included_dep_i_output.out.txt
compare included_dep_i_output
}
locate_constant_include_no_i()
@ -55,7 +59,9 @@ locate_constant_include_no_i()
locate_constant_include_i()
{
run_test -i locate_constant_include_1 locate_constant_include_i
run_test '-i tmp.out.txt' locate_constant_include_1 locate_constant_include_i
remove_path_prefix < tmp.out.txt > locate_constant_include_i_output.out.txt
compare locate_constant_include_i_output
}
missing()

View File

@ -1,3 +1,8 @@
#tests="
#include
#included_dep_i
#locate_constant_include_i
#"
tests="
def_array
def_component_instance
@ -36,4 +41,3 @@ spec_port_instance
spec_tlm_channel
spec_top_import
"

View File

@ -37,15 +37,18 @@ done > default-update-ref.sh
# Custom update ref
include() {
update -i include
update '-i tmp.out.txt' include
remove_path_prefix < tmp.out.txt > include_output.ref.txt
}
included_dep_i() {
update -i included_dep included_dep_i
update '-i tmp.out.txt' included_dep included_dep_i
remove_path_prefix < tmp.out.txt > included_dep_i_output.ref.txt
}
locate_constant_include_i() {
update -i locate_constant_include_1 locate_constant_include_i
update '-i tmp.out.txt' locate_constant_include_1 locate_constant_include_i
remove_path_prefix < tmp.out.txt > locate_constant_include_i_output.ref.txt
}
locate_constant_include_no_i()