NSS:Android: Difference between revisions

Line 83: Line 83:
  make nss_build_all
  make nss_build_all


= Running the tests ==
== Running the tests ==


Once NSS for Android has built, you can run the tests on your android device as follows:
Once NSS for Android has built, you can run the tests on your android device as follows:
Line 91: Line 91:
  make android_get_result
  make android_get_result


The android_install target copies the built NSS and tests to the android.
The android_install target copies the NSS built on the host and tests from the host to the android device.
The android_run_tests  
The android_run_tests target logins into the android device and runs the tests.
The android_get_result target fetches the tests results directory from android to the host.


NOTE: The tests fips tests do not run because PR_GetLibraryFilePathname() currently does not work on android. In android NDK versions before 8 dladdr wasn't support. In versions after 8, dladdr does not correctly return the full path to the library, which is what we are trying to get in PR_GetLibraryFilePathname(). For now these tests are disabled if you use the above instructions.
NOTE: The tests fips tests do not run because PR_GetLibraryFilePathname() currently does not work on android. In android NDK versions before 8 dladdr wasn't support. In versions after 8, dladdr does not correctly return the full path to the library, which is what we are trying to get in PR_GetLibraryFilePathname(). For now these tests are disabled if you use the above instructions.
439

edits