2020-12-26 14:12:05 -08:00
|
|
|
// Copyright (c) FIRST and other WPILib contributors.
|
|
|
|
|
// Open Source Software; you can modify and/or share it under the terms of
|
|
|
|
|
// the WPILib BSD license file in the root directory of this project.
|
2015-07-14 20:37:52 -07:00
|
|
|
|
2023-08-28 15:13:34 -07:00
|
|
|
#include <gtest/gtest.h>
|
2019-11-08 22:53:20 -08:00
|
|
|
#include <hal/HALBase.h>
|
2017-12-10 19:38:53 -08:00
|
|
|
|
2022-10-23 21:59:04 -07:00
|
|
|
#ifndef __FRC_ROBORIO__
|
|
|
|
|
namespace frc::impl {
|
|
|
|
|
void ResetMotorSafety();
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
2017-08-18 21:35:53 -07:00
|
|
|
int main(int argc, char** argv) {
|
2017-12-10 19:38:53 -08:00
|
|
|
HAL_Initialize(500, 0);
|
2017-08-18 21:35:53 -07:00
|
|
|
::testing::InitGoogleTest(&argc, argv);
|
|
|
|
|
int ret = RUN_ALL_TESTS();
|
2022-10-23 21:59:04 -07:00
|
|
|
#ifndef __FRC_ROBORIO__
|
|
|
|
|
frc::impl::ResetMotorSafety();
|
|
|
|
|
#endif
|
2017-08-18 21:35:53 -07:00
|
|
|
return ret;
|
2015-07-14 20:37:52 -07:00
|
|
|
}
|