Lösung des Praktikums Systementwurf
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_sine.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/sine.h"
  8. int main( int argc, char ** argv ) {
  9. ::testing::InitGoogleTest(&argc, argv);
  10. return RUN_ALL_TESTS();
  11. }
  12. TEST( test_task_sine, execute_only ) {
  13. configureAndRunSine();
  14. dataChannelWriteToFile( DATA_CHANNEL_0_BASE, "data.py" );
  15. }
  16. TEST( test_task_sine, execute_and_check ) {
  17. configureAndRunSine();
  18. dataChannelCheckAndWriteToFile( DATA_CHANNEL_0_BASE, expected_sine, "data.py" );
  19. }