Initial commit

This commit is contained in:
Johannes Kutning
2023-10-31 07:47:27 +01:00
commit 0d1b73e3e0
255 changed files with 16057 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
binary = test_task_fft
expected_data = ../../data/fft.py
cc_sources = test_task_fft.cc \
include ../data_tests.mk
File diff suppressed because one or more lines are too long
+26
View File
@@ -0,0 +1,26 @@
#include <gtest/gtest.h>
#include <cmath>
#include <fstream>
#include "../dataChannelTestUtility.h"
#include "../taskTests.h"
#include "../../../software/signal_processing_bsp/system.h"
#include "../../data/add_rand.h"
#include "../../data/fft.h"
int main( int argc, char ** argv ) {
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
TEST( test_task_fft, execute_only ) {
dataChannelFill( DATA_CHANNEL_4_BASE, expected_add_rand );
configureAndRunFft();
dataChannelWriteToFile( DATA_CHANNEL_5_BASE, "data.py" );
}
TEST( test_task_fft, execute_and_check ) {
dataChannelFill( DATA_CHANNEL_4_BASE, expected_add_rand );
configureAndRunFft();
dataChannelCheckAndWriteToFile( DATA_CHANNEL_5_BASE, expected_fft, "data.py" );
}