diff options
author | Lukas Larsson <[email protected]> | 2012-03-19 16:52:14 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2012-05-02 09:51:44 +0200 |
commit | b834e188e6a2df3b2fd689618d43e6f878a5d1e4 (patch) | |
tree | b0c0fd1191d9cba7b04231226c30e6af006f297a /xcomp/README.md | |
parent | 5573888eea1ff6e3e169a6c873c2f5ada81eab62 (diff) | |
download | otp-b834e188e6a2df3b2fd689618d43e6f878a5d1e4.tar.gz otp-b834e188e6a2df3b2fd689618d43e6f878a5d1e4.tar.bz2 otp-b834e188e6a2df3b2fd689618d43e6f878a5d1e4.zip |
Update cross build system for tests to work
ts has been fixed to again work in a cross build environment.
See ts:help() and xcomp/README.md for details about how it works.
Diffstat (limited to 'xcomp/README.md')
-rw-r--r-- | xcomp/README.md | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/xcomp/README.md b/xcomp/README.md index 2d79107283..5f4b36bdca 100644 --- a/xcomp/README.md +++ b/xcomp/README.md @@ -291,6 +291,38 @@ and then do the cross build of the system. `otp_build release -a` will do the same as (5), and you will after this have to do a manual install either by doing (6), or (7). +Testing the cross compiled system +-------------------------------------- +Some of the tests that come with erlang use native code to test. This means +that when cross compiling erlang you also have to cross compile test suites +in order to run tests on the target host. To do this you first have to release +the tests as usual. + + $ make release_tests + +or + + $ ./otp_build tests + +The tests will be released into `$ERL_TOP/release/tests`. After releasing the +tests you have to install the tests on the build machine. You supply the same +xcomp file as to `./otp_build` in (9). + + $ cd $ERL_TOP/release/tests/test_server/ + $ $ERL_TOP/bootstrap/bin/erl -eval 'ts:install([{xcomp,"<FILE>"}])' -s ts compile_testcases -s init stop + +You should get a lot of printouts as the testcases are compiled. Once done you +should copy the entire `$ERL_TOP/release/tests` folder to the cross host system. + +Then go to the cross host system and setup the erlang installed in (4) or (5) +to be in your `$PATH`. Then go to what previously was +`$ERL_TOP/release/tests/test_server` and issue the following command. + + $ erl -s ts install -s ts run all_tests -s init stop + +The configure should be skipped and all tests should hopefully pass. For more +details about how to use ts run `erl -s ts help -s init stop` + Currently Used Configuration Variables -------------------------------------- |