mirror of https://github.com/rusefi/rusefi-1.git
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:
parent
9151b0c6c1
commit
0fb500a08a
|
@ -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;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package com.rusefi.common;
|
||||
package com.rusefi.f4discovery;
|
||||
|
||||
|
||||
import com.rusefi.RusefiTestBase;
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue