cc343edb创建于 3月12日历史提交
文件最后提交记录最后更新时间
update samples to 16kb page sizes (#2086) 1 年前
oboe适配鸿蒙平台 Signed-off-by: dingchenjie <dingchenjie1@h-partners.com> 2 个月前
Update README.md for unit tests2 年前
change cmake -H to -S (#1805) 2 年前
remove duplicated header from test files (#1362) 4 年前
Move AudioClock to Oboe (#2080) 1 年前
oboe适配鸿蒙平台 Signed-off-by: dingchenjie <dingchenjie1@h-partners.com> 2 个月前
FullDuplexStream: deprecate raw pointers when setting streams (#2034) 1 年前
oboe适配鸿蒙平台 Signed-off-by: dingchenjie <dingchenjie1@h-partners.com> 2 个月前
Unit Tests: reenable high sample rates (#1824) 2 年前
FullDuplexStream: deprecate raw pointers when setting streams (#2034) 1 年前
Test whether a stream stop can deadlock (#2064) Try to reproduce the bug in #2059. Use OBOE_SUPPRESS_LOG_SPAM to reduce logs during tests1 年前
Unit Tests: Use shared_ptr (#2015) 2 年前
Unit Tests: Test no sample rate conversion in TestStreamFrameProcessed (#2079) 1 年前
OboeTester: Add package name and attribution tag (#2206) 1 年前
oboe适配鸿蒙平台 Signed-off-by: dingchenjie <dingchenjie1@h-partners.com> 2 个月前
Unit Tests: Use shared_ptr (#2015) 2 年前
Unit Tests: Use shared_ptr (#2015) 2 年前
add new lines (#1700) 3 年前
Unit Tests: Use shared_ptr (#2015) 2 年前
README.md

Oboe Unit Tests

This directory contains the Oboe unit tests. They are run using the bash script run_tests.sh.

The basic operation is:

  1. Connect an Android device or start the Android emulator
  2. Open a terminal window and execute run_tests.sh

Prerequisites/caveats

  1. Java JDK installed.
  2. On Mac, you must agree to the XCode license. The script will prompt you.
  3. You must have compiled and executed one of the Oboe examples or OboeTester. That ensures that the NDK and cmake is installed.
  4. You must define ANDROID_NDK as an environment variable and make sure cmake is on your path.

To test this on Mac or Linux enter:

echo $ANDROID_HOME
echo $ANDROID_NDK
cmake --version

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

Tadb rooto determine the latest installed version of the NDK. Enter:

ls $ANDROID_HOME/ndk

Make note of the folder name. Mine was "21.3.6528147" so I entered:

export ANDROID_NDK=$ANDROID_HOME/ndk/21.3.6528147/

If you need to add cmake to your path then you can find it by entering:

ls $ANDROID_HOME/cmake

Make note of the folder name. Mine was "3.10.2.4988404" so I entered:

export PATH=$PATH:$ANDROID_HOME/cmake/3.10.2.4988404/bin
cmake --version

Running the Tests

To run the tests, enter:

cd tests
./run_tests.sh

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. Or try:

adb root
adb remount -R

See run_tests.sh for more documentation