diff options
author | Lukas Larsson <[email protected]> | 2012-05-03 10:31:41 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2012-05-03 10:31:41 +0200 |
commit | c5d6ce6a07478c5ac19fdf2df244c4b837888d08 (patch) | |
tree | 494865a3356371ac55cb9e441647c84c4cf66bce /xcomp/README.md | |
parent | 2dfae4928db3917b9ee8050626e05d7b57d4073f (diff) | |
parent | 378c651e7aab2d88cb29cccb1c0aae7ef895bb7a (diff) | |
download | otp-c5d6ce6a07478c5ac19fdf2df244c4b837888d08.tar.gz otp-c5d6ce6a07478c5ac19fdf2df244c4b837888d08.tar.bz2 otp-c5d6ce6a07478c5ac19fdf2df244c4b837888d08.zip |
Merge branch 'sverk/cross_tests/OTP-10074' into maint
* sverk/cross_tests/OTP-10074:
Fix include issues in when building tests
Fix cross compile of testcases
Update cross build system for tests to work
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 -------------------------------------- |