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_crc.cc 555B

1234567891011121314151617181920
  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/fft.h"
  8. #include "../../data/crc.h"
  9. int main( int argc, char ** argv ) {
  10. ::testing::InitGoogleTest(&argc, argv);
  11. return RUN_ALL_TESTS();
  12. }
  13. TEST( test_task_crc, execute_and_check ) {
  14. dataChannelFill( DATA_CHANNEL_5_BASE, expected_fft );
  15. configureAndRunCrc();
  16. dataChannelCheck( DATA_CHANNEL_6_BASE, expected_crc, "data.py" );
  17. }