Skip to content

Commit

Permalink
Update README.md for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
philburk authored Apr 26, 2024
1 parent 3e0b054 commit 8936550
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,17 @@ To test this on Mac or Linux enter:
echo $ANDROID_NDK
cmake --version

They may already be set. If not, then this may work on Mac OS:
They may already be set. If so then skip to "Running the Tests" below.

If not, then this may work on Mac OS:

export ANDROID_HOME=$HOME/Library/Android/sdk

or this may work on Linux:

export ANDROID_HOME=$HOME/Android/Sdk

Now we need to determine the latest installed version of the NDK. Enter:
Tadb rooto determine the latest installed version of the NDK. Enter:

ls $ANDROID_HOME/ndk

Expand All @@ -52,14 +54,17 @@ To run the tests, enter:
cd tests
./run_tests.sh

You may need to enter \<control-c\> to exit the script.
When the tests finish, you may need to enter \<control-c\> to exit the script.

If you get this error:

com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException:
INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.google.oboe.tests.unittestrunner
signatures do not match previously installed version; ignoring!

then uninstall the app "UnitTestRunner" from the Android device.
then uninstall the app "UnitTestRunner" from the Android device. Or try:

adb root
adb remount -R

See `run_tests.sh` for more documentation

0 comments on commit 8936550

Please sign in to comment.