11 Commits

Author SHA1 Message Date
Dimitri John Ledkov 5774390b2d Refactor stage1/init to source most of options from manifest, rather than flavor/stampfile-based.
This refactor will make it easier to integrate lkvm support, and also
brings other benefits.

Specifically, with this refactor almost all functionality of stage1
init is flavor independent and can be fully controlled via a manifest
and uses as little hard coded paths as possible.

Thus, e.g. distribution packagers, can create package which will only
have rkt/stage1 provided binaries (gc, waiter, init, etc.) and specify
the rest of things in the manifest (path to nspawn, ld.so, LD LIBRARY
PATH, libfakesdbooted.so, etc). And create fully free-standing
stage1.aci by simply creating basic distribution chroot with
distro-native tools and supplying a matching/correct aci-manifest. By
fully free-standing, I mean similar to current coreos flavor, which is
completely independent of the host OS binaries & load paths and is
truly run everywhere.

Many of these refactors will be useful for future lkvm integration,
e.g. reusing ld.so load paths and similar.
2015-06-09 10:47:56 +01:00
Alban Crequy 2824964937 stage1: add RKT_STAGE1_USR_FROM=usr-from-host 2015-06-04 16:33:45 +02:00
Krzesimir Nowak 25e2a39a28 functional tests: Drop dead code for destructive tests 2015-04-28 11:29:14 +02:00
Alban Crequy 3f1d704716 functional tests: use the correct version of go when using sudo
The functional tests use sudo because the tests need to be run as root.
Sudo does not preserve $PATH. When the user use a home-built go, it
might have a different version thatn the system-wide installed go.  It
causes problems when linking the tests with github.com/coreos/rkt/common

This patch fixes the issue by using the go environment of the user.
2015-04-23 12:33:56 +02:00
Krzesimir Nowak 87b5a5b53c functional tests: Rename env var enabling destructive tests 2015-04-22 10:40:49 +02:00
Krzesimir Nowak 334d07aa41 functional tests: Make sure we run destructive tests on semaphore 2015-04-22 10:40:10 +02:00
Alban Crequy 6b45569d71 functional tests: improve scripts
It is now possible to run only one functional test, see the instructions
in tests/test.

The build script is also more reliable.
2015-04-20 12:05:07 +02:00
Alban Crequy 799b76ea83 functional tests: use gexpect
So it is easier to generate ACIs near the test that needs them.
2015-04-14 16:22:38 +02:00
Alban Crequy 71e77580da functional tests: new tests for volumes 2015-04-10 15:43:11 +02:00
Alban Crequy ba64087d74 functional tests: define variables that tests could use 2015-04-10 13:17:33 +02:00
Alban Crequy 5d8e59659d functional tests: new implementation 2015-04-09 16:05:52 +02:00