-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option do discard test suite #9
Conversation
Setup a new option to avoid test suite run after install in order to allow cross compilation. Append `-DTEST_SUITE_RUN=OFF` to the **CMake** command line.
* option renamed option renamed * option renamed option renamed
Hi, Sorry for delayed response on this. I have a question on your proposed change. what is the specific reason that you want to disable ULT tests execution? Thanks. |
The main idea behind this proposal is to allow cross compilation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
@@ -1,2 +1,7 @@ | |||
cmake_minimum_required (VERSION 3.1 FATAL_ERROR) | |||
|
|||
if (NOT DEFINED MEDIA_RUN_TEST_SUITE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because GmmLib is generic library between Intel Media driver and Intel Compute-runtime, I will keep the naming generic as RUN_TEST_SUITE.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, ftr the name was a request from Media driver devs.
@@ -544,4 +544,7 @@ if(ARCH EQUAL 32) | |||
endif() | |||
endif() | |||
|
|||
add_subdirectory(ULT) | |||
if(MEDIA_RUN_TEST_SUITE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If in case someone build GmmLib separately from Source/GmmLib, this check will fail and skip ULT run, so better to modify this as
if(NOT DEFINED RUN_TEST_SUITE OR RUN_TEST_SUITE)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If not defined in the first place, this option was setup to ON by default. See the top level CMakelists.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but someone can skip running it from top level cmake and instead start the build from Source/GmmLib, which is possible, in that case it was skipping the ULT unnecessarily.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added additional comments. I will incorporate this and change will be pushed to our internal servers for further validation. This will be mirrored right after validation.
Thanks.
This change has been merged - f5ded73. |
Setup a new option to avoid test suite run after install in order to allow cross compilation.
Append
-DTEST_SUITE_RUN=OFF
to the CMake command line.See intel/media-driver#135
intel/media-driver#108