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_rand.cc 618B

1234567891011121314151617181920212223
  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/rand.h"
  8. int main( int argc, char ** argv ) {
  9. ::testing::InitGoogleTest(&argc, argv);
  10. return RUN_ALL_TESTS();
  11. }
  12. TEST( test_task_rand, execute_only ) {
  13. configureAndRunRand();
  14. dataChannelWriteToFile( DATA_CHANNEL_2_BASE, "data.py" );
  15. }
  16. TEST( test_task_rand, execute_and_check ) {
  17. configureAndRunRand();
  18. dataChannelCheckAndWriteToFile( DATA_CHANNEL_2_BASE, expected_rand, "data.py" );
  19. }