Skip to content
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

Closed
wants to merge 2 commits into from
Closed

Add option do discard test suite #9

wants to merge 2 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Apr 4, 2018

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

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
@drprajap
Copy link
Contributor

drprajap commented May 9, 2018

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.

@ghost
Copy link
Author

ghost commented May 10, 2018

The main idea behind this proposal is to allow cross compilation.
This is a patch I am currently using to make Yocto build the media driver.

Copy link
Contributor

@drprajap drprajap left a 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)
Copy link
Contributor

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.

Copy link
Author

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)
Copy link
Contributor

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)

Copy link
Author

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.

Copy link
Contributor

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.

Copy link
Contributor

@drprajap drprajap left a 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.

@drprajap
Copy link
Contributor

This change has been merged - f5ded73.

@drprajap drprajap closed this May 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant