Files
flipper/scripts/run-headless-tests.sh
Pascal Hartig 4f181cc2ea Fix header
Summary: Getting a shipit violation for the missing header.

Reviewed By: danielbuechele

Differential Revision: D17184585

fbshipit-source-id: 1e88c1adec1f1500e16ddd8a461fb11bf1ea86e6
2019-09-04 10:48:22 -07:00

18 lines
467 B
Bash
Executable File

#!/bin/bash
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the LICENSE file
# in the root directory of this source tree.
set -xeuo pipefail
if [ `adb devices | wc -l` -lt "3" ]
then
echo "No devices are connected. Make sure emulator is booted with flipper sample app running"
exit 1
fi
yarn build-headless --mac
unzip -u dist/Flipper-headless.zip -d /tmp
(cd headless-tests && yarn test)