generate java enum from C enum? generate both C and java from yaml? #2102
This commit is contained in:
parent
3bc168089b
commit
b7601e063f
|
@ -11,7 +11,7 @@
|
|||
using ::testing::_;
|
||||
|
||||
TEST(ignition, twoCoils) {
|
||||
WITH_ENGINE_TEST_HELPER(BMW_M73_F);
|
||||
WITH_ENGINE_TEST_HELPER(FRANKENSO_BMW_M73_F);
|
||||
|
||||
// first one to fire uses first coil
|
||||
ASSERT_EQ(ENGINE(ignitionPin[ID2INDEX(1)]), 0);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include "pch.h"
|
||||
|
||||
TEST(hardware, reinit) {
|
||||
WITH_ENGINE_TEST_HELPER(MIATA_NA6_MAP);
|
||||
WITH_ENGINE_TEST_HELPER(FRANKENSO_MIATA_NA6_MAP);
|
||||
|
||||
ButtonDebounce::stopConfigurationList();
|
||||
ButtonDebounce::startConfigurationList();
|
||||
|
@ -11,5 +11,5 @@ TEST(hardware, reinit) {
|
|||
|
||||
|
||||
resetConfigurationExt(nullptr, DODGE_NEON_1995 PASS_ENGINE_PARAMETER_SUFFIX);
|
||||
resetConfigurationExt(nullptr, MIATA_NA6_MAP PASS_ENGINE_PARAMETER_SUFFIX);
|
||||
resetConfigurationExt(nullptr, FRANKENSO_MIATA_NA6_MAP PASS_ENGINE_PARAMETER_SUFFIX);
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ extern float getTachDuty(void);
|
|||
|
||||
TEST(tachometer, testPulsePerRev) {
|
||||
// This engine has a tach pin set - we need that
|
||||
WITH_ENGINE_TEST_HELPER(MAZDA_MIATA_2003);
|
||||
WITH_ENGINE_TEST_HELPER(FRANKENSO_MAZDA_MIATA_2003);
|
||||
|
||||
// We don't actually care about ign/inj at all, just tach
|
||||
engineConfiguration->isInjectionEnabled = false;
|
||||
|
|
|
@ -122,7 +122,7 @@ TEST(trigger, testCamInput) {
|
|||
}
|
||||
|
||||
TEST(trigger, testNB2CamInput) {
|
||||
WITH_ENGINE_TEST_HELPER(MAZDA_MIATA_2003);
|
||||
WITH_ENGINE_TEST_HELPER(FRANKENSO_MAZDA_MIATA_2003);
|
||||
|
||||
// this crank trigger would be easier to test, crank shape is less important for this test
|
||||
eth.setTriggerType(TT_ONE PASS_ENGINE_PARAMETER_SUFFIX);
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include "trigger_emulator_algo.h"
|
||||
|
||||
TEST(miata, miata_na_tdc) {
|
||||
WITH_ENGINE_TEST_HELPER(MIATA_NA6_MAP);
|
||||
WITH_ENGINE_TEST_HELPER(FRANKENSO_MIATA_NA6_MAP);
|
||||
|
||||
#define TEST_REVOLUTIONS 6
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#include "pch.h"
|
||||
|
||||
TEST(subaru, overrideGap) {
|
||||
WITH_ENGINE_TEST_HELPER(MIATA_NA6_MAP);
|
||||
WITH_ENGINE_TEST_HELPER(FRANKENSO_MIATA_NA6_MAP);
|
||||
|
||||
CONFIG(overrideTriggerGaps) = true;
|
||||
CONFIG(gapTrackingLengthOverride) = 2;
|
||||
|
|
|
@ -15,7 +15,7 @@ TEST(cranking, realCrankingFromFile) {
|
|||
int indeces[2] = {1, 0}; // this logic data file has first trigger channel in second column and second trigger channel in first column
|
||||
reader.open("tests/trigger/resources/cranking_na_3.csv", indeces);
|
||||
|
||||
WITH_ENGINE_TEST_HELPER (MIATA_NA6_MAP);
|
||||
WITH_ENGINE_TEST_HELPER (FRANKENSO_MIATA_NA6_MAP);
|
||||
|
||||
ssize_t read;
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ static void fireTriggerEvent(EngineTestHelper*eth, double timestampS, trigger_wh
|
|||
}
|
||||
|
||||
TEST(cranking, hardcodedRealCranking) {
|
||||
WITH_ENGINE_TEST_HELPER(MIATA_NA6_VAF);
|
||||
WITH_ENGINE_TEST_HELPER(FRANKENSO_MIATA_NA6_VAF);
|
||||
|
||||
#define EVENT(timestamp, channel, value) { fireTriggerEvent(ð, timestamp, channel, value); }
|
||||
|
||||
|
@ -171,7 +171,7 @@ TEST(cranking, naCrankFromFile) {
|
|||
int indeces[2] = {1, 0};
|
||||
reader.open("tests/trigger/resources/cranking_na_4.csv", indeces);
|
||||
|
||||
WITH_ENGINE_TEST_HELPER(MIATA_NA6_VAF);
|
||||
WITH_ENGINE_TEST_HELPER(FRANKENSO_MIATA_NA6_VAF);
|
||||
|
||||
while (reader.haveMore()) {
|
||||
reader.processLine(ð);
|
||||
|
|
|
@ -15,7 +15,7 @@ static void postFourEvents(EngineTestHelper *eth, float mult) {
|
|||
}
|
||||
|
||||
TEST(engine, testAngleLogicInSymmetricalCrankIssue2980) {
|
||||
WITH_ENGINE_TEST_HELPER(MAZDA_MIATA_2003);
|
||||
WITH_ENGINE_TEST_HELPER(FRANKENSO_MAZDA_MIATA_2003);
|
||||
|
||||
TriggerFormDetails *triggerForm = &ENGINE(triggerCentral.triggerFormDetails);
|
||||
|
||||
|
@ -44,7 +44,7 @@ TEST(engine, testAngleLogicInSymmetricalCrankIssue2980) {
|
|||
|
||||
TEST(engine, testSymmetricalCrank) {
|
||||
|
||||
WITH_ENGINE_TEST_HELPER(MAZDA_MIATA_2003);
|
||||
WITH_ENGINE_TEST_HELPER(FRANKENSO_MAZDA_MIATA_2003);
|
||||
|
||||
// this test is not about isFasterEngineSpinUpEnabled so let's disable it to simplify things
|
||||
CONFIG(isFasterEngineSpinUpEnabled) = false;
|
||||
|
|
|
@ -451,7 +451,7 @@ TEST(misc, testRpmCalculator) {
|
|||
}
|
||||
|
||||
TEST(misc, testAnotherTriggerDecoder) {
|
||||
testTriggerDecoder2("Miata 2003", MAZDA_MIATA_2003, 3, 0.38888889, 0.0);
|
||||
testTriggerDecoder2("Miata 2003", FRANKENSO_MAZDA_MIATA_2003, 3, 0.38888889, 0.0);
|
||||
}
|
||||
|
||||
TEST(misc, testTriggerDecoder) {
|
||||
|
|
|
@ -12,6 +12,6 @@ TEST(trigger, miataNA) {
|
|||
TriggerWaveform naShape;
|
||||
initializeMazdaMiataNaShape(&naShape);
|
||||
|
||||
WITH_ENGINE_TEST_HELPER(MIATA_NA6_MAP);
|
||||
WITH_ENGINE_TEST_HELPER(FRANKENSO_MIATA_NA6_MAP);
|
||||
// todo: https://github.com/rusefi/rusefi/issues/679
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue