Skip to content

Commit

Permalink
add scripts for installing system dependencies and running tests
Browse files Browse the repository at this point in the history
Summary:
It's convenient to use the Watchman Vagrant VMs to investigate test
failures and builds that otherwise can't be reproduced locally. To
make that even easier, add a script for installing system package
dependencies (so autogen.sh is fast) and a script for running the test
suite.

Reviewed By: genevievehelsel

Differential Revision: D36534190

fbshipit-source-id: 935416fc11db8454f5a715bd74d457424ddfec21
  • Loading branch information
chadaustin authored and facebook-github-bot committed May 20, 2022
1 parent e05602a commit bb7a04b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

cd "$(dirname "$0")"

set -x
PREFIX=${PREFIX:-/usr/local}
python3 build/fbcode_builder/getdeps.py build \
Expand Down
9 changes: 9 additions & 0 deletions install-system-packages.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash -e
# vim:ts=2:sw=2:et:
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

set -x
python3 "$(dirname "$0")/build/fbcode_builder/getdeps.py" install-system-deps --recursive watchman
9 changes: 9 additions & 0 deletions run-tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash -e
# vim:ts=2:sw=2:et:
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

set -x
python3 "$(dirname "$0")/build/fbcode_builder/getdeps.py" test --allow-system-packages --no-testpilot watchman

0 comments on commit bb7a04b

Please sign in to comment.