add main script for missing tests (#461)

* add main script for missing tests

* Fix CodeQL warning
This commit is contained in:
Atsushi Sakai
2021-01-16 16:07:28 +09:00
committed by GitHub
parent 2731cdba00
commit 98f9b22465
19 changed files with 71 additions and 5 deletions

View File

@@ -20,11 +20,6 @@ jobs:
# a pull request then we can checkout the head.
fetch-depth: 2
# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1

View File

@@ -5,3 +5,7 @@ from PathTracking.lqr_speed_steer_control import lqr_speed_steer_control as m
def test_1():
m.show_animation = False
m.main()
if __name__ == '__main__':
conftest.run_this_test(__file__)

View File

@@ -12,3 +12,6 @@ if 'cvxpy' in sys.modules: # pragma: no cover
def test_2():
m.show_animation = False
m.main2()
if __name__ == '__main__':
conftest.run_this_test(__file__)

View File

@@ -5,3 +5,7 @@ from PathTracking.move_to_pose import move_to_pose as m
def test_1():
m.show_animation = False
m.main()
if __name__ == '__main__':
conftest.run_this_test(__file__)

View File

@@ -9,3 +9,7 @@ random.seed(12345)
def test1():
m.show_animation = False
m.animation()
if __name__ == '__main__':
conftest.run_this_test(__file__)

View File

@@ -5,3 +5,7 @@ from Localization.particle_filter import particle_filter as m
def test_1():
m.show_animation = False
m.main()
if __name__ == '__main__':
conftest.run_this_test(__file__)

View File

@@ -5,3 +5,7 @@ from PathPlanning.PotentialFieldPlanning import potential_field_planning as m
def test1():
m.show_animation = False
m.main()
if __name__ == '__main__':
conftest.run_this_test(__file__)

View File

@@ -5,3 +5,7 @@ from PathTracking.pure_pursuit import pure_pursuit as m
def test1():
m.show_animation = False
m.main()
if __name__ == '__main__':
conftest.run_this_test(__file__)

View File

@@ -5,3 +5,7 @@ from PathPlanning.QuinticPolynomialsPlanner import quintic_polynomials_planner a
def test1():
m.show_animation = False
m.main()
if __name__ == '__main__':
conftest.run_this_test(__file__)

View File

@@ -5,3 +5,7 @@ from Mapping.raycasting_grid_map import raycasting_grid_map as m
def test1():
m.show_animation = False
m.main()
if __name__ == '__main__':
conftest.run_this_test(__file__)

View File

@@ -5,3 +5,7 @@ from Mapping.rectangle_fitting import rectangle_fitting as m
def test1():
m.show_animation = False
m.main()
if __name__ == '__main__':
conftest.run_this_test(__file__)

View File

@@ -40,3 +40,7 @@ def test2():
check_edge_condition(px, py, pyaw, start_x, start_y, start_yaw,
end_x, end_y, end_yaw)
if __name__ == '__main__':
conftest.run_this_test(__file__)

View File

@@ -8,3 +8,7 @@ if 'cvxpy' in sys.modules: # pragma: no cover
def test1():
m.show_animation = False
m.main()
if __name__ == '__main__':
conftest.run_this_test(__file__)

View File

@@ -5,3 +5,7 @@ from PathTracking.stanley_controller import stanley_controller as m
def test1():
m.show_animation = False
m.main()
if __name__ == '__main__':
conftest.run_this_test(__file__)

View File

@@ -5,3 +5,7 @@ from PathPlanning.StateLatticePlanner import state_lattice_planner as m
def test1():
m.show_animation = False
m.main()
if __name__ == '__main__':
conftest.run_this_test(__file__)

View File

@@ -6,3 +6,7 @@ from ArmNavigation.two_joint_arm_to_point_control \
def test1():
m.show_animation = False
m.animation()
if __name__ == '__main__':
conftest.run_this_test(__file__)

View File

@@ -5,3 +5,7 @@ from Localization.unscented_kalman_filter import unscented_kalman_filter as m
def test1():
m.show_animation = False
m.main()
if __name__ == '__main__':
conftest.run_this_test(__file__)

View File

@@ -5,3 +5,7 @@ from PathPlanning.VoronoiRoadMap import voronoi_road_map as m
def test1():
m.show_animation = False
m.main()
if __name__ == '__main__':
conftest.run_this_test(__file__)

View File

@@ -5,3 +5,7 @@ from PathPlanning.VisibilityRoadMap import visibility_road_map as m
def test1():
m.show_animation = False
m.main()
if __name__ == '__main__':
conftest.run_this_test(__file__)