Stop using ../../test_common to include common headers

Fixes #395.

Signed-off-by: Kevin Petit <kevin.petit@arm.com>
This commit is contained in:
Kevin Petit
2019-08-01 12:21:05 +01:00
committed by Kévin Petit
parent 4dca437b0e
commit ef832c330c
423 changed files with 856 additions and 856 deletions

View File

@@ -13,19 +13,19 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
#include "../../test_common/harness/compat.h"
#include "harness/compat.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "procs.h"
#include "../../test_common/harness/testHarness.h"
#include "harness/testHarness.h"
#if !defined(_WIN32)
#include <unistd.h>
#endif
// FIXME: To use certain functions in ../../test_common/harness/imageHelpers.h
// FIXME: To use certain functions in harness/imageHelpers.h
// (for example, generate_random_image_data()), the tests are required to declare
// the following variables (<rdar://problem/11111245>):
cl_device_type gDeviceType = CL_DEVICE_TYPE_DEFAULT;

View File

@@ -13,11 +13,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
#include "../../test_common/harness/errorHelpers.h"
#include "../../test_common/harness/kernelHelpers.h"
#include "../../test_common/harness/typeWrappers.h"
#include "../../test_common/harness/clImageHelper.h"
#include "../../test_common/harness/imageHelpers.h"
#include "harness/errorHelpers.h"
#include "harness/kernelHelpers.h"
#include "harness/typeWrappers.h"
#include "harness/clImageHelper.h"
#include "harness/imageHelpers.h"
extern float calculate_ulperror(float a, float b);
extern int test_load_single_kernel(cl_device_id deviceID, cl_context context, cl_command_queue queue, int num_elements);

View File

@@ -16,7 +16,7 @@
#ifndef _testBase_h
#define _testBase_h
#include "../../test_common/harness/compat.h"
#include "harness/compat.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@@ -14,8 +14,8 @@
// limitations under the License.
//
#include "testBase.h"
#include "../../test_common/harness/typeWrappers.h"
#include "../../test_common/harness/testHarness.h"
#include "harness/typeWrappers.h"
#include "harness/testHarness.h"
#include <ctype.h>
#include <string.h>

View File

@@ -14,7 +14,7 @@
// limitations under the License.
//
#include "testBase.h"
#include "../../test_common/harness/testHarness.h"
#include "harness/testHarness.h"
const char *kernel_with_bool[] = {

View File

@@ -14,8 +14,8 @@
// limitations under the License.
//
#include "testBase.h"
#include "../../test_common/harness/typeWrappers.h"
#include "../../test_common/harness/conversions.h"
#include "harness/typeWrappers.h"
#include "harness/conversions.h"
#include <sstream>
#include <string>
#include <cmath>

View File

@@ -14,13 +14,13 @@
// limitations under the License.
//
#include "testBase.h"
#include "../../test_common/harness/testHarness.h"
#include "harness/testHarness.h"
#ifndef _WIN32
#include <unistd.h>
#endif
#include "../../test_common/harness/conversions.h"
#include "harness/conversions.h"
extern cl_uint gRandomSeed;

View File

@@ -14,7 +14,7 @@
// limitations under the License.
//
#include "testBase.h"
#include "../../test_common/harness/testHarness.h"
#include "harness/testHarness.h"
const char *sample_single_kernel[] = {

View File

@@ -14,7 +14,7 @@
// limitations under the License.
//
#include "testBase.h"
#include "../../test_common/harness/testHarness.h"
#include "harness/testHarness.h"
#ifndef _WIN32
#include <unistd.h>
#endif

View File

@@ -14,7 +14,7 @@
// limitations under the License.
//
#include "testBase.h"
#include "../../test_common/harness/conversions.h"
#include "harness/conversions.h"
// This test is designed to stress passing multiple vector parameters to kernels and verifying access between them all

View File

@@ -14,8 +14,8 @@
// limitations under the License.
//
#include "testBase.h"
#include "../../test_common/harness/typeWrappers.h"
#include "../../test_common/harness/conversions.h"
#include "harness/typeWrappers.h"
#include "harness/conversions.h"
extern cl_uint gRandomSeed;

View File

@@ -14,8 +14,8 @@
// limitations under the License.
//
#include "testBase.h"
#include "../../test_common/harness/typeWrappers.h"
#include "../../test_common/harness/testHarness.h"
#include "harness/typeWrappers.h"
#include "harness/testHarness.h"
extern cl_uint gRandomSeed;

View File

@@ -19,7 +19,7 @@
#include <unistd.h>
#endif
#include "../../test_common/harness/conversions.h"
#include "harness/conversions.h"
extern cl_uint gRandomSeed;

View File

@@ -22,8 +22,8 @@
#include <CL/cl_platform.h>
#endif
#include "testBase.h"
#include "../../test_common/harness/typeWrappers.h"
#include "../../test_common/harness/testHarness.h"
#include "harness/typeWrappers.h"
#include "harness/testHarness.h"
#include "procs.h"

View File

@@ -14,7 +14,7 @@
// limitations under the License.
//
#include "testBase.h"
#include "../../test_common/harness/imageHelpers.h"
#include "harness/imageHelpers.h"
#include <stdlib.h>
#include <ctype.h>

View File

@@ -14,8 +14,8 @@
// limitations under the License.
//
#include "testBase.h"
#include "../../test_common/harness/typeWrappers.h"
#include "../../test_common/harness/conversions.h"
#include "harness/typeWrappers.h"
#include "harness/conversions.h"
#include <sstream>
#include <string>

View File

@@ -19,7 +19,7 @@
#include <unistd.h>
#endif
#include "../../test_common/harness/compat.h"
#include "harness/compat.h"
int test_release_kernel_order(cl_device_id deviceID, cl_context context, cl_command_queue queue, int num_elements)
{

View File

@@ -14,8 +14,8 @@
// limitations under the License.
//
#include "testBase.h"
#include "../../test_common/harness/typeWrappers.h"
#include "../../test_common/harness/conversions.h"
#include "harness/typeWrappers.h"
#include "harness/conversions.h"
const char *subgroup_dispatch_kernel[] = {
"__kernel void subgroup_dispatch_kernel(__global int *output)\n"

View File

@@ -14,8 +14,8 @@
// limitations under the License.
//
#include "testBase.h"
#include "../../test_common/harness/typeWrappers.h"
#include "../../test_common/harness/conversions.h"
#include "harness/typeWrappers.h"
#include "harness/conversions.h"
const char *zero_sized_enqueue_test_kernel[] = {
"__kernel void foo_kernel(__global float *src, __global int *dst)\n"