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

Enable tests on FreeBSD #77

Open
casey opened this issue Jun 4, 2017 · 1 comment
Open

Enable tests on FreeBSD #77

casey opened this issue Jun 4, 2017 · 1 comment

Comments

@casey
Copy link

casey commented Jun 4, 2017

Why are tests on FreeBSD disabled? I noticed that they fail when enabled, but I figured I would ask here before digging too deep into why.

If they can't be enabled, it might be worth noting why somewhere.

Thanks!

@japaric
Copy link
Owner

japaric commented Jun 10, 2017

It's not possible to do user QEMU emulation of *BSD targets which is what we use for the Linux targets. QEMU system emulation would work for this but (a) it's not simple to do "run binary $foo within a QEMU virtual machine and return the exit code of that binary" from the command line, (b) even if that was easy it would be extremely slow to spin one QEMU VM per test binary, (c) there's no out of the box solution for the alternative "spin a single *BSD VM and execute test binaries one by one by sending them via TCP or similar" and (d) even if that was available it's not possible (AFAIK) to automate the creation of the minimal *BSD image that would have to be shipped within the corresponding Docker image that Cross uses to do the technique described in (c), which means that some manual work would be required to create and maintain that *BSD image.

TL;DR It's hard to do and nobody has taken the job to do it. If you are interested there's an implementation of the stuff described in (c) in the rust-lang/rust repo, which is used to run the compiler test suite on an emulated ARM Linux machine.

brookst added a commit to brookst/img_diff that referenced this issue Sep 9, 2018
Mike-Neto pushed a commit to Mike-Neto/img_diff that referenced this issue Sep 11, 2018
* Remove assert_cli override

* Use assert_cli predicates for regex matching

* Fix missing Config field in benchmarks

* Prevent infinite recursion with absolute paths

* Place test output in OUT_DIR

* Switch from OUT_DIR to tempdir crate

* Disable tests on *BSD

See japaric/trust#77 for status
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