From f9b0e2a42f89048acdff07dc5f031c9464889da6 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Wed, 7 Jul 2021 14:45:59 +0200 Subject: [PATCH] Create run_test.sh --- recipe/run_test.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 recipe/run_test.sh diff --git a/recipe/run_test.sh b/recipe/run_test.sh new file mode 100644 index 0000000..66a83d8 --- /dev/null +++ b/recipe/run_test.sh @@ -0,0 +1,13 @@ +#!/bin/bash -e + +# First smoke test: just print Ignition Gazebo version +ign gazebo --version + +# Run ign-gazebo -s for few seconds +timeout 2 ign gazebo -s &> ./ign_gazebo_s_out || true + +# Print output +cat ./ign_gazebo_s_out + +# Fail if [Err] is found +grep -v -q "[Err]" ./ign_gazebo_s_out