mirror of
https://github.com/CopterExpress/clover.git
synced 2026-05-26 21:19:35 +00:00
29 lines
736 B
Bash
Executable File
29 lines
736 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
#
|
|
# Validate built image using tests
|
|
#
|
|
# Copyright (C) 2018 Copter Express Technologies
|
|
#
|
|
# Author: Oleg Kalachev <okalachev@gmail.com>
|
|
#
|
|
# Distributed under MIT License (available at https://opensource.org/licenses/MIT).
|
|
# The above copyright notice and this permission notice shall be included in all
|
|
# copies or substantial portions of the Software.
|
|
#
|
|
|
|
set -ex
|
|
|
|
echo "Run image tests"
|
|
|
|
export ROS_DISTRO='melodic'
|
|
export ROS_IP='127.0.0.1'
|
|
source /opt/ros/melodic/setup.bash
|
|
source /home/pi/catkin_ws/devel/setup.bash
|
|
|
|
cd /home/pi/catkin_ws/src/clover/builder/test/
|
|
./tests.sh
|
|
./tests.py
|
|
./tests_py3.py
|
|
[[ $(./tests_clever.py) == "Warning: clever package is renamed to clover" ]] # test backwards compatibility
|