blob: 825d980a4efa974c64ddad21aa65a53fc46e811d [file] [log] [blame]
#!/bin/bash
# Copyright 2021 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Testing the camera-gym-ctl:
#
# This sequence assumes:
#
# 1. "fx serve-remote ..." or equivalent is running.
# 2. "fx vendor google camera-gym-manual" is started.
count=`fx shell ps | grep camera-gym-manual | wc -l`
if [ ${count} != 1 ]
then
echo 'ERROR: Manual instance of camera-gym not detected'
exit 1
fi
while true; do
fx shell camera-gym-ctl --set-config=0 --add-stream=0 --add-stream=1 --add-stream=2
sleep 2
fx shell camera-gym-ctl --set-config=1 --add-stream=0 --add-stream=1
sleep 2
fx shell camera-gym-ctl --set-config=2 --add-stream=0 --add-stream=1
sleep 2
done