Euphony build 및 test 실행 #45
yeonns
started this conversation in
Knowledge Share
Replies: 3 comments 13 replies
-
Beta Was this translation helpful? Give feedback.
10 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment









Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Euphony Build
Android Studio에서
[Build - Make Project]를 통해 build할 수 있습니다.❗ Euphony는 native code를 포함하기 때문에, build하기 전에
[Tools - SDK Manager - SDK Tools]에서 NDK, CMake, Android SDK Platform-Tools를 설치해주세요.Euphony build시에 adb가

${ANDROID_SDK_ROOT}/platform-tools에 위치해야 정상동작합니다:💡 Android Studio의 SDK Manager를 통해
Android SDK Platform-Tools를 설치했다면, 자동으로 해당 경로에 adb가 위치하게 되니, 신경쓰지 않으셔도 됩니다.Build 성공 확인
Build가 성공한다면 아래와 같이

BUILD SUCCESSFUL메세지를 확인할 수 있습니다:FAQ) Build가 실패합니다
platform-tools내에 위치하는지 확인해보세요 (SDK Location은 Android Studio내의[Tools - SDK Manager]에서 확인할 수 있습니다)adb devices명령어가 동작하는지 확인해보세요euphony/.cxx디렉토리를 삭제한 후, 다시 build 해보세요Euphony Native Test
Euphony의 native code와 test code가 작성된 위치는 다음과 같습니다:
현재 Euphony의 native test는 device(android 기기 혹은 AVD)가 연결되어 있을 때, build를 하면 실행되도록
euphony/src/main/cpp/tests/CMakeLists.txt에 작성되어있습니다.따라서 연결된 device가 없을 경우, native test는 실행되지 않습니다.
만약에 device 없이 build한 후에, device를 연결시키고 다시 build를 하면 build error가 발생합니다. 이처럼 device 연결이 변경된 경우에는
euphony/.cxx디렉토리를 전부 삭제한 후에, 다시 build를 해줘야 error가 발생하지 않습니다.참고로
.cxx디렉토리를 삭제하면, project clean 후 새로 build하는 것과 동일하기 때문에, build 시간이 오래 걸립니다.Euphony Native Test Fail Result
test code가 실패하도록 코드를 수정한 후, build해봅시다.
Test file: euphony/src/main/cpp/tests/base16Test.cpp
Build output을 통해 test code fail을 확인할 수 있습니다:

FAQ) Test가 실패인데도, build가 성공합니다 (by @kmsaidev)
euphony/.cxx디렉토리를 삭제하고, 다시 build 해보세요adb devices를 통해 확인해주세요Beta Was this translation helpful? Give feedback.
All reactions