From 5793a5fd34efe9ffda8e94099049e04ee2e758eb Mon Sep 17 00:00:00 2001 From: Michael Stevens Date: Sun, 15 Aug 2004 09:18:55 +0000 Subject: [PATCH] Added variable controlling test sets Dropped range, sparse from test3 as too complex for regression testing [SVN r24480] --- Jamfile | 43 +++++++++++++++++++++++++++++++++---------- Jamfile.v2 | 51 +++++++++++++++++++++++++++++++-------------------- 2 files changed, 64 insertions(+), 30 deletions(-) diff --git a/Jamfile b/Jamfile index 0d033faf..3ba95685 100644 --- a/Jamfile +++ b/Jamfile @@ -15,10 +15,35 @@ # subproject libs/numeric/ublas ; - # bring in rules for testing import testing ; +# Define features to test: +# Value types: USE_FLOAT USE_DOUBLE USE_STD_COMPLEX +# Proxies: USE_RANGE USE_SLICE +# Storage types: USE_BOUNDED_ARRAY USE_UNBOUNDED_ARRAY +# Vector types: USE_STD_VECTOR USE_BOUNDED_VECTOR +# Matrix types: USE_MATRIX USE_BOUNDED_MATRIX USE_VECTOR_OF_VECTOR +# Adaptors: USE_ADAPTOR + +UBLAS_TESTSET ?= + USE_DOUBLE USE_STD_COMPLEX + USE_RANGE USE_SLICE + USE_UNBOUNDED_ARRAY USE_MATRIX ; + +# Sparse storage: USE_MAP_ARRAY USE_STD_MAP +# Sparse vectors: USE_SPARSE_VECTOR USE_COMPRESSED_VECTOR USE_COORDINATE_VECTOR +# Sparse matrices: USE_SPARSE_MATRIX USE_COMPRESSED_MATRIX USE_COORDINATE_MATRIX USE_SPARSE_VECTOR_OF_SPARSE_VECTOR USE_GENERALIZED_VECTOR_OF_VECTOR + +UBLAS_TESTSET_SPARSE ?= + USE_DOUBLE USE_STD_COMPLEX +# USE_RANGE USE_SLICE Too complex for regression testing + USE_UNBOUNDED_ARRAY + USE_STD_MAP + USE_SPARSE_VECTOR USE_COMPRESSED_VECTOR USE_COORDINATE_VECTOR + USE_SPARSE_MATRIX USE_COMPRESSED_MATRIX USE_COORDINATE_MATRIX ; + + test-suite numeric/uBLAS : [ run test1/test1.cpp test1/test11.cpp @@ -27,7 +52,7 @@ test-suite numeric/uBLAS : # args : # input files : # requirements - USE_DOUBLE USE_STD_COMPLEX USE_RANGE USE_SLICE USE_UNBOUNDED_ARRAY + $(UBLAS_TESTSET) <*>"BOOST_UBLAS_NO_ELEMENT_PROXIES" ] [ run test2/test2.cpp @@ -37,7 +62,7 @@ test-suite numeric/uBLAS : # args : # input files : # requirements - USE_DOUBLE USE_STD_COMPLEX USE_RANGE USE_SLICE USE_UNBOUNDED_ARRAY + $(UBLAS_TESTSET) <*>"BOOST_UBLAS_NO_ELEMENT_PROXIES" ] [ run test3/test3.cpp @@ -47,9 +72,7 @@ test-suite numeric/uBLAS : # args : # input files : # requirements - USE_DOUBLE USE_STD_COMPLEX USE_RANGE USE_SLICE USE_UNBOUNDED_ARRAY - USE_MAP_ARRAY USE_STD_MAP - USE_SPARSE_VECTOR USE_COMPRESSED_VECTOR USE_COORDINATE_VECTOR USE_SPARSE_MATRIX USE_COMPRESSED_MATRIX USE_COORDINATE_MATRIX + $(UBLAS_TESTSET_SPARSE) <*>"BOOST_UBLAS_NO_ELEMENT_PROXIES" ] [ run test4/test4.cpp @@ -59,7 +82,7 @@ test-suite numeric/uBLAS : # args : # input files : # requirements - USE_DOUBLE USE_STD_COMPLEX USE_RANGE USE_SLICE USE_UNBOUNDED_ARRAY + $(UBLAS_TESTSET) <*>"BOOST_UBLAS_NO_ELEMENT_PROXIES" ] [ run test5/test5.cpp @@ -69,7 +92,7 @@ test-suite numeric/uBLAS : # args : # input files : # requirements - USE_DOUBLE USE_STD_COMPLEX USE_RANGE USE_SLICE USE_UNBOUNDED_ARRAY + $(UBLAS_TESTSET) <*>"BOOST_UBLAS_NO_ELEMENT_PROXIES" ] [ run test6/test6.cpp @@ -79,7 +102,7 @@ test-suite numeric/uBLAS : # args : # input files : # requirements - USE_DOUBLE USE_STD_COMPLEX USE_RANGE USE_SLICE USE_UNBOUNDED_ARRAY + $(UBLAS_TESTSET) <*>"BOOST_UBLAS_NO_ELEMENT_PROXIES" ] # Test7 checks uBLAS operation with interval types. @@ -92,7 +115,7 @@ test-suite numeric/uBLAS # : # input files # : # requirements # BOOST_UBLAS_USE_INTERVAL -# USE_DOUBLE USE_STD_COMPLEX USE_RANGE USE_SLICE USE_UNBOUNDED_ARRAY +# $(UBLAS_TESTSET) # <*>"BOOST_UBLAS_NO_ELEMENT_PROXIES" # ] [ compile concepts.cpp diff --git a/Jamfile.v2 b/Jamfile.v2 index 3bd290ff..5ffd61ac 100644 --- a/Jamfile.v2 +++ b/Jamfile.v2 @@ -6,17 +6,30 @@ # Bring in rules for testing import testing ; -# Macros determining features to tests: -# Value types: USE_FLOAT USE_DOUBLE USE_STD_COMPLEX -# Proxies: USE_RANGE USE_SLICE -# Storage types: USE_BOUNDED_ARRAY USE_UNBOUNDED_ARRAY -# Vector types: USE_STD_VECTOR USE_BOUNDED_VECTOR -# Matrix types: USE_MATRIX USE_BOUNDED_MATRIX USE_VECTOR_OF_VECTOR -# Adaptors: USE_ADAPTOR -# -# Sparse storage: USE_MAP_ARRAY USE_STD_MAP -# Sparse vectors: USE_SPARSE_VECTOR USE_COMPRESSED_VECTOR USE_COORDINATE_VECTOR -# Sparse matrices: USE_SPARSE_MATRIX USE_COMPRESSED_MATRIX USE_COORDINATE_MATRIX USE_SPARSE_VECTOR_OF_SPARSE_VECTOR USE_GENERALIZED_VECTOR_OF_VECTOR +# Define features to test: +# Value types: USE_FLOAT USE_DOUBLE USE_STD_COMPLEX +# Proxies: USE_RANGE USE_SLICE +# Storage types: USE_BOUNDED_ARRAY USE_UNBOUNDED_ARRAY +# Vector types: USE_STD_VECTOR USE_BOUNDED_VECTOR +# Matrix types: USE_MATRIX USE_BOUNDED_MATRIX USE_VECTOR_OF_VECTOR +# Adaptors: USE_ADAPTOR + +UBLAS_TESTSET ?= + USE_DOUBLE USE_STD_COMPLEX + USE_RANGE USE_SLICE + USE_UNBOUNDED_ARRAY USE_MATRIX ; + +# Sparse storage: USE_MAP_ARRAY USE_STD_MAP +# Sparse vectors: USE_SPARSE_VECTOR USE_COMPRESSED_VECTOR USE_COORDINATE_VECTOR +# Sparse matrices: USE_SPARSE_MATRIX USE_COMPRESSED_MATRIX USE_COORDINATE_MATRIX USE_SPARSE_VECTOR_OF_SPARSE_VECTOR USE_GENERALIZED_VECTOR_OF_VECTOR + +UBLAS_TESTSET_SPARSE ?= + USE_DOUBLE USE_STD_COMPLEX +# USE_RANGE USE_SLICE Too complex for regression testing + USE_UNBOUNDED_ARRAY + USE_STD_MAP + USE_SPARSE_VECTOR USE_COMPRESSED_VECTOR USE_COORDINATE_VECTOR + USE_SPARSE_MATRIX USE_COMPRESSED_MATRIX USE_COORDINATE_MATRIX ; project @@ -31,7 +44,7 @@ test-suite numeric/uBLAS : # args : # input files : # requirements - USE_DOUBLE USE_STD_COMPLEX USE_RANGE USE_SLICE USE_UNBOUNDED_ARRAY + $(UBLAS_TESTSET) vacpp:"BOOST_UBLAS_NO_ELEMENT_PROXIES" ] [ run test2/test2.cpp @@ -39,7 +52,7 @@ test-suite numeric/uBLAS test2/test22.cpp test2/test23.cpp : : : - USE_DOUBLE USE_STD_COMPLEX USE_RANGE USE_SLICE USE_UNBOUNDED_ARRAY + $(UBLAS_TESTSET) vacpp:"BOOST_UBLAS_NO_ELEMENT_PROXIES" ] [ run test3/test3.cpp @@ -47,9 +60,7 @@ test-suite numeric/uBLAS test3/test32.cpp test3/test33.cpp : : : - USE_DOUBLE USE_STD_COMPLEX USE_RANGE USE_SLICE USE_UNBOUNDED_ARRAY - USE_MAP_ARRAY USE_STD_MAP - USE_SPARSE_VECTOR USE_COMPRESSED_VECTOR USE_COORDINATE_VECTOR USE_SPARSE_MATRIX USE_COMPRESSED_MATRIX USE_COORDINATE_MATRIX + $(UBLAS_TESTSET_SPARSE) vacpp:"BOOST_UBLAS_NO_ELEMENT_PROXIES" ] [ run test4/test4.cpp @@ -57,7 +68,7 @@ test-suite numeric/uBLAS test4/test42.cpp test4/test43.cpp : : : - USE_DOUBLE USE_STD_COMPLEX USE_RANGE USE_SLICE USE_UNBOUNDED_ARRAY + $(UBLAS_TESTSET) vacpp:"BOOST_UBLAS_NO_ELEMENT_PROXIES" ] [ run test5/test5.cpp @@ -65,7 +76,7 @@ test-suite numeric/uBLAS test5/test52.cpp test5/test53.cpp : : : - USE_DOUBLE USE_STD_COMPLEX USE_RANGE USE_SLICE USE_UNBOUNDED_ARRAY + $(UBLAS_TESTSET) vacpp:"BOOST_UBLAS_NO_ELEMENT_PROXIES" ] [ run test6/test6.cpp @@ -73,7 +84,7 @@ test-suite numeric/uBLAS test6/test62.cpp test6/test63.cpp : : : - USE_DOUBLE USE_STD_COMPLEX USE_RANGE USE_SLICE USE_UNBOUNDED_ARRAY + $(UBLAS_TESTSET) vacpp:"BOOST_UBLAS_NO_ELEMENT_PROXIES" ] # Test7 checks uBLAS operation with interval types. @@ -84,7 +95,7 @@ test-suite numeric/uBLAS # test7/test73.cpp # : : : # BOOST_UBLAS_USE_INTERVAL -# USE_DOUBLE USE_STD_COMPLEX USE_RANGE USE_SLICE USE_UNBOUNDED_ARRAY +# $(UBLAS_TESTSET) # vacpp:"BOOST_UBLAS_NO_ELEMENT_PROXIES" # ] [ compile concepts.cpp