Skip to content

Commit 0f1397a

Browse files
Disable test on unsupported architectures
1 parent f99b29d commit 0f1397a

32 files changed

+129
-0
lines changed

test/test_algorithms.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
* The full license is in the file LICENSE, distributed with this software. *
1010
****************************************************************************/
1111

12+
#include "xsimd/xsimd.hpp"
13+
#ifndef XSIMD_NO_SUPPORTED_ARCHITECTURE
14+
1215
#include "test_utils.hpp"
1316
#include "xsimd/stl/algorithms.hpp"
1417
#include <numeric>
@@ -283,3 +286,4 @@ TEST(algorithms, iterator)
283286
#endif
284287
}
285288
#endif
289+
#endif

test/test_api.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
* The full license is in the file LICENSE, distributed with this software. *
1010
****************************************************************************/
1111

12+
#include "xsimd/xsimd.hpp"
13+
#ifndef XSIMD_NO_SUPPORTED_ARCHITECTURE
14+
1215
#include <random>
1316

1417
#include "test_utils.hpp"
@@ -177,3 +180,4 @@ TYPED_TEST(xsimd_api_test, set)
177180
this->test_set();
178181
}
179182
#endif
183+
#endif

test/test_arch.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
* The full license is in the file LICENSE, distributed with this software. *
1010
****************************************************************************/
1111

12+
#include "xsimd/xsimd.hpp"
13+
#ifndef XSIMD_NO_SUPPORTED_ARCHITECTURE
14+
1215
#include <numeric>
1316
#include <random>
1417

@@ -155,3 +158,4 @@ TEST(arch, scalar)
155158
EXPECT_EQ(ref, res);
156159
}
157160
#endif
161+
#endif

test/test_basic_math.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
* The full license is in the file LICENSE, distributed with this software. *
1010
****************************************************************************/
1111

12+
#include "xsimd/xsimd.hpp"
13+
#ifndef XSIMD_NO_SUPPORTED_ARCHITECTURE
14+
1215
#include "test_utils.hpp"
1316

1417
namespace detail
@@ -160,3 +163,4 @@ TYPED_TEST(basic_math_test, basic_functions)
160163
{
161164
this->test_basic_functions();
162165
}
166+
#endif

test/test_batch.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
* The full license is in the file LICENSE, distributed with this software. *
1010
****************************************************************************/
1111

12+
#include "xsimd/xsimd.hpp"
13+
#ifndef XSIMD_NO_SUPPORTED_ARCHITECTURE
14+
1215
#include <cmath>
1316
#include <functional>
1417
#include <numeric>
@@ -784,3 +787,4 @@ TYPED_TEST(batch_test, iterator)
784787
{
785788
this->test_iterator();
786789
}
790+
#endif

test/test_batch_bool.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
* The full license is in the file LICENSE, distributed with this software. *
1010
****************************************************************************/
1111

12+
#include "xsimd/xsimd.hpp"
13+
#ifndef XSIMD_NO_SUPPORTED_ARCHITECTURE
14+
1215
#include <vector>
1316

1417
#include "test_utils.hpp"
@@ -313,3 +316,4 @@ TYPED_TEST(batch_bool_test, bitwise_operations)
313316
{
314317
this->test_bitwise_operations();
315318
}
319+
#endif

test/test_batch_cast.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
* The full license is in the file LICENSE, distributed with this software. *
1010
****************************************************************************/
1111

12+
#include "xsimd/xsimd.hpp"
13+
#ifndef XSIMD_NO_SUPPORTED_ARCHITECTURE
14+
1215
#include "test_utils.hpp"
1316

1417
#if !XSIMD_WITH_NEON || XSIMD_WITH_NEON64
@@ -357,3 +360,4 @@ TEST(batch_cast, uses_fast_cast)
357360
"expected float to int32 conversion to use fast_cast");
358361
}
359362
#endif
363+
#endif

test/test_batch_complex.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
* The full license is in the file LICENSE, distributed with this software. *
1010
****************************************************************************/
1111

12+
#include "xsimd/xsimd.hpp"
13+
#ifndef XSIMD_NO_SUPPORTED_ARCHITECTURE
14+
1215
#include <cmath>
1316
#include <functional>
1417
#include <numeric>
@@ -680,3 +683,4 @@ TYPED_TEST(batch_complex_test, isnan)
680683
{
681684
this->test_isnan();
682685
}
686+
#endif

test/test_batch_constant.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
* The full license is in the file LICENSE, distributed with this software. *
1010
****************************************************************************/
1111

12+
#include "xsimd/xsimd.hpp"
13+
#ifndef XSIMD_NO_SUPPORTED_ARCHITECTURE
14+
1215
#include "test_utils.hpp"
1316

1417
using namespace std::placeholders;
@@ -162,3 +165,4 @@ TYPED_TEST(constant_bool_batch_test, init_from_generator_split)
162165
{
163166
this->test_init_from_generator_split();
164167
}
168+
#endif

test/test_batch_float.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
* The full license is in the file LICENSE, distributed with this software. *
1010
****************************************************************************/
1111

12+
#include "xsimd/xsimd.hpp"
13+
#ifndef XSIMD_NO_SUPPORTED_ARCHITECTURE
14+
1215
#include "test_utils.hpp"
1316

1417
template <class B>
@@ -101,3 +104,4 @@ TYPED_TEST(batch_float_test, haddp)
101104
{
102105
this->test_haddp();
103106
}
107+
#endif

0 commit comments

Comments
 (0)