Commit 10e8396f authored by Swann Perarnau's avatar Swann Perarnau

[fix] make tilings and layout tests work

We're getting somewhere.
parent 8d3472bf
Pipeline #8423 failed with stages
in 10 seconds
......@@ -20,6 +20,7 @@ AREA_TESTS = \
LAYOUT_TESTS = layout/test_layout
TILING_TESTS = tiling/test_tiling
DMA_LINUX_TESTS = dma/test_dma_linux_seq \
dma/test_dma_linux_par
......@@ -30,6 +31,7 @@ endif
# unit tests
UNIT_TESTS = $(UTILS_TESTS) \
$(TILING_TESTS) \
$(LAYOUT_TESTS) \
$(BINDING_TESTS) \
$(AREA_TESTS) \
......
......@@ -38,7 +38,7 @@ void test_slice_contiguous(void)
NULL,
dims_col) == AML_SUCCESS);
assert(aml_layout_slice(a, &b, new_dims_col, offsets_col, NULL) == AML_SUCCESS);
assert(aml_layout_slice(a, &b, offsets_col, new_dims_col, NULL) == AML_SUCCESS);
assert(AML_LAYOUT_ORDER_COLUMN_MAJOR == aml_layout_order(b));
......@@ -67,8 +67,8 @@ void test_slice_contiguous(void)
dims_row,
NULL,
dims_row) == AML_SUCCESS);
assert(aml_layout_slice(a, &b, new_dims_row, offsets_row, NULL) == AML_SUCCESS);
assert(aml_layout_slice(a, &b, offsets_row, new_dims_row, NULL) == AML_SUCCESS);
assert(AML_LAYOUT_ORDER_ROW_MAJOR == aml_layout_order(b));
for(size_t i = 0; i < new_dims_row[0]; i++)
......@@ -128,8 +128,8 @@ void test_slice_strided(void)
stride,
pitch_col) == AML_SUCCESS);
assert(aml_layout_slice(a, &b, new_dims_col, offsets_col, new_stride_col) == AML_SUCCESS);
assert(aml_layout_slice(a, &b, offsets_col, new_dims_col, new_stride_col) == AML_SUCCESS);
for(size_t i = 0; i < 3; i++)
for(size_t j = 0; j < 3; j++)
for(size_t k = 0; k < 2; k++){
......@@ -152,8 +152,8 @@ void test_slice_strided(void)
dims_row,
stride,
pitch_row) == AML_SUCCESS);
assert(aml_layout_slice(a, &b, new_dims_row, offsets_row, new_stride_row) == AML_SUCCESS);
assert(aml_layout_slice(a, &b, offsets_row, new_dims_row, new_stride_row) == AML_SUCCESS);
for(size_t i = 0; i < 3; i++)
for(size_t j = 0; j < 3; j++)
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment