Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Npaintrobo committed Jan 4, 2024
1 parent eaefedd commit b2634ee
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions test/test.bash
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,23 @@ ng() {

res=0

# Parrot-node
(ros2 run robosys2023ros parrot > /tmp/robosys2023ros.log)&
touch test.log

# Parrot-node
(ros2 run robosys2023ros parrot > test.log)&
# Human-node
{
(sleep 5 && echo "aiueo" && sleep 1 && echo "123456789" && sleep 1 && echo "a1b2c3d4e5") | ros2 run robosys2023ros human
(echo "aiueo"; sleep 1; echo "123456789"; sleep 1; echo "a1b2c3d4e5") | ros2 run robosys2023ros human
}

sleep 20

# Parrot-log
cat /tmp/robosys2023ros.log | grep 'aiueo' || ng ${LINENO}
cat /tmp/robosys2023ros.log | grep '123456789' || ng ${LINENO}
cat /tmp/robosys2023ros.log | grep 'a1b2c3d4e5' || ng ${LINENO}
cat test.log | grep 'aiueo' || ng ${LINENO}
cat test.log | grep '123456789' || ng ${LINENO}
cat test.log | grep 'a1b2c3d4e5' || ng ${LINENO}

rm test.log
echo ""
[ "$res" = 0 ] && echo "OK"
exit $res
Expand Down

0 comments on commit b2634ee

Please sign in to comment.