Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
igt-gpu-tools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
56
Issues
56
List
Boards
Labels
Service Desk
Milestones
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
drm
igt-gpu-tools
Commits
740065f0
Commit
740065f0
authored
Aug 12, 2013
by
Daniel Vetter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests/gem_caching: convert to use drmtest retval infrastructure
Signed-off-by:
Daniel Vetter
<
daniel.vetter@ffwll.ch
>
parent
ba0d2acf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
tests/gem_caching.c
tests/gem_caching.c
+13
-8
No files found.
tests/gem_caching.c
View file @
740065f0
...
...
@@ -110,7 +110,6 @@ int main(int argc, char **argv)
int
i
,
j
;
uint8_t
*
cpu_ptr
;
uint8_t
*
gtt_ptr
;
bool
skipped_all
=
true
;
drmtest_subtest_init
(
argc
,
argv
);
drmtest_skip_on_simulation
();
...
...
@@ -145,9 +144,11 @@ int main(int argc, char **argv)
drmtest_init_aperture_trashers
(
bufmgr
);
mappable_gtt_limit
=
gem_mappable_aperture_size
();
if
(
drmtest_run_subtest
(
"reads"
)
&&
(
flags
&
TEST_READ
))
{
drmtest_subtest_block
(
"reads"
)
{
if
(
!
(
flags
&
TEST_READ
))
drmtest_skip
();
printf
(
"checking partial reads
\n
"
);
skipped_all
=
false
;
for
(
i
=
0
;
i
<
ROUNDS
;
i
++
)
{
uint8_t
val0
=
i
;
...
...
@@ -173,9 +174,11 @@ int main(int argc, char **argv)
}
}
if
(
drmtest_run_subtest
(
"writes"
)
&&
(
flags
&
TEST_WRITE
))
{
drmtest_subtest_block
(
"writes"
)
{
if
(
!
(
flags
&
TEST_WRITE
))
drmtest_skip
();
printf
(
"checking partial writes
\n
"
);
skipped_all
=
false
;
for
(
i
=
0
;
i
<
ROUNDS
;
i
++
)
{
uint8_t
val0
=
i
,
val1
;
...
...
@@ -223,9 +226,11 @@ int main(int argc, char **argv)
}
}
if
(
drmtest_run_subtest
(
"read-writes"
)
&&
(
flags
&
TEST_BOTH
)
==
TEST_BOTH
)
{
drmtest_subtest_block
(
"read-writes"
)
{
if
(
!
((
flags
&
TEST_BOTH
)
==
TEST_BOTH
))
drmtest_skip
();
printf
(
"checking partial writes after partial reads
\n
"
);
skipped_all
=
false
;
for
(
i
=
0
;
i
<
ROUNDS
;
i
++
)
{
uint8_t
val0
=
i
,
val1
,
val2
;
...
...
@@ -299,5 +304,5 @@ int main(int argc, char **argv)
close
(
fd
);
return
skipped_all
?
77
:
0
;
return
drmtest_retval
()
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment