[igt-dev] [PATCH i-g-t 3/3] tests: Prefix pm_ tests with i915_ and move them to i915/

Jani Nikula jani.nikula at linux.intel.com
Wed Feb 20 10:04:08 UTC 2019


On Tue, 19 Feb 2019, Arkadiusz Hiler <arkadiusz.hiler at intel.com> wrote:
> They are i915-specific, so they belong to the directory.
> The (now) infix _pm_ is quite informative and worth keeping.

Too late to the party and I'm sure I'm missing something. But...

It does feel like moving things in i915 directory *and* prefixing with
i915 is an unnecessary tautology. Why not just one or the other?

BR,
Jani.


>
> v2: also prefix .c files
>
> Cc: Petri Latvala <petri.latvala at intel.com>
> Cc: Ewelina Musial <ewelina.musial at intel.com>
> Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler at intel.com>
> ---
> Acks/rbs appreciated, but please let me push it, as I have to do
> renaming in the cibuglog first :-)
>
>  tests/Makefile.sources                        | 24 ++++++++++++++-----
>  .../i915_pm_backlight.c}                      |  0
>  tests/{pm_lpsp.c => i915/i915_pm_lpsp.c}      |  0
>  .../i915_pm_rc6_residency.c}                  |  0
>  tests/{pm_rpm.c => i915/i915_pm_rpm.c}        |  0
>  tests/{pm_rps.c => i915/i915_pm_rps.c}        |  0
>  tests/{pm_sseu.c => i915/i915_pm_sseu.c}      |  0
>  tests/meson.build                             | 12 +++++-----
>  8 files changed, 24 insertions(+), 12 deletions(-)
>  rename tests/{pm_backlight.c => i915/i915_pm_backlight.c} (100%)
>  rename tests/{pm_lpsp.c => i915/i915_pm_lpsp.c} (100%)
>  rename tests/{pm_rc6_residency.c => i915/i915_pm_rc6_residency.c} (100%)
>  rename tests/{pm_rpm.c => i915/i915_pm_rpm.c} (100%)
>  rename tests/{pm_rps.c => i915/i915_pm_rps.c} (100%)
>  rename tests/{pm_sseu.c => i915/i915_pm_sseu.c} (100%)
>
> diff --git a/tests/Makefile.sources b/tests/Makefile.sources
> index 1efd3ecb..35c79592 100644
> --- a/tests/Makefile.sources
> +++ b/tests/Makefile.sources
> @@ -77,12 +77,6 @@ TESTS_progs = \
>  	meta_test \
>  	perf \
>  	perf_pmu \
> -	pm_backlight \
> -	pm_lpsp \
> -	pm_rc6_residency \
> -	pm_rpm \
> -	pm_rps \
> -	pm_sseu \
>  	prime_busy \
>  	prime_mmap \
>  	prime_mmap_coherency \
> @@ -486,6 +480,24 @@ i915_missed_irq_SOURCES = i915/i915_missed_irq.c
>  TESTS_progs += i915_module_load
>  i915_module_load_SOURCES = i915/i915_module_load.c
>  
> +TESTS_progs += i915_pm_backlight
> +i915_pm_backlight_SOURCES = i915/i915_pm_backlight.c
> +
> +TESTS_progs += i915_pm_lpsp
> +i915_pm_lpsp_SOURCES = i915/i915_pm_lpsp.c
> +
> +TESTS_progs += i915_pm_rc6_residency
> +i915_pm_rc6_residency_SOURCES = i915/i915_pm_rc6_residency.c
> +
> +TESTS_progs += i915_pm_rpm
> +i915_pm_rpm_SOURCES = i915/i915_pm_rpm.c
> +
> +TESTS_progs += i915_pm_rps
> +i915_pm_rps_SOURCES = i915/i915_pm_rps.c
> +
> +TESTS_progs += i915_pm_sseu
> +i915_pm_sseu_SOURCES = i915/i915_pm_sseu.c
> +
>  TESTS_progs += i915_query
>  i915_query_SOURCES = i915/i915_query.c
>  
> diff --git a/tests/pm_backlight.c b/tests/i915/i915_pm_backlight.c
> similarity index 100%
> rename from tests/pm_backlight.c
> rename to tests/i915/i915_pm_backlight.c
> diff --git a/tests/pm_lpsp.c b/tests/i915/i915_pm_lpsp.c
> similarity index 100%
> rename from tests/pm_lpsp.c
> rename to tests/i915/i915_pm_lpsp.c
> diff --git a/tests/pm_rc6_residency.c b/tests/i915/i915_pm_rc6_residency.c
> similarity index 100%
> rename from tests/pm_rc6_residency.c
> rename to tests/i915/i915_pm_rc6_residency.c
> diff --git a/tests/pm_rpm.c b/tests/i915/i915_pm_rpm.c
> similarity index 100%
> rename from tests/pm_rpm.c
> rename to tests/i915/i915_pm_rpm.c
> diff --git a/tests/pm_rps.c b/tests/i915/i915_pm_rps.c
> similarity index 100%
> rename from tests/pm_rps.c
> rename to tests/i915/i915_pm_rps.c
> diff --git a/tests/pm_sseu.c b/tests/i915/i915_pm_sseu.c
> similarity index 100%
> rename from tests/pm_sseu.c
> rename to tests/i915/i915_pm_sseu.c
> diff --git a/tests/meson.build b/tests/meson.build
> index bb90711e..f4bd4a10 100644
> --- a/tests/meson.build
> +++ b/tests/meson.build
> @@ -63,12 +63,6 @@ test_progs = [
>  	'kms_vrr',
>  	'meta_test',
>  	'perf',
> -	'pm_backlight',
> -	'pm_lpsp',
> -	'pm_rc6_residency',
> -	'pm_rpm',
> -	'pm_rps',
> -	'pm_sseu',
>  	'prime_busy',
>  	'prime_mmap',
>  	'prime_mmap_coherency',
> @@ -223,6 +217,12 @@ i915_progs = [
>  	'i915_hangman',
>  	'i915_missed_irq',
>  	'i915_module_load',
> +	'i915_pm_backlight',
> +	'i915_pm_lpsp',
> +	'i915_pm_rc6_residency',
> +	'i915_pm_rpm',
> +	'i915_pm_rps',
> +	'i915_pm_sseu',
>  	'i915_query',
>  	'i915_selftest',
>  	'i915_suspend',

-- 
Jani Nikula, Intel Open Source Graphics Center


More information about the igt-dev mailing list