A hardware CI test for Proteus 🎉🎉🎉 (#2270)

* test vbatt

* test proteus vbatt

* tolerance

* these don't work on proteus

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
This commit is contained in:
Matthew Kennedy 2021-02-03 06:05:18 -08:00 committed by GitHub
parent 9151b0c6c1
commit 0fb500a08a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 3 deletions

View File

@ -1,6 +1,6 @@
package com.rusefi;
import com.rusefi.common.CommonFunctionalTest;
import com.rusefi.f4discovery.CommonFunctionalTest;
import com.rusefi.f4discovery.HighRevTest;
import com.rusefi.f4discovery.PwmHardwareTest;
import com.rusefi.f4discovery.VssHardwareLoopTest;

View File

@ -1,4 +1,4 @@
package com.rusefi.common;
package com.rusefi.f4discovery;
import com.rusefi.RusefiTestBase;

View File

@ -1,7 +1,19 @@
package com.rusefi.proteus;
import com.rusefi.RusefiTestBase;
import com.rusefi.core.Sensor;
import com.rusefi.core.SensorCentral;
import org.junit.Test;
import static org.junit.Assert.assertTrue;
public class ProteusAnalogTest extends RusefiTestBase {
// stub for now
@Test
public void testVbatt() {
double vbatt = SensorCentral.getInstance().getValue(Sensor.VBATT);
// allow some tolerance for the supply voltage...
assertTrue(vbatt > 11);
assertTrue(vbatt < 13);
}
}