From f3cc89921f9247ea2bfa820d45c03f1eb997220d Mon Sep 17 00:00:00 2001 From: Thomas Boyer Chammard <49786685+thomas-bc@users.noreply.github.com> Date: Fri, 4 Aug 2023 09:18:10 -0700 Subject: [PATCH] Revert "Fixes main.cpp references in MathComponent tutorial (#2042)" This reverts commit 29b73f003eede767a2bba0c455aaf97417337f58. --- docs/Tutorials/MathComponent/Tutorial.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/Tutorials/MathComponent/Tutorial.md b/docs/Tutorials/MathComponent/Tutorial.md index f254ed2fcea..e6c9e3004f1 100644 --- a/docs/Tutorials/MathComponent/Tutorial.md +++ b/docs/Tutorials/MathComponent/Tutorial.md @@ -796,7 +796,7 @@ Open `MathSender/CMakeLists.txt` and update the definition of set(UT_SOURCE_FILES "${CMAKE_CURRENT_LIST_DIR}/MathSender.fpp" "${CMAKE_CURRENT_LIST_DIR}/test/ut/Tester.cpp" - "${CMAKE_CURRENT_LIST_DIR}/test/ut/TestMain.cpp" + "${CMAKE_CURRENT_LIST_DIR}/test/ut/main.cpp" ) set(UT_AUTO_HELPERS ON) register_fprime_ut() @@ -976,7 +976,7 @@ void Tester :: This function calls `testDoMath` to test an `ADD` command. **Write a test macro:** -Add the following code to the file `TestMain.cpp`, +Add the following code to the file `main.cpp`, before the definition of the `main` function: ```c++ @@ -1074,7 +1074,7 @@ component sends a result back to `MathSender`. The main difference is that it invokes a port directly (the `mathResultIn` port) instead of sending a command. -1. Add the following test macro to `TestMain.cpp`: +1. Add the following test macro to `main.cpp`: ```c++ TEST(Nominal, Result) { @@ -1113,9 +1113,9 @@ and 10. This line tells the build system to make the unit test build depend on the `STest` build module. -1. Add `#include "STest/Random/Random.hpp"` to `TestMain.cpp`. +1. Add `#include "STest/Random/Random.hpp"` to `main.cpp`. -1. Add the following line to the `main` function of `TestMain.cpp`, +1. Add the following line to the `main` function of `main.cpp`, just before the return statement: ```c++ @@ -1735,7 +1735,7 @@ Instead we invoke `schedIn`. For each of the tests described below, you must add the corresponding function prototype to `Tester.hpp` -and the corresponding test macro to `TestMain.cpp`. +and the corresponding test macro to `main.cpp`. If you can't remember how to do it, look back at the `MathSender` examples. After writing each test, run all the tests and make sure