aboutsummaryrefslogtreecommitdiff
path: root/test.sh
diff options
context:
space:
mode:
authorFrank Feng <frankfeng@google.com>2022-05-17 14:32:03 -0700
committerFrank Feng <frankfeng@google.com>2022-05-17 14:36:49 -0700
commit7b7cfefbd9c3f49f6c0d8e6537f71ddd8b4ee410 (patch)
tree5ef44609ec4d4efca88630497d4dc2a935d296c7 /test.sh
parent8eebef1e74965fcdea069dfa5e828f67f2b9912d (diff)
parentb05ca660bc9ce2ff9753256238927b91e234c34b (diff)
downloadportpicker-7b7cfefbd9c3f49f6c0d8e6537f71ddd8b4ee410.tar.gz
Merge remote-tracking branch 'aosp/upstream-main' into mymerge
Bug: 225958696 Test: TH Change-Id: I0934724989141365fbc74576bff17338df40ac18
Diffstat (limited to 'test.sh')
-rwxr-xr-xtest.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/test.sh b/test.sh
new file mode 100755
index 0000000..01db583
--- /dev/null
+++ b/test.sh
@@ -0,0 +1,12 @@
+#!/bin/sh -ex
+
+unset PYTHONPATH
+python3 -m venv build/venv
+. build/venv/bin/activate
+
+pip install --upgrade pip
+pip install tox
+# We should really do this differently, test from a `pip install .` so that
+# testing relies on the setup.cfg install_requires instead of listing it here.
+pip install psutil
+tox -e "py3$(python -c 'import sys; print(sys.version_info.minor)')"