mirror of
https://github.com/nasa/fprime.git
synced 2025-12-10 00:44:37 -06:00
* Add aggregator component * Add com aggregator to subtopology * Fix aggregator issues * Format and SDD * Add basic UTs * Fix not-empty check, test * sp * Fix author tag * Bump GDS for aggregation; timeout aggregator * Bump comQueue event size * Increase timeout for integration tests * Update Fw/Buffer/Buffer.hpp Co-authored-by: Thomas Boyer-Chammard <49786685+thomas-bc@users.noreply.github.com> * Update Svc/ComAggregator/CMakeLists.txt Co-authored-by: Thomas Boyer-Chammard <49786685+thomas-bc@users.noreply.github.com> * Update Svc/ComAggregator/docs/sdd.md Co-authored-by: Thomas Boyer-Chammard <49786685+thomas-bc@users.noreply.github.com> * Update Svc/ComAggregator/docs/sdd.md Co-authored-by: Thomas Boyer-Chammard <49786685+thomas-bc@users.noreply.github.com> * Remove unused variable 'good' in action doClear * A usage note about APID. --------- Co-authored-by: Thomas Boyer-Chammard <49786685+thomas-bc@users.noreply.github.com>
70 lines
1.6 KiB
C++
70 lines
1.6 KiB
C++
// ======================================================================
|
|
// \title ComAggregatorTestMain.cpp
|
|
// \author lestarch
|
|
// \brief cpp file for ComAggregator component test main function
|
|
// ======================================================================
|
|
|
|
#include "ComAggregatorTester.hpp"
|
|
|
|
TEST(Nominal, Initial) {
|
|
Svc::ComAggregatorTester tester;
|
|
tester.test_initial();
|
|
}
|
|
|
|
TEST(Nominal, Fill) {
|
|
Svc::ComAggregatorTester tester;
|
|
tester.test_initial();
|
|
tester.test_fill();
|
|
}
|
|
|
|
TEST(Nominal, MultiFill) {
|
|
Svc::ComAggregatorTester tester;
|
|
tester.test_initial();
|
|
tester.test_fill_multi();
|
|
}
|
|
|
|
TEST(Nominal, Full) {
|
|
Svc::ComAggregatorTester tester;
|
|
tester.test_initial();
|
|
tester.test_fill_multi();
|
|
tester.test_full();
|
|
}
|
|
|
|
TEST(Nominal, Timeout) {
|
|
Svc::ComAggregatorTester tester;
|
|
tester.test_initial();
|
|
tester.test_fill_multi();
|
|
tester.test_timeout();
|
|
}
|
|
|
|
TEST(OffNominal, TimeoutEmpty) {
|
|
Svc::ComAggregatorTester tester;
|
|
tester.test_initial();
|
|
tester.test_timeout_zero();
|
|
tester.test_fill_multi();
|
|
tester.test_full();
|
|
}
|
|
|
|
TEST(Nominal, HoldWhileWaiting) {
|
|
Svc::ComAggregatorTester tester;
|
|
tester.test_initial();
|
|
tester.test_fill_multi();
|
|
tester.test_hold_while_waiting();
|
|
}
|
|
|
|
TEST(Nominal, Clear) {
|
|
Svc::ComAggregatorTester tester;
|
|
tester.test_initial();
|
|
tester.test_fill_multi();
|
|
tester.test_full();
|
|
tester.test_fill_multi();
|
|
tester.test_timeout();
|
|
tester.test_fill_multi();
|
|
tester.test_full();
|
|
}
|
|
|
|
int main(int argc, char** argv) {
|
|
::testing::InitGoogleTest(&argc, argv);
|
|
return RUN_ALL_TESTS();
|
|
}
|