diff options
author | Lukas Larsson <[email protected]> | 2012-05-03 10:34:05 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2012-05-03 10:34:05 +0200 |
commit | b17c18daa8b502fc32fa977a133b590463f68857 (patch) | |
tree | 8022df877675862b8c089faeea3aa0ec687730a9 /xcomp/README.md | |
parent | 7edca403c98cd00f016b6f6ad66d9e5ce36a9b9e (diff) | |
parent | c5d6ce6a07478c5ac19fdf2df244c4b837888d08 (diff) | |
download | otp-b17c18daa8b502fc32fa977a133b590463f68857.tar.gz otp-b17c18daa8b502fc32fa977a133b590463f68857.tar.bz2 otp-b17c18daa8b502fc32fa977a133b590463f68857.zip |
Merge branch 'maint'
* maint:
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 -------------------------------------- |