• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#==============================================================================
2#         Copyright 2014          LRI    UMR 8623 CNRS/Univ Paris Sud XI
3#         Copyright 2014          NumScale SAS
4#
5#          Distributed under the Boost Software License, Version 1.0.
6#                 See accompanying file LICENSE.txt or copy at
7#                     http://www.boost.org/LICENSE_1_0.txt
8#==============================================================================
9
10import testing ;
11import os ;
12
13# This must be built using an NT2 installation.
14# NT2_ROOT_PATH should point to the build directory.
15# Currently, cxxflags needs to be set to the required architecture
16# if using avx/avx2, set the environemnt variable NT2_SIMD_FLAGS to the
17# required value for your compiler (i.e. -mavx2 on g++)
18# If using sse2/3/4 in 64 bits, this is set automatically.
19
20local NT2_ROOT_PATH = [ os.environ NT2_ROOT_PATH ] ;
21local NT2_SIMD_FLAGS = [ os.environ NT2_SIMD_FLAGS ] ;
22
23use-project boost : $(BOOST_ROOT) ;
24
25project
26  : requirements
27    <library>$(BOOST_ROOT)/boost/test/included/unit_test_framework.hpp
28    <define>BOOST_ALL_NO_LIB=1
29    <include>$(NT2_ROOT_PATH)/include/
30    <link>static
31    <toolset>gcc:<cxxflags>-DBOOST_SIMD_NO_STRICT_ALIASING
32    <toolset>gcc:<cxxflags>-fno-strict-aliasing
33    <cxxflags>$(NT2_SIMD_FLAGS)
34  ;
35
36test-suite "odeint"
37  :
38    [ run copy.cpp ]
39    [ run norm_inf.cpp ]
40    [ run resize.cpp ]
41    [ run is_resizeable.cpp ]
42    [ run algebra_dispatcher.cpp ]
43    : <testing.launcher>valgrind
44  ;
45