Revise top tests

This commit is contained in:
Rob Bocchino 2025-12-04 18:45:08 -08:00
parent a86606c2b6
commit f93a3ee2d6
7 changed files with 27 additions and 26 deletions

View File

@ -1,7 +1,7 @@
check_topology()
{
top_dir=$1
src_dir=$1
top_name=$2
dir=`dirname $0`
@ -16,7 +16,7 @@ check_topology()
echo ' generating C++'
(
cd $dir/../../$top_dir;
cd $dir/../../$src_dir;
$FPP_TO_CPP -p $PWD -i $FPRIME_DEPS,../phases.fpp -d $dir components.fpp topology.fpp
)

View File

@ -0,0 +1,15 @@
module M {
module N {
module O {
passive component C {
}
}
}
}

View File

@ -1,19 +1,3 @@
module M {
module N {
module O {
passive component C {
}
}
}
}
instance c: M.N.O.C base id 0x100
module M {

View File

@ -1,50 +1,49 @@
basic()
{
cd basic
cd $TOP_DIR/basic
update "-p $PWD -i $FPRIME_DEPS,../phases.fpp,components.fpp -n basic.names.txt" topology
mv basic.names.txt basic.names.ref.txt
move_cpp BasicTopology
cd ..
}
commands()
{
cd commands
cd $TOP_DIR/commands
update "-p $PWD -i $FPRIME_DEPS,../phases.fpp,components.fpp" topology
move_cpp CommandsTopology
cd ..
}
health()
{
cd health
cd $TOP_DIR/health
update "-p $PWD -i $FPRIME_DEPS,../phases.fpp,components.fpp" topology
move_cpp HealthTopology
cd ..
}
nested_namespaces()
{
cd nested_namespaces
cd $TOP_DIR/nested_namespaces
update "-p $PWD -i $FPRIME_DEPS,../phases.fpp,components.fpp" topology
move_cpp NestedNamespacesTopology
cd ..
}
no_namespace()
{
cd $TOP_DIR
update "-p $PWD" no_namespace
move_cpp NoNamespaceTopology
}
params()
{
cd $TOP_DIR
update "-i builtin.fpp -p $PWD" params
move_cpp ParamsTopology
}
tlm_packets()
{
cd $TOP_DIR
update "-i builtin.fpp -p $PWD" tlm_packets
move_cpp NoInstancesTopology
move_cpp NoInstances_P1TlmPackets
@ -59,6 +58,7 @@ tlm_packets()
typed_ports_active()
{
cd $TOP_DIR
src_dir=$PWD/typed_ports_active
update "-d $src_dir -p $PWD,$src_dir -i $src_dir/components.fpp" \
$src_dir/topology
@ -67,6 +67,7 @@ typed_ports_active()
typed_ports_passive()
{
cd $TOP_DIR
src_dir=$PWD/typed_ports_passive
update "-d $src_dir -p $PWD,$src_dir -i $src_dir/components.fpp" \
$src_dir/topology
@ -75,6 +76,7 @@ typed_ports_passive()
typed_ports_queued()
{
cd $TOP_DIR
src_dir=$PWD/typed_ports_queued
update "-d $src_dir -p $PWD,$src_dir -i $src_dir/components.fpp" \
$src_dir/topology