Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.

cross test *bsd #22

Open
japaric opened this issue Sep 21, 2016 · 1 comment
Open

cross test *bsd #22

japaric opened this issue Sep 21, 2016 · 1 comment

Comments

@japaric
Copy link
Contributor

japaric commented Sep 21, 2016

Resources

Tentative next steps

  • Create a minimal *BSD image that can run Rust programs and configure to run some predeterminated script at boot (libc does this).
  • Update the Dockerifle to build and configure (env variables) the *bsd toolchains.
  • Add logic to .travis.yml to test these targets.

By the way, @alexcrichton, do you have build instructions for the *bsd.qcow2 images libc uses in its tests? Also, is the "run this script at boot" logic hardcoded in image itself or can that be configured from the command line?

@alexcrichton
Copy link

I do indeed! Instructions are here with specific sections for FreeBSD and OpenBSD.

The general idea is to:

  • Install a minimal system
  • Configure startup to check for a disk being mounted
  • If mounted, run a script and then shut down
  • If not mounted, drop down to an interactive shell

Then to drive the tests you'd put everything you need into a disk image, spin qemu up with that image, and then scrape the output to see if the tests failed. This is all quite brittle, and isn't great b/c you basically have to pre-cache the built image (too slow or not scriptable to create), which reduces the utility over docker.

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

No branches or pull requests

2 participants