Studentenversion des ESY6/A Praktikums "signal_processing".
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test_task_fft.cc 771B

1234567891011121314151617181920212223242526
  1. #include <gtest/gtest.h>
  2. #include <cmath>
  3. #include <fstream>
  4. #include "../dataChannelTestUtility.h"
  5. #include "../taskTests.h"
  6. #include "../../../software/signal_processing_bsp/system.h"
  7. #include "../../data/add_rand.h"
  8. #include "../../data/fft.h"
  9. int main( int argc, char ** argv ) {
  10. ::testing::InitGoogleTest(&argc, argv);
  11. return RUN_ALL_TESTS();
  12. }
  13. TEST( test_task_fft, execute_only ) {
  14. dataChannelFill( DATA_CHANNEL_4_BASE, expected_add_rand );
  15. configureAndRunFft();
  16. dataChannelWriteToFile( DATA_CHANNEL_5_BASE, "data.py" );
  17. }
  18. TEST( test_task_fft, execute_and_check ) {
  19. dataChannelFill( DATA_CHANNEL_4_BASE, expected_add_rand );
  20. configureAndRunFft();
  21. dataChannelCheckAndWriteToFile( DATA_CHANNEL_5_BASE, expected_fft, "data.py" );
  22. }