NSS:Android: Difference between revisions

Jump to navigation Jump to search
Line 88: Line 88:
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:


  make arm_android_install
  make android_install
  make arm_android_tests
  make android_run_tests


NOTE: The tests do yet pass.
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.
UPDATE: The tests that are failing are the fips tests 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(). At this point I'm waiting util wtc gets back from vacation to talk about possible solutions.
 
NOTE: Many tests will fail if the test suite is ran on a FAT filesystem (like /sdcard). This is because we can't set the permissions on the files there.
 
== Adjusting things to your environment ==
 
There are other environment variables you can set to change some of the defaults:
 
ANDROID_PORT - By default this is 2222 in sshdroid. You can change it with the options menu. If you do you will need to set the ANDROID_PORT value.
ANDROID_VERSION - By default this is 8. You can change the NDK version you build against by changing this value.
439

edits

Navigation menu