migrating to googletest
This commit is contained in:
parent
1f410ad7cc
commit
7d14bb6d57
|
@ -95,10 +95,6 @@ GTEST_API_ int main(int argc, char **argv) {
|
|||
|
||||
testPinHelper();
|
||||
|
||||
testAccelEnrichment();
|
||||
|
||||
testSpeedDensity();
|
||||
|
||||
testMenuTree();
|
||||
testMafLookup();
|
||||
testIgnitionMapGenerator();
|
||||
|
@ -107,7 +103,6 @@ GTEST_API_ int main(int argc, char **argv) {
|
|||
testTriggerDecoder();
|
||||
|
||||
|
||||
|
||||
// resizeMap();
|
||||
printf("Success 20190103\r\n");
|
||||
printAllTriggers();
|
||||
|
|
|
@ -8,11 +8,10 @@
|
|||
|
||||
#include "global.h"
|
||||
#include "accel_enrichment.h"
|
||||
#include "test_accel_enrichment.h"
|
||||
#include "engine_configuration.h"
|
||||
#include "engine_test_helper.h"
|
||||
|
||||
void testAccelEnrichment(void) {
|
||||
TEST(big, testAccelEnrichment) {
|
||||
printf("====================================================================================== testAccelEnrichment\r\n");
|
||||
|
||||
EngineTestHelper eth(FORD_ASPIRE_1996);
|
||||
|
|
|
@ -9,6 +9,4 @@
|
|||
#ifndef TEST_ACCEL_ENRICHMENT_H_
|
||||
#define TEST_ACCEL_ENRICHMENT_H_
|
||||
|
||||
void testAccelEnrichment(void);
|
||||
|
||||
#endif /* TEST_ACCEL_ENRICHMENT_H_ */
|
||||
|
|
|
@ -43,7 +43,7 @@ TEST(sensors, testFasterEngineSpinningUp) {
|
|||
// check if the mode is changed
|
||||
assertEquals(SPINNING_UP, engine->rpmCalculator.getState());
|
||||
// due to isFasterEngineSpinUp=true, we should have already detected RPM!
|
||||
assertEqualsM("RPM#1", 300, engine->rpmCalculator.getRpm(PASS_ENGINE_PARAMETER_SIGNATURE));
|
||||
assertEqualsM("spinning-RPM#1", 300, engine->rpmCalculator.getRpm(PASS_ENGINE_PARAMETER_SIGNATURE));
|
||||
// two simultaneous injections
|
||||
assertEqualsM("plain#1", 4, engine->executor.size());
|
||||
// test if they are simultaneous
|
||||
|
|
|
@ -8,9 +8,8 @@
|
|||
#include "global.h"
|
||||
#include "engine_test_helper.h"
|
||||
#include "speed_density.h"
|
||||
#include "test_speed_density.h"
|
||||
|
||||
void testSpeedDensity(void) {
|
||||
TEST(big, testSpeedDensity) {
|
||||
printf("*************************************************** testSpeedDensity\r\n");
|
||||
EngineTestHelper eth(FORD_INLINE_6_1995);
|
||||
EXPAND_EngineTestHelper;
|
||||
|
|
|
@ -8,6 +8,4 @@
|
|||
#ifndef TEST_SPEED_DENSITY_H_
|
||||
#define TEST_SPEED_DENSITY_H_
|
||||
|
||||
void testSpeedDensity(void);
|
||||
|
||||
#endif /* TEST_SPEED_DENSITY_H_ */
|
||||
|
|
|
@ -22,7 +22,7 @@ TEST(engine, testPlainCrankingWithoutAdvancedFeatures) {
|
|||
|
||||
eth.fireTriggerEventsWithDuration(/* durationMs */ 200);
|
||||
// still no RPM since need to cycles measure cycle duration
|
||||
assertEqualsM("RPM#1", 0, engine->rpmCalculator.getRpm(PASS_ENGINE_PARAMETER_SIGNATURE));
|
||||
assertEqualsM("start-RPM#1", 0, engine->rpmCalculator.getRpm(PASS_ENGINE_PARAMETER_SIGNATURE));
|
||||
|
||||
|
||||
eth.fireRise(/* delayMs */ 200);
|
||||
|
|
|
@ -466,8 +466,6 @@ void testTriggerDecoder(void) {
|
|||
assertEquals(s->wave.switchTimes[2], 0.75);
|
||||
assertEquals(s->wave.switchTimes[3], 1);
|
||||
|
||||
testNoiselessDecoder();
|
||||
|
||||
printf("====================================================================================== testTriggerDecoder part 2\r\n");
|
||||
testDodgeNeonDecoder();
|
||||
testTriggerDecoder2("Dodge Neon 1995", DODGE_NEON_1995, 8, 0.4931, 0.2070);
|
||||
|
|
|
@ -16,7 +16,6 @@ void testStartupFuelPumping(void);
|
|||
void test1995FordInline6TriggerDecoder(void);
|
||||
void testTriggerDecoder2(const char *msg, engine_type_e type, int synchPointIndex, float channel1duty, float channel2duty);
|
||||
void setupSimpleTestEngineWithMafAndTT_ONE_trigger(EngineTestHelper *eth, injection_mode_e injMode = IM_BATCH);
|
||||
void testNoiselessDecoder(void);
|
||||
|
||||
void assertRpm(const char *msg, int expectedRpm DECLARE_ENGINE_PARAMETER_SUFFIX);
|
||||
|
||||
|
|
|
@ -167,7 +167,7 @@ static void testNoiselessDecoderProcedure(EngineTestHelper ð, int errorTolera
|
|||
|
||||
}
|
||||
|
||||
void testNoiselessDecoder(void) {
|
||||
TEST(big, testNoiselessDecoder) {
|
||||
printf("====================================================================================== testNoiselessDecoder\r\n");
|
||||
|
||||
EngineTestHelper eth(TEST_ENGINE);
|
||||
|
|
Loading…
Reference in New Issue