public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Petri Latvala <petri.latvala@intel.com>
Subject: [igt-dev] [PATCH i-g-t 2/3] tests/i915: Rename files so they correspond to binary names
Date: Tue, 19 Feb 2019 15:25:42 +0200	[thread overview]
Message-ID: <20190219132543.31786-2-arkadiusz.hiler@intel.com> (raw)
In-Reply-To: <20190219132543.31786-1-arkadiusz.hiler@intel.com>

So we do not have to do any rename shenanigans in the build system and
the .c files are easier to find.

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Petri Latvala <petri.latvala@intel.com>
Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
---
 tests/Makefile.sources                        | 16 +++----
 tests/i915/{fb_tiling.c => i915_fb_tiling.c}  |  0
 ...tparams_basic.c => i915_getparams_basic.c} |  0
 tests/i915/{hangman.c => i915_hangman.c}      |  0
 .../i915/{missed_irq.c => i915_missed_irq.c}  |  0
 .../{module_load.c => i915_module_load.c}     |  0
 tests/i915/{query.c => i915_query.c}          |  0
 tests/i915/{selftest.c => i915_selftest.c}    |  0
 tests/i915/{suspend.c => i915_suspend.c}      |  0
 tests/meson.build                             | 43 ++++++-------------
 10 files changed, 21 insertions(+), 38 deletions(-)
 rename tests/i915/{fb_tiling.c => i915_fb_tiling.c} (100%)
 rename tests/i915/{getparams_basic.c => i915_getparams_basic.c} (100%)
 rename tests/i915/{hangman.c => i915_hangman.c} (100%)
 rename tests/i915/{missed_irq.c => i915_missed_irq.c} (100%)
 rename tests/i915/{module_load.c => i915_module_load.c} (100%)
 rename tests/i915/{query.c => i915_query.c} (100%)
 rename tests/i915/{selftest.c => i915_selftest.c} (100%)
 rename tests/i915/{suspend.c => i915_suspend.c} (100%)

diff --git a/tests/Makefile.sources b/tests/Makefile.sources
index d2c4f9fe..1efd3ecb 100644
--- a/tests/Makefile.sources
+++ b/tests/Makefile.sources
@@ -472,28 +472,28 @@ TESTS_progs += gen3_render_tiledy_blits
 gen3_render_tiledy_blits_SOURCES = i915/gen3_render_tiledy_blits.c
 
 TESTS_progs += i915_fb_tiling
-i915_fb_tiling_SOURCES = i915/fb_tiling.c
+i915_fb_tiling_SOURCES = i915/i915_fb_tiling.c
 
 TESTS_progs += i915_getparams_basic
-i915_getparams_basic_SOURCES = i915/getparams_basic.c
+i915_getparams_basic_SOURCES = i915/i915_getparams_basic.c
 
 TESTS_progs += i915_hangman
-i915_hangman_SOURCES = i915/hangman.c
+i915_hangman_SOURCES = i915/i915_hangman.c
 
 TESTS_progs += i915_missed_irq
-i915_missed_irq_SOURCES = i915/missed_irq.c
+i915_missed_irq_SOURCES = i915/i915_missed_irq.c
 
 TESTS_progs += i915_module_load
-i915_module_load_SOURCES = i915/module_load.c
+i915_module_load_SOURCES = i915/i915_module_load.c
 
 TESTS_progs += i915_query
-i915_query_SOURCES = i915/query.c
+i915_query_SOURCES = i915/i915_query.c
 
 TESTS_progs += i915_selftest
-i915_selftest_SOURCES = i915/selftest.c
+i915_selftest_SOURCES = i915/i915_selftest.c
 
 TESTS_progs += i915_suspend
-i915_suspend_SOURCES = i915/suspend.c
+i915_suspend_SOURCES = i915/i915_suspend.c
 
 TESTS_progs_X = gem_concurrent_all
 gem_concurrent_all_SOURCES = i915/gem_concurrent_all.c
diff --git a/tests/i915/fb_tiling.c b/tests/i915/i915_fb_tiling.c
similarity index 100%
rename from tests/i915/fb_tiling.c
rename to tests/i915/i915_fb_tiling.c
diff --git a/tests/i915/getparams_basic.c b/tests/i915/i915_getparams_basic.c
similarity index 100%
rename from tests/i915/getparams_basic.c
rename to tests/i915/i915_getparams_basic.c
diff --git a/tests/i915/hangman.c b/tests/i915/i915_hangman.c
similarity index 100%
rename from tests/i915/hangman.c
rename to tests/i915/i915_hangman.c
diff --git a/tests/i915/missed_irq.c b/tests/i915/i915_missed_irq.c
similarity index 100%
rename from tests/i915/missed_irq.c
rename to tests/i915/i915_missed_irq.c
diff --git a/tests/i915/module_load.c b/tests/i915/i915_module_load.c
similarity index 100%
rename from tests/i915/module_load.c
rename to tests/i915/i915_module_load.c
diff --git a/tests/i915/query.c b/tests/i915/i915_query.c
similarity index 100%
rename from tests/i915/query.c
rename to tests/i915/i915_query.c
diff --git a/tests/i915/selftest.c b/tests/i915/i915_selftest.c
similarity index 100%
rename from tests/i915/selftest.c
rename to tests/i915/i915_selftest.c
diff --git a/tests/i915/suspend.c b/tests/i915/i915_suspend.c
similarity index 100%
rename from tests/i915/suspend.c
rename to tests/i915/i915_suspend.c
diff --git a/tests/meson.build b/tests/meson.build
index ec980651..bb90711e 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -97,17 +97,11 @@ test_progs = [
 ]
 
 i915_progs = [
-	'fb_tiling',
-	'getparams_basic',
-	'hangman',
-	'missed_irq',
-	'module_load',
-	'query',
-	'selftest',
-	'suspend',
-]
-
-gem_progs = [
+	'gen3_mixed_blits',
+	'gen3_render_linear_blits',
+	'gen3_render_mixed_blits',
+	'gen3_render_tiledx_blits',
+	'gen3_render_tiledy_blits',
 	'gem_bad_reloc',
 	'gem_basic',
 	'gem_busy',
@@ -224,14 +218,14 @@ gem_progs = [
 	'gem_wait',
 	'gem_workarounds',
 	'gem_write_read_ring_switch',
-]
-
-gen3_progs = [
-	'gen3_mixed_blits',
-	'gen3_render_linear_blits',
-	'gen3_render_mixed_blits',
-	'gen3_render_tiledx_blits',
-	'gen3_render_tiledy_blits',
+	'i915_fb_tiling',
+	'i915_getparams_basic',
+	'i915_hangman',
+	'i915_missed_irq',
+	'i915_module_load',
+	'i915_query',
+	'i915_selftest',
+	'i915_suspend',
 ]
 
 test_deps = [ igt_deps ]
@@ -272,17 +266,6 @@ foreach prog : test_progs
 endforeach
 
 foreach prog : i915_progs
-	prog_name = 'i915_' + prog
-	test_executables += executable(prog_name,
-		   join_paths('i915', prog + '.c'),
-		   dependencies : test_deps,
-		   install_dir : libexecdir,
-		   install_rpath : libexecdir_rpathdir,
-		   install : true)
-	test_list += prog_name
-endforeach
-
-foreach prog : gem_progs + gen3_progs
 	test_executables += executable(prog,
 		   join_paths('i915', prog + '.c'),
 		   dependencies : test_deps,
-- 
2.20.1

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  reply	other threads:[~2019-02-19 13:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-19 13:25 [igt-dev] [PATCH i-g-t 1/3] tools: Add dpcd_reg binary to gitignore Arkadiusz Hiler
2019-02-19 13:25 ` Arkadiusz Hiler [this message]
2019-02-19 13:25 ` [igt-dev] [PATCH i-g-t 3/3] tests: Prefix pm_ tests with i915_ and move them to i915/ Arkadiusz Hiler
2019-02-19 14:23   ` Arkadiusz Hiler
2019-02-20  7:34     ` Arkadiusz Hiler
2019-02-21  9:32     ` Chris Wilson
2019-02-20 10:04   ` Jani Nikula
2019-02-20 11:20     ` Arkadiusz Hiler
2019-02-19 14:03 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/3] tools: Add dpcd_reg binary to gitignore Patchwork
2019-02-19 17:53 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190219132543.31786-2-arkadiusz.hiler@intel.com \
    --to=arkadiusz.hiler@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=petri.latvala@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox