Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
Subject: [i-g-t 0/3] Apply igt.cocci transforms
Date: Thu,  1 Aug 2024 11:55:59 +0530	[thread overview]
Message-ID: <20240801062602.2047179-1-bhanuprakash.modem@intel.com> (raw)

A number of KMS & Intel tests are using checks like "igt_assert(x < y)"
rather than using the dedicated comparison assertions that print the actual
values on assertion failure. This series applies the igt.cocci transforms
on all KMS & Intel tests.

Bhanuprakash Modem (1):
  tests/kms: Apply igt.cocci transforms

Matt Roper (2):
  lib: Add u32 variants of igt_assert_{lt,lte}
  tests/intel: Apply igt.cocci transforms

 lib/igt_core.h                      | 18 +++++++
 tests/intel/api_intel_allocator.c   | 12 ++---
 tests/intel/api_intel_bb.c          | 18 +++----
 tests/intel/drm_fdinfo.c            |  8 +--
 tests/intel/gem_blits.c             | 16 +++---
 tests/intel/gem_ccs.c               |  4 +-
 tests/intel/gem_close_race.c        |  2 +-
 tests/intel/gem_concurrent_all.c    |  8 +--
 tests/intel/gem_create.c            |  2 +-
 tests/intel/gem_ctx_create.c        |  8 +--
 tests/intel/gem_ctx_exec.c          |  4 +-
 tests/intel/gem_ctx_persistence.c   | 12 +++--
 tests/intel/gem_eio.c               |  8 +--
 tests/intel/gem_exec_alignment.c    |  6 ++-
 tests/intel/gem_exec_big.c          |  4 +-
 tests/intel/gem_exec_capture.c      |  8 +--
 tests/intel/gem_exec_fair.c         | 32 +++++++-----
 tests/intel/gem_exec_fence.c        |  2 +-
 tests/intel/gem_exec_gttfill.c      |  4 +-
 tests/intel/gem_exec_nop.c          |  2 +-
 tests/intel/gem_exec_reloc.c        |  4 +-
 tests/intel/gem_gtt_speed.c         |  2 +-
 tests/intel/gem_linear_blits.c      |  6 +--
 tests/intel/gem_pread.c             |  5 +-
 tests/intel/gem_pwrite.c            |  5 +-
 tests/intel/gem_pxp.c               | 16 +++---
 tests/intel/gem_reset_stats.c       |  8 +--
 tests/intel/gem_softpin.c           |  8 ++-
 tests/intel/gem_tiled_blits.c       |  6 +--
 tests/intel/gem_tiled_fence_blits.c |  4 +-
 tests/intel/gem_userptr_blits.c     |  4 +-
 tests/intel/gem_wait.c              |  8 +--
 tests/intel/gem_watchdog.c          |  2 +-
 tests/intel/i915_hangman.c          |  2 +-
 tests/intel/i915_module_load.c      |  6 +--
 tests/intel/i915_pm_freq_api.c      | 50 +++++++++---------
 tests/intel/i915_pm_rc6_residency.c |  4 +-
 tests/intel/i915_pm_rps.c           | 11 ++--
 tests/intel/i915_query.c            | 12 ++---
 tests/intel/kms_big_fb.c            |  2 +-
 tests/intel/kms_busy.c              |  2 +-
 tests/intel/kms_ccs.c               | 14 +++--
 tests/intel/kms_cdclk.c             |  5 +-
 tests/intel/kms_dsc_helper.c        |  4 +-
 tests/intel/kms_fbcon_fbt.c         |  3 +-
 tests/intel/kms_pm_dc.c             |  9 ++--
 tests/intel/kms_pm_rpm.c            |  2 +-
 tests/intel/kms_psr.c               | 18 +++----
 tests/intel/perf.c                  | 34 ++++++-------
 tests/intel/perf_pmu.c              | 37 +++++++-------
 tests/intel/xe_ccs.c                |  4 +-
 tests/intel/xe_debugfs.c            |  2 +-
 tests/intel/xe_dma_buf_sync.c       |  2 +-
 tests/intel/xe_evict.c              |  4 +-
 tests/intel/xe_exec_balancer.c      |  7 +--
 tests/intel/xe_exec_basic.c         |  4 +-
 tests/intel/xe_exec_compute_mode.c  |  9 ++--
 tests/intel/xe_exec_fault_mode.c    |  5 +-
 tests/intel/xe_exec_reset.c         |  8 +--
 tests/intel/xe_exec_store.c         |  2 +-
 tests/intel/xe_exec_threads.c       | 11 ++--
 tests/intel/xe_gt_freq.c            | 79 +++++++++++++++--------------
 tests/intel/xe_intel_bb.c           | 16 +++---
 tests/intel/xe_oa.c                 | 26 +++++-----
 tests/intel/xe_pat.c                |  2 +-
 tests/intel/xe_peer2peer.c          |  2 +-
 tests/intel/xe_pm.c                 | 16 +++---
 tests/intel/xe_pm_residency.c       |  4 +-
 tests/intel/xe_query.c              | 12 ++---
 tests/intel/xe_vm.c                 |  4 +-
 tests/kms_async_flips.c             | 22 ++++----
 tests/kms_atomic_transition.c       |  6 +--
 tests/kms_cursor_legacy.c           |  2 +-
 tests/kms_dither.c                  |  2 +-
 tests/kms_dp_aux_dev.c              |  4 +-
 tests/kms_hdmi_inject.c             | 12 ++---
 tests/kms_lease.c                   |  8 +--
 tests/kms_plane.c                   |  9 ++--
 tests/kms_plane_multiple.c          |  2 +-
 tests/kms_prime.c                   |  6 +--
 tests/kms_properties.c              |  6 +--
 tests/kms_setmode.c                 |  2 +-
 tests/kms_tiled_display.c           |  2 +-
 tests/kms_vrr.c                     |  2 +-
 tests/kms_writeback.c               | 10 ++--
 85 files changed, 405 insertions(+), 380 deletions(-)

-- 
2.43.2


             reply	other threads:[~2024-08-01  6:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-01  6:25 Bhanuprakash Modem [this message]
2024-08-01  6:26 ` [i-g-t 1/3] lib: Add u32 variants of igt_assert_{lt,lte} Bhanuprakash Modem
2024-08-01  6:26 ` [i-g-t 2/3] tests/intel: Apply igt.cocci transforms Bhanuprakash Modem
2024-08-01  6:26 ` [i-g-t 3/3] tests/kms: " Bhanuprakash Modem
2024-08-01  8:07 ` ✓ CI.xeBAT: success for " Patchwork
2024-08-01  8:18 ` ✓ Fi.CI.BAT: " Patchwork
2024-08-01  9:27 ` ✗ CI.xeFULL: failure " Patchwork
2024-08-02  4:07 ` ✗ 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=20240801062602.2047179-1-bhanuprakash.modem@intel.com \
    --to=bhanuprakash.modem@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    /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