mirror of
https://github.com/nasa/fpp.git
synced 2025-12-10 00:40:22 -06:00
85 lines
2.0 KiB
Bash
85 lines
2.0 KiB
Bash
basic()
|
|
{
|
|
cd $TOP_DIR/basic
|
|
run_test "-p $PWD -i $FPRIME_DEPS,../phases.fpp,components.fpp -n basic.names.txt" topology && \
|
|
diff -u basic.names.txt basic.names.ref.txt && \
|
|
diff_cpp BasicTopology
|
|
}
|
|
|
|
commands()
|
|
{
|
|
cd $TOP_DIR/commands
|
|
run_test "-p $PWD -i $FPRIME_DEPS,../phases.fpp,components.fpp" topology && \
|
|
diff_cpp CommandsTopology
|
|
}
|
|
|
|
health()
|
|
{
|
|
cd $TOP_DIR/health
|
|
run_test "-p $PWD -i $FPRIME_DEPS,../phases.fpp,components.fpp" topology && \
|
|
diff_cpp HealthTopology
|
|
}
|
|
|
|
nested_namespaces()
|
|
{
|
|
cd $TOP_DIR/nested_namespaces
|
|
run_test "-p $PWD -i $FPRIME_DEPS,../phases.fpp,components.fpp" topology && \
|
|
diff_cpp NestedNamespacesTopology
|
|
}
|
|
|
|
no_namespace()
|
|
{
|
|
cd $TOP_DIR/no_namespace
|
|
run_test "-p $PWD -i $FPRIME_DEPS,../phases.fpp" topology && \
|
|
diff_cpp NoNamespaceTopology
|
|
}
|
|
|
|
params()
|
|
{
|
|
cd $TOP_DIR/params
|
|
run_test "-p $PWD -i $FPRIME_DEPS,../phases.fpp,components.fpp" topology && \
|
|
diff_cpp ParamsTopology
|
|
}
|
|
|
|
tlm_packets()
|
|
{
|
|
cd $TOP_DIR
|
|
run_test "-i builtin.fpp -p $PWD" tlm_packets && \
|
|
diff_cpp NoInstancesTopology && \
|
|
diff_cpp NoInstances_P1TlmPackets && \
|
|
diff_cpp NoInstances_P2TlmPackets && \
|
|
diff_cpp OneInstanceTopology && \
|
|
diff_cpp OneInstance_P1TlmPackets && \
|
|
diff_cpp OneInstance_P2TlmPackets && \
|
|
diff_cpp OneInstance_P3TlmPackets && \
|
|
diff_cpp TwoInstancesTopology && \
|
|
diff_cpp TwoInstances_P1TlmPackets
|
|
}
|
|
|
|
typed_ports_active()
|
|
{
|
|
cd $TOP_DIR
|
|
src_dir=$PWD/typed_ports_active
|
|
run_test "-d $src_dir -p $PWD,$src_dir -i $src_dir/components.fpp" \
|
|
$src_dir/topology && \
|
|
diff_cpp $src_dir/TypedPortsActiveTopology
|
|
}
|
|
|
|
typed_ports_passive()
|
|
{
|
|
cd $TOP_DIR
|
|
src_dir=$PWD/typed_ports_passive
|
|
run_test "-d $src_dir -p $PWD,$src_dir -i $src_dir/components.fpp" \
|
|
$src_dir/topology && \
|
|
diff_cpp $src_dir/TypedPortsPassiveTopology
|
|
}
|
|
|
|
typed_ports_queued()
|
|
{
|
|
cd $TOP_DIR
|
|
src_dir=$PWD/typed_ports_queued
|
|
run_test "-d $src_dir -p $PWD,$src_dir -i $src_dir/components.fpp" \
|
|
$src_dir/topology && \
|
|
diff_cpp $src_dir/TypedPortsQueuedTopology
|
|
}
|