Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jbuilder runtest -p mysubpkg tries to run all tests #807

Closed
mjambon opened this issue May 26, 2018 · 3 comments
Closed

jbuilder runtest -p mysubpkg tries to run all tests #807

mjambon opened this issue May 26, 2018 · 3 comments

Comments

@mjambon
Copy link

mjambon commented May 26, 2018

Not sure if this may be related to #568
I'm using jbuilder 1.0+beta20.

We're having this problem right now in the atd repo, which includes 4 opam packages (atd, atdgen-runtime, atdgen, atdj):

$ git clone https://github.com/mjambon/atd.git
$ cd atd
$ opam remove atd atdgen-runtime atdgen   # opam packages provided by this git repo
$ jbuilder build -p atd
$ jbuilder runtest -p atd
Error: Program atdgen not found in the tree or in PATH (context: default)
...

What happens is that the build command with -p atd builds only the atd package, but the runtest command apparently ignores the -p atd option and tries to run the tests for all packages; this fails because we built only the atd package.

Workaround:

$ (cd atd && jbuilder runtest)

but I don't know how to specify this in an opam file:

build-test: [
  [???]
]
@rgrinberg
Copy link
Member

I think the issue is that we don't have (package <name>) fields on our alias stanzas.

@ghost
Copy link

ghost commented Jun 2, 2018

IIUC the solution is to add a few (package <name>) fields in the runtest aliases of atd. Should we close this issue then?

@rgrinberg
Copy link
Member

Yup. I will make fix atd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants