Sven van Haastregt
957e3b3985
Convert some if-else chains to switch statements ( #1730 )
...
All of these if-else chains compare against enums, which is better
done using switch statements. This helps avoid some
`-Wsometimes-uninitialized` warnings of variables that are assigned
inside the switch.
Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com >
2023-05-24 11:11:23 +01:00
Pierre Moreau
de49d59c8d
Allocations fixes ( #1245 )
...
* allocations: Run buffer non-blocking even without images
Testing buffer non-blocking should not be dependent on whether images
are supported by a device or not.
* allocations: Fix typos
2021-05-18 18:12:55 +01:00
Kévin Petit
b2eba77d42
Get rid of test_finish macro and related ATF cruft ( #633 )
...
Closes #431
Signed-off-by: Kevin Petit <kevin.petit@arm.com >
2020-03-02 15:06:44 +00:00
Radek Szymanski
80c3a27a6a
Remove unused parameter ( #630 )
...
The imageSupportRequired param is not needed in runTestHarnessWithCheck,
so just remove it.
Signed-off-by: Radek Szymanski <radek.szymanski@arm.com >
2020-02-27 15:36:28 +00:00
John Kesapides
61632c08b5
Fix overflow in OpenCL 2.x CTS allocations tests ( #610 )
...
Add size_t overflow contingency code for 32-bit platforms where
max_width,max_height are 64k each. The code is modified to avoid
the overflowing multiplication.
Signed-off-by: John Kesapides <john.kesapides@arm.com >
2020-02-23 12:16:12 +00:00
Kevin Petit
e306ecd691
Remove most remaining clCreate*WithProperties calls in tests that run on 1.2
...
Don't touch interop suites or code only run with options not required
for conformance.
Signed-off-by: Kevin Petit <kevin.petit@arm.com >
2020-02-20 14:38:08 +00:00
Kévin Petit
fa4b278432
Build the harness as a static library ( #430 )
...
This reduces by a factor of roughly two the number of files to build.
Fixes #193 .
Signed-off-by: Kevin Petit <kevin.petit@arm.com >
2019-08-07 17:18:10 +01:00
Kevin Petit
ef832c330c
Stop using ../../test_common to include common headers
...
Fixes #395 .
Signed-off-by: Kevin Petit <kevin.petit@arm.com >
2019-08-01 18:41:12 +01:00
Brian Sumner
a910c3f8f6
Fix for bug 15294 - allocation test overflows for large memory
2019-07-31 16:22:45 +01:00
Radek Szymanski
0c15c7039e
cl22: Reuse test harness code in allocations ( #189 )
...
Some of the setup functionality is already there in the test harness, so
use that and remove the duplicated code from within the suite.
Signed-off-by: Radek Szymanski <radek.szymanski@arm.com >
2019-04-22 12:02:17 +01:00
Grzegorz Wawiorko
6c999818ee
cl22: Improved CRC calculation ( #133 )
...
* Improved CRC calculation
* Improved CRC calculation - review fix
* Improved CRC calculation - build brake fix
* Improved CRC calculation - remove external initializaiton
2019-04-18 15:00:45 +01:00
Radek Szymanski
07196c351a
cl22: Use single array for function list ( #148 )
...
Signed-off-by: Radek Szymanski <radek.szymanski@arm.com >
2019-04-10 12:30:38 +01:00
Radek Szymanski
6e18d7b257
cl22: Convert allocations to testHarness ( #87 )
...
Signed-off-by: Radek Szymanski <radek.szymanski@arm.com >
2019-03-18 10:02:53 +00:00
Kevin Petit
b6446a2f1d
Remove build systems other than CMake
...
Make it clear that CMake is the only supported build system.
Signed-off-by: Kevin Petit <kevin.petit@arm.com >
2019-03-15 09:47:56 +00:00
Grzegorz Wawiorko
90c6aee519
Khronos Bug 15271 allocations test doesn't check if all events on the wait list are valid
2019-03-15 09:38:01 +00:00
Kedar Patil
2821bf1323
Initial open source release of OpenCL 2.2 CTS.
2017-05-16 18:44:33 +05:30