mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-27 17:56:15 +00:00
lib: Introduce drmtest_skip_on_simulation()
This will allow us to explicitely blacklist tests we don't want to run on simulation. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
parent
c25e892ec3
commit
4b34765594
@ -39,6 +39,7 @@
|
|||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <linux/kd.h>
|
#include <linux/kd.h>
|
||||||
|
#include <unistd.h>
|
||||||
#include "drm_fourcc.h"
|
#include "drm_fourcc.h"
|
||||||
|
|
||||||
#include "drmtest.h"
|
#include "drmtest.h"
|
||||||
@ -709,6 +710,17 @@ bool drmtest_run_in_simulation(void)
|
|||||||
return simulation;
|
return simulation;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Skip the test when running on simulation (and that's relevant only when
|
||||||
|
* we're not in the mode where we list the subtests) */
|
||||||
|
void drmtest_skip_on_simulation(void)
|
||||||
|
{
|
||||||
|
if (drmtest_only_list_subtests())
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (drmtest_run_in_simulation())
|
||||||
|
exit(77);
|
||||||
|
}
|
||||||
|
|
||||||
/* other helpers */
|
/* other helpers */
|
||||||
void drmtest_exchange_int(void *array, unsigned i, unsigned j)
|
void drmtest_exchange_int(void *array, unsigned i, unsigned j)
|
||||||
{
|
{
|
||||||
|
@ -95,6 +95,7 @@ bool drmtest_only_list_subtests(void);
|
|||||||
|
|
||||||
bool drmtest_run_in_simulation(void);
|
bool drmtest_run_in_simulation(void);
|
||||||
#define SLOW_QUICK(slow,quick) (drmtest_run_in_simulation() ? (quick) : (slow))
|
#define SLOW_QUICK(slow,quick) (drmtest_run_in_simulation() ? (quick) : (slow))
|
||||||
|
void drmtest_skip_on_simulation(void);
|
||||||
|
|
||||||
/* helpers based upon the libdrm buffer manager */
|
/* helpers based upon the libdrm buffer manager */
|
||||||
void drmtest_init_aperture_trashers(drm_intel_bufmgr *bufmgr);
|
void drmtest_init_aperture_trashers(drm_intel_bufmgr *bufmgr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user