Refactor top tests

This commit is contained in:
Rob Bocchino 2025-12-04 21:24:20 -08:00
parent 65e2ca9467
commit f78728c2be
21 changed files with 14 additions and 58 deletions

View File

@ -1,27 +0,0 @@
#!/bin/sh -e
fpp_to_cpp=../../../../../../bin/fpp-to-cpp
fprime_gcc=../../../../../../scripts/fprime-gcc
echo ' removing old files'
./clean
base_dir=`cd ../..; echo $PWD`
src_dir=$base_dir/typed_ports_active
echo ' generating C++'
$fpp_to_cpp -p $base_dir,$src_dir $src_dir/components.fpp \
$src_dir/topology.fpp
for suffix in hpp cpp
do
cp $src_dir/TypedPortsActiveTopologyAc.ref.$suffix TypedPortsActiveTopologyAc.$suffix
done
flags="-I.. -I../../../fprime -I../../../fprime/config -Wno-unused-parameter -c"
echo ' compiling C++'
for variable_flags in '' '-DFW_DIRECT_PORT_CALLS'
do
echo " variable_flags=$variable_flags"
$fprime_gcc $variable_flags $flags TypedPortsActiveTopologyAc.cpp
done

View File

@ -1,27 +0,0 @@
#!/bin/sh -e
fpp_to_cpp=../../../../../../bin/fpp-to-cpp
fprime_gcc=../../../../../../scripts/fprime-gcc
echo ' removing old files'
./clean
base_dir=`cd ../..; echo $PWD`
src_dir=$base_dir/typed_ports_queued
echo ' generating C++'
$fpp_to_cpp -p $base_dir,$src_dir $src_dir/components.fpp \
$src_dir/topology.fpp
for suffix in hpp cpp
do
cp $src_dir/TypedPortsQueuedTopologyAc.ref.$suffix TypedPortsQueuedTopologyAc.$suffix
done
flags="-I.. -I../../../fprime -I../../../fprime/config -Wno-unused-parameter -c"
echo ' compiling C++'
for variable_flags in '' '-DFW_DIRECT_PORT_CALLS'
do
echo " variable_flags=$variable_flags"
$fprime_gcc $variable_flags $flags TypedPortsQueuedTopologyAc.cpp
done

View File

@ -3,6 +3,6 @@ commands
health
params
tlm_packets
TypedPortsActive
TypedPortsPassive
TypedPortsQueued
typed_ports_active
typed_ports_passive
typed_ports_queued

View File

@ -2,4 +2,4 @@
. `dirname $0`/../check_topology.sh
check_topology typed_ports_passive
check_topology

View File

@ -0,0 +1,5 @@
#!/bin/sh -e
. `dirname $0`/../check_topology.sh
check_topology

View File

@ -0,0 +1,5 @@
#!/bin/sh -e
. `dirname $0`/../check_topology.sh
check_topology