getdeps: add a test target to eden_scm getdeps manifest

Summary: Add a test target to the eden_scm getdeps manifest and underlying Makefile

Reviewed By: markbt

Differential Revision: D27336805

fbshipit-source-id: 07ec4be1ff03c6a384451ce138d88938dd4bf86e
This commit is contained in:
Alex Hornby 2021-03-26 04:01:12 -07:00 committed by Facebook GitHub Bot
parent 810192fad4
commit babbc4c487
2 changed files with 9 additions and 1 deletions

View File

@ -24,6 +24,9 @@ getdepsbuild
[make.install_args]
install-getdeps
[make.test_args]
test-getdeps
[shipit.pathmap]
fbcode/eden/oss = .
fbcode/eden = eden

View File

@ -137,7 +137,12 @@ install-home: build
$(PYTHON) setup.py $(PURE) install --home="$(HOME)" --prefix="" --force
install-getdeps: getdepsbuild
GETDEPS_BUILD=1 $(PYTHON3) setup3.py $(PURE) install --root="$(DESTDIR)/" --prefix="$(PREFIX)" --force
GETDEPS_BUILD=1 $(PYTHON3) setup3.py $(PURE) install --root="$(DESTDIR)/" --prefix="$(PREFIX)" --install-lib="$(PREFIX)/bin" --force
test-getdeps: install-getdeps
# Run one test to check the binary is minimally good as will be used later in Mononoke getdeps tests
# Running all the tests requires a bit of filtering to run the good set (or deleting flaky ones)
cd tests && $(PYTHON3) run-tests.py -j1 --with-hg="$(PREFIX)/bin/$(HGNAME)" test-status.t
check: tests