2017-04-18 03:32:16 +08:00
#
# Copyright by The HDF Group.
# All rights reserved.
#
# This file is part of HDF5. The full HDF5 copyright notice, including
# terms governing use, modification, and redistribution, is contained in
# the COPYING file, which can be found at the root of the source code
# distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases.
# If you do not have access to either file, you may request a copy from
# help@hdfgroup.org.
#
2016-10-27 23:06:00 +08:00
##############################################################################
##############################################################################
### T E S T I N G ###
##############################################################################
##############################################################################
# --------------------------------------------------------------------
# Copy all the HDF5 files from the source directory into the test directory
# --------------------------------------------------------------------
set ( LIST_HDF5_TEST_FILES
2018-03-01 04:40:13 +08:00
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / b o u n d s _ l a t e s t _ l a t e s t . h 5
2016-10-27 23:06:00 +08:00
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ a t t r . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ a t t r _ r e f s . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ d e f l a t e . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ e a r l y . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ e x t . h 5
2019-09-25 04:29:56 +08:00
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ f 3 2 l e . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ f 3 2 l e _ e x - 0 . d a t
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ f 3 2 l e _ e x . h 5
2016-10-27 23:06:00 +08:00
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ f i l l . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ f i l t e r s . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ f l e t c h e r . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ h l i n k . h 5
2019-09-25 04:29:56 +08:00
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ i n t 3 2 l e _ 1 d . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ i n t 3 2 l e _ 1 d _ e x - 0 . d a t
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ i n t 3 2 l e _ 1 d _ e x - 1 . d a t
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ i n t 3 2 l e _ 1 d _ e x . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ i n t 3 2 l e _ 2 d . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ i n t 3 2 l e _ 2 d _ e x - 0 . d a t
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ i n t 3 2 l e _ 2 d _ e x . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ i n t 3 2 l e _ 3 d . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ i n t 3 2 l e _ 3 d _ e x - 0 . d a t
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ i n t 3 2 l e _ 3 d _ e x . h 5
2016-10-27 23:06:00 +08:00
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ l a y o u t . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ l a y o u t o . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ l a y o u t 2 . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ l a y o u t 3 . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ l a y o u t . U D . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ n a m e d _ d t y p e s . h 5
2016-12-12 03:25:08 +08:00
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ n e s t e d _ 8 b i t _ e n u m . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ n e s t e d _ 8 b i t _ e n u m _ d e f l a t e d . h 5
2016-10-27 23:06:00 +08:00
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ n b i t . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ o b j s . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ r e f s . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ s h u f f l e . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ s o f f s e t . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ s z i p . h 5
2019-09-25 04:29:56 +08:00
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ u i n t 8 b e . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ u i n t 8 b e _ e x - 0 . d a t
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ u i n t 8 b e _ e x - 1 . d a t
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ u i n t 8 b e _ e x - 2 . d a t
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ u i n t 8 b e _ e x - 3 . d a t
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ u i n t 8 b e _ e x . h 5
2017-10-04 00:14:35 +08:00
# fsm
2017-08-02 23:53:17 +08:00
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ a g g r . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ f s m _ a g g r _ n o p e r s i s t . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ f s m _ a g g r _ p e r s i s t . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ n o n e . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ p a g e d _ n o p e r s i s t . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ p a g e d _ p e r s i s t . h 5
2016-10-27 23:06:00 +08:00
# h5diff/testfile
$ { H D F 5 _ T O O L S _ T E S T _ H 5 D I F F _ S O U R C E _ D I R } / t e s t f i l e s / h 5 d i f f _ a t t r 1 . h 5
# tools/testfiles
$ { H D F 5 _ T O O L S _ D I R } / t e s t f i l e s / t f a m i l y 0 0 0 0 0 . h 5
$ { H D F 5 _ T O O L S _ D I R } / t e s t f i l e s / t f a m i l y 0 0 0 0 1 . h 5
$ { H D F 5 _ T O O L S _ D I R } / t e s t f i l e s / t f a m i l y 0 0 0 0 2 . h 5
$ { H D F 5 _ T O O L S _ D I R } / t e s t f i l e s / t f a m i l y 0 0 0 0 3 . h 5
$ { H D F 5 _ T O O L S _ D I R } / t e s t f i l e s / t f a m i l y 0 0 0 0 4 . h 5
$ { H D F 5 _ T O O L S _ D I R } / t e s t f i l e s / t f a m i l y 0 0 0 0 5 . h 5
$ { H D F 5 _ T O O L S _ D I R } / t e s t f i l e s / t f a m i l y 0 0 0 0 6 . h 5
$ { H D F 5 _ T O O L S _ D I R } / t e s t f i l e s / t f a m i l y 0 0 0 0 7 . h 5
$ { H D F 5 _ T O O L S _ D I R } / t e s t f i l e s / t f a m i l y 0 0 0 0 8 . h 5
$ { H D F 5 _ T O O L S _ D I R } / t e s t f i l e s / t f a m i l y 0 0 0 0 9 . h 5
$ { H D F 5 _ T O O L S _ D I R } / t e s t f i l e s / t f a m i l y 0 0 0 1 0 . h 5
2017-05-23 02:10:40 +08:00
$ { H D F 5 _ T O O L S _ D I R } / t e s t f i l e s / t o r d e r g r . h 5
2016-10-27 23:06:00 +08:00
# tools/testfiles/vds
$ { H D F 5 _ T O O L S _ D I R } / t e s t f i l e s / v d s / 1 _ a . h 5
$ { H D F 5 _ T O O L S _ D I R } / t e s t f i l e s / v d s / 1 _ b . h 5
$ { H D F 5 _ T O O L S _ D I R } / t e s t f i l e s / v d s / 1 _ c . h 5
$ { H D F 5 _ T O O L S _ D I R } / t e s t f i l e s / v d s / 1 _ d . h 5
$ { H D F 5 _ T O O L S _ D I R } / t e s t f i l e s / v d s / 1 _ e . h 5
$ { H D F 5 _ T O O L S _ D I R } / t e s t f i l e s / v d s / 1 _ f . h 5
$ { H D F 5 _ T O O L S _ D I R } / t e s t f i l e s / v d s / 1 _ v d s . h 5
$ { H D F 5 _ T O O L S _ D I R } / t e s t f i l e s / v d s / 2 _ a . h 5
$ { H D F 5 _ T O O L S _ D I R } / t e s t f i l e s / v d s / 2 _ b . h 5
$ { H D F 5 _ T O O L S _ D I R } / t e s t f i l e s / v d s / 2 _ c . h 5
$ { H D F 5 _ T O O L S _ D I R } / t e s t f i l e s / v d s / 2 _ d . h 5
$ { H D F 5 _ T O O L S _ D I R } / t e s t f i l e s / v d s / 2 _ e . h 5
$ { H D F 5 _ T O O L S _ D I R } / t e s t f i l e s / v d s / 2 _ v d s . h 5
$ { H D F 5 _ T O O L S _ D I R } / t e s t f i l e s / v d s / 3 _ 1 _ v d s . h 5
$ { H D F 5 _ T O O L S _ D I R } / t e s t f i l e s / v d s / 3 _ 2 _ v d s . h 5
$ { H D F 5 _ T O O L S _ D I R } / t e s t f i l e s / v d s / 4 _ 0 . h 5
$ { H D F 5 _ T O O L S _ D I R } / t e s t f i l e s / v d s / 4 _ 1 . h 5
$ { H D F 5 _ T O O L S _ D I R } / t e s t f i l e s / v d s / 4 _ 2 . h 5
$ { H D F 5 _ T O O L S _ D I R } / t e s t f i l e s / v d s / 4 _ v d s . h 5
$ { H D F 5 _ T O O L S _ D I R } / t e s t f i l e s / v d s / 5 _ a . h 5
$ { H D F 5 _ T O O L S _ D I R } / t e s t f i l e s / v d s / 5 _ b . h 5
$ { H D F 5 _ T O O L S _ D I R } / t e s t f i l e s / v d s / 5 _ c . h 5
$ { H D F 5 _ T O O L S _ D I R } / t e s t f i l e s / v d s / 5 _ v d s . h 5
)
set ( LIST_OTHER_TEST_FILES
2017-10-04 00:14:35 +08:00
h 5 r e p a c k - h e l p . t x t
h 5 r e p a c k _ e x t . b i n
h 5 r e p a c k . i n f o
u b l o c k . b i n
2016-10-27 23:06:00 +08:00
)
2017-10-04 00:14:35 +08:00
set ( LIST_TST_TEST_FILES
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ f i l t e r s . h 5 - g z i p _ v e r b o s e _ f i l t e r s
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ l a y o u t . h 5 - d s e t 2 _ c h u n k _ 2 0 x 1 0 - e r r s t k
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / p l u g i n _ t e s t . h 5 r e p a c k _ l a y o u t . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / p l u g i n _ v e r s i o n _ t e s t . h 5 r e p a c k _ l a y o u t . h 5
2017-10-04 00:26:18 +08:00
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / p l u g i n _ z e r o . h 5 r e p a c k _ l a y o u t . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / p l u g i n _ n o n e . h 5 r e p a c k _ l a y o u t . U D . h 5
2017-10-04 00:14:35 +08:00
)
set ( LIST_DDL_TEST_FILES
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / c r t o r d e r . t o r d e r g r . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / d e f l a t e _ l i m i t . h 5 r e p a c k _ l a y o u t . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ l a y o u t . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ l a y o u t . h 5 - p l u g i n _ t e s t
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ l a y o u t . h 5 - p l u g i n _ v e r s i o n _ t e s t
2017-10-04 00:26:18 +08:00
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ l a y o u t . h 5 - p l u g i n _ z e r o
2017-10-04 00:14:35 +08:00
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / h 5 r e p a c k _ l a y o u t . U D . h 5 - p l u g i n _ n o n e
# fsm
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / S T G . h 5 r e p a c k _ n o n e . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / S P T . h 5 r e p a c k _ a g g r . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / S P . h 5 r e p a c k _ f s m _ a g g r _ n o p e r s i s t . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / S . h 5 r e p a c k _ f s m _ a g g r _ p e r s i s t . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / G S . h 5 r e p a c k _ p a g e d _ n o p e r s i s t . h 5
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / S P . h 5 r e p a c k _ p a g e d _ p e r s i s t . h 5
# vds
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / 1 _ v d s . h 5 - v d s _ d s e t _ c h u n k 2 0 x 1 0 x 5 - v
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / 2 _ v d s . h 5 - v d s _ c h u n k 3 x 6 x 9 - v
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / 3 _ 1 _ v d s . h 5 - v d s _ c h u n k 2 x 5 x 8 - v
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / 4 _ v d s . h 5 - v d s _ c o m p a - v
$ { H D F 5 _ T O O L S _ T E S T _ H 5 R E P A C K _ S O U R C E _ D I R } / t e s t f i l e s / 4 _ v d s . h 5 - v d s _ c o n t i - v
)
foreach ( h5_file ${ LIST_HDF5_TEST_FILES } )
2016-10-27 23:06:00 +08:00
get_filename_component ( fname "${h5_file}" NAME )
HDFTEST_COPY_FILE ( "${h5_file}" "${PROJECT_BINARY_DIR}/testfiles/${fname}" "h5repack_files" )
2017-01-11 07:09:53 +08:00
endforeach ( )
2017-10-04 00:14:35 +08:00
foreach ( h5_file ${ LIST_OTHER_TEST_FILES } )
HDFTEST_COPY_FILE ( "${HDF5_TOOLS_TEST_H5REPACK_SOURCE_DIR}/testfiles/${h5_file}" "${PROJECT_BINARY_DIR}/testfiles/${h5_file}" "h5repack_files" )
endforeach ( )
foreach ( h5_file ${ LIST_TST_TEST_FILES } )
get_filename_component ( fname "${h5_file}" NAME )
HDFTEST_COPY_FILE ( "${h5_file}.tst" "${PROJECT_BINARY_DIR}/testfiles/${fname}.tst" "h5repack_files" )
endforeach ( )
foreach ( h5_file ${ LIST_DDL_TEST_FILES } )
get_filename_component ( fname "${h5_file}" NAME )
HDFTEST_COPY_FILE ( "${h5_file}.ddl" "${PROJECT_BINARY_DIR}/testfiles/${fname}.ddl" "h5repack_files" )
endforeach ( )
2016-10-27 23:06:00 +08:00
add_custom_target ( h5repack_files ALL COMMENT "Copying files needed by h5repack tests" DEPENDS ${ h5repack_files_list } )
##############################################################################
##############################################################################
### T H E T E S T S M A C R O S ###
##############################################################################
##############################################################################
2019-06-18 20:46:25 +08:00
if ( NOT BUILD_SHARED_LIBS )
set ( tgt_ext "" )
else ( )
set ( tgt_ext "-shared" )
endif ( )
2017-03-02 04:47:53 +08:00
macro ( ADD_HELP_TEST testname resultcode )
2016-10-27 23:06:00 +08:00
# If using memchecker add tests without using scripts
if ( HDF5_ENABLE_USING_MEMCHECKER )
2019-07-15 22:44:14 +08:00
add_test ( NAME H5REPACK-h5repack- ${ testname } COMMAND ${ CMAKE_CROSSCOMPILING_EMULATOR } $< TARGET_FILE:h5repack${tgt_ext} > ${ ARGN } )
2019-07-24 05:24:56 +08:00
set_tests_properties ( H5REPACK-h5repack- ${ testname } PROPERTIES
W O R K I N G _ D I R E C T O R Y " $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s "
2017-10-04 00:14:35 +08:00
)
2017-01-11 07:09:53 +08:00
else ( )
2016-10-27 23:06:00 +08:00
add_test (
N A M E H 5 R E P A C K - h 5 r e p a c k - $ { t e s t n a m e }
C O M M A N D " $ { C M A K E _ C O M M A N D } "
2019-07-15 22:44:14 +08:00
- D " T E S T _ E M U L A T O R = $ { C M A K E _ C R O S S C O M P I L I N G _ E M U L A T O R } "
2019-06-18 20:46:25 +08:00
- D " T E S T _ P R O G R A M = $ < T A R G E T _ F I L E : h 5 r e p a c k $ { t g t _ e x t } > "
2016-10-27 23:06:00 +08:00
- D " T E S T _ A R G S : S T R I N G = $ { A R G N } "
- D " T E S T _ F O L D E R = $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s "
- D " T E S T _ O U T P U T = h 5 r e p a c k - $ { t e s t n a m e } . o u t "
- D " T E S T _ E X P E C T = $ { r e s u l t c o d e } "
- D " T E S T _ R E F E R E N C E = h 5 r e p a c k - $ { t e s t n a m e } . t x t "
- P " $ { H D F _ R E S O U R C E S _ E X T _ D I R } / r u n T e s t . c m a k e "
)
2017-01-11 07:09:53 +08:00
endif ( )
2019-07-24 05:24:56 +08:00
set_tests_properties ( H5REPACK-h5repack- ${ testname } PROPERTIES
F I X T U R E S _ R E Q U I R E D c l e a r _ h 5 r e p a c k
)
2017-03-02 04:47:53 +08:00
endmacro ( )
2016-10-27 23:06:00 +08:00
2017-03-02 04:47:53 +08:00
macro ( ADD_H5_TEST_OLD testname testtype testfile )
2019-07-24 05:24:56 +08:00
if ( NOT HDF5_ENABLE_USING_MEMCHECKER )
if ( "${testtype}" STREQUAL "SKIP" )
2016-10-27 23:06:00 +08:00
add_test (
2018-09-25 03:38:46 +08:00
N A M E H 5 R E P A C K _ O L D - $ { t e s t n a m e }
2016-10-27 23:06:00 +08:00
C O M M A N D $ { C M A K E _ C O M M A N D } - E e c h o " S K I P $ { A R G N } - i $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / $ { t e s t f i l e } - o $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / o u t - $ { t e s t n a m e } . $ { t e s t f i l e } "
)
2018-09-25 03:38:46 +08:00
set_property ( TEST H5REPACK_OLD- ${ testname } PROPERTY DISABLED )
2019-07-24 05:24:56 +08:00
else ( )
add_test (
N A M E H 5 R E P A C K _ O L D - $ { t e s t n a m e } - c l e a r - o b j e c t s
C O M M A N D $ { C M A K E _ C O M M A N D } - E r e m o v e t e s t f i l e s / o u t - $ { t e s t n a m e } . $ { t e s t f i l e }
)
set_tests_properties ( H5REPACK_OLD- ${ testname } -clear-objects PROPERTIES
F I X T U R E S _ R E Q U I R E D c l e a r _ h 5 r e p a c k
)
add_test (
N A M E H 5 R E P A C K _ O L D - $ { t e s t n a m e }
C O M M A N D $ { C M A K E _ C R O S S C O M P I L I N G _ E M U L A T O R } $ < T A R G E T _ F I L E : h 5 r e p a c k $ { t g t _ e x t } > $ { A R G N } - i $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / $ { t e s t f i l e } - o $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / o u t - $ { t e s t n a m e } . $ { t e s t f i l e }
)
set_tests_properties ( H5REPACK_OLD- ${ testname } PROPERTIES
D E P E N D S H 5 R E P A C K _ O L D - $ { t e s t n a m e } - c l e a r - o b j e c t s
)
add_test (
N A M E H 5 R E P A C K _ O L D - $ { t e s t n a m e } _ D F F
C O M M A N D $ { C M A K E _ C R O S S C O M P I L I N G _ E M U L A T O R } $ < T A R G E T _ F I L E : h 5 d i f f $ { t g t _ e x t } > $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / $ { t e s t f i l e } $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / o u t - $ { t e s t n a m e } . $ { t e s t f i l e }
)
set_tests_properties ( H5REPACK_OLD- ${ testname } _DFF PROPERTIES
D E P E N D S H 5 R E P A C K _ O L D - $ { t e s t n a m e }
)
2017-01-11 07:09:53 +08:00
endif ( )
endif ( )
2017-03-02 04:47:53 +08:00
endmacro ( )
2016-10-27 23:06:00 +08:00
2017-03-02 04:47:53 +08:00
macro ( ADD_H5_TEST testname testtype testfile )
2016-10-27 23:06:00 +08:00
if ( "${testtype}" STREQUAL "SKIP" )
if ( NOT HDF5_ENABLE_USING_MEMCHECKER )
add_test (
2018-09-25 03:38:46 +08:00
N A M E H 5 R E P A C K - $ { t e s t n a m e }
2016-10-27 23:06:00 +08:00
C O M M A N D $ { C M A K E _ C O M M A N D } - E e c h o " S K I P $ { A R G N } $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / $ { t e s t f i l e } $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / o u t - $ { t e s t n a m e } . $ { t e s t f i l e } "
)
2018-09-25 03:38:46 +08:00
set_property ( TEST H5REPACK- ${ testname } PROPERTY DISABLED )
2017-01-11 07:09:53 +08:00
endif ( )
else ( )
2016-10-27 23:06:00 +08:00
add_test (
2017-10-04 00:14:35 +08:00
N A M E H 5 R E P A C K - $ { t e s t n a m e } - c l e a r - o b j e c t s
2019-07-24 05:24:56 +08:00
C O M M A N D $ { C M A K E _ C O M M A N D } - E r e m o v e t e s t f i l e s / o u t - $ { t e s t n a m e } . $ { t e s t f i l e }
)
set_tests_properties ( H5REPACK- ${ testname } -clear-objects PROPERTIES
F I X T U R E S _ R E Q U I R E D c l e a r _ h 5 r e p a c k
2016-10-27 23:06:00 +08:00
)
2017-10-04 00:14:35 +08:00
add_test (
N A M E H 5 R E P A C K - $ { t e s t n a m e }
2019-07-15 22:44:14 +08:00
C O M M A N D $ { C M A K E _ C R O S S C O M P I L I N G _ E M U L A T O R } $ < T A R G E T _ F I L E : h 5 r e p a c k $ { t g t _ e x t } > - - e n a b l e - e r r o r - s t a c k $ { A R G N } $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / $ { t e s t f i l e } $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / o u t - $ { t e s t n a m e } . $ { t e s t f i l e }
2017-10-04 00:14:35 +08:00
)
2019-07-24 05:24:56 +08:00
set_tests_properties ( H5REPACK- ${ testname } PROPERTIES
D E P E N D S H 5 R E P A C K - $ { t e s t n a m e } - c l e a r - o b j e c t s
2017-10-04 00:14:35 +08:00
)
2016-10-27 23:06:00 +08:00
add_test (
N A M E H 5 R E P A C K - $ { t e s t n a m e } _ D F F
2019-07-15 22:44:14 +08:00
C O M M A N D $ { C M A K E _ C R O S S C O M P I L I N G _ E M U L A T O R } $ < T A R G E T _ F I L E : h 5 d i f f $ { t g t _ e x t } > - - e n a b l e - e r r o r - s t a c k $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / $ { t e s t f i l e } $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / o u t - $ { t e s t n a m e } . $ { t e s t f i l e }
2016-10-27 23:06:00 +08:00
)
2019-07-24 05:24:56 +08:00
set_tests_properties ( H5REPACK- ${ testname } _DFF PROPERTIES
D E P E N D S H 5 R E P A C K - $ { t e s t n a m e }
2016-10-27 23:06:00 +08:00
)
2017-01-11 07:09:53 +08:00
endif ( )
2017-03-02 04:47:53 +08:00
endmacro ( )
2016-10-27 23:06:00 +08:00
2017-03-02 04:47:53 +08:00
macro ( ADD_H5_CMP_TEST testname testfilter testtype resultcode resultfile )
2016-10-27 23:06:00 +08:00
if ( "${testtype}" STREQUAL "SKIP" )
if ( NOT HDF5_ENABLE_USING_MEMCHECKER )
add_test (
2018-09-25 03:38:46 +08:00
N A M E H 5 R E P A C K _ C M P - $ { t e s t n a m e }
2016-10-27 23:06:00 +08:00
C O M M A N D $ { C M A K E _ C O M M A N D } - E e c h o " S K I P $ { A R G N } $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / $ { r e s u l t f i l e } $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / o u t - $ { t e s t n a m e } . $ { r e s u l t f i l e } "
)
2018-09-25 03:38:46 +08:00
set_property ( TEST H5REPACK_CMP- ${ testname } PROPERTY DISABLED )
2017-01-11 07:09:53 +08:00
endif ( )
else ( )
2016-10-27 23:06:00 +08:00
# If using memchecker add tests without using scripts
if ( HDF5_ENABLE_USING_MEMCHECKER )
add_test (
N A M E H 5 R E P A C K _ C M P - $ { t e s t n a m e }
2019-07-15 22:44:14 +08:00
C O M M A N D $ { C M A K E _ C R O S S C O M P I L I N G _ E M U L A T O R } $ < T A R G E T _ F I L E : h 5 r e p a c k $ { t g t _ e x t } > $ { A R G N } $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / $ { r e s u l t f i l e } $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / o u t - $ { t e s t n a m e } . $ { r e s u l t f i l e }
2017-08-02 23:53:17 +08:00
)
2017-01-11 07:09:53 +08:00
else ( )
2017-10-04 00:14:35 +08:00
add_test (
N A M E H 5 R E P A C K _ C M P - $ { t e s t n a m e } - c l e a r - o b j e c t s
2019-07-24 05:24:56 +08:00
C O M M A N D $ { C M A K E _ C O M M A N D } - E r e m o v e t e s t f i l e s / o u t - $ { t e s t n a m e } . $ { r e s u l t f i l e }
)
set_tests_properties ( H5REPACK_CMP- ${ testname } -clear-objects PROPERTIES
F I X T U R E S _ R E Q U I R E D c l e a r _ h 5 r e p a c k
2017-10-04 00:14:35 +08:00
)
2016-10-27 23:06:00 +08:00
add_test (
N A M E H 5 R E P A C K _ C M P - $ { t e s t n a m e }
C O M M A N D " $ { C M A K E _ C O M M A N D } "
2019-07-15 22:44:14 +08:00
- D " T E S T _ E M U L A T O R = $ { C M A K E _ C R O S S C O M P I L I N G _ E M U L A T O R } "
2019-06-18 20:46:25 +08:00
- D " T E S T _ P R O G R A M = $ < T A R G E T _ F I L E : h 5 r e p a c k $ { t g t _ e x t } > "
2016-10-27 23:06:00 +08:00
- D " T E S T _ A R G S : S T R I N G = $ { A R G N } ; $ { r e s u l t f i l e } ; o u t - $ { t e s t n a m e } . $ { r e s u l t f i l e } "
- D " T E S T _ F O L D E R = $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s "
- D " T E S T _ O U T P U T = $ { r e s u l t f i l e } - $ { t e s t n a m e } . o u t "
- D " T E S T _ E X P E C T = $ { r e s u l t c o d e } "
- D " T E S T _ F I L T E R : S T R I N G = $ { t e s t f i l t e r } "
- D " T E S T _ R E F E R E N C E = $ { r e s u l t f i l e } - $ { t e s t n a m e } . t s t "
- P " $ { H D F _ R E S O U R C E S _ E X T _ D I R } / r u n T e s t . c m a k e "
)
2019-07-24 05:24:56 +08:00
set_tests_properties ( H5REPACK_CMP- ${ testname } PROPERTIES
D E P E N D S H 5 R E P A C K _ C M P - $ { t e s t n a m e } - c l e a r - o b j e c t s
)
2016-10-27 23:06:00 +08:00
endif ( )
2017-01-11 07:09:53 +08:00
endif ( )
2017-03-02 04:47:53 +08:00
endmacro ( )
2016-10-27 23:06:00 +08:00
2019-04-15 22:46:29 +08:00
macro ( ADD_H5_MASK_TEST testname testtype resultcode result_errcheck resultfile )
2016-10-27 23:06:00 +08:00
if ( "${testtype}" STREQUAL "SKIP" )
if ( NOT HDF5_ENABLE_USING_MEMCHECKER )
add_test (
2018-09-25 03:38:46 +08:00
N A M E H 5 R E P A C K _ M A S K - $ { t e s t n a m e }
2016-10-27 23:06:00 +08:00
C O M M A N D $ { C M A K E _ C O M M A N D } - E e c h o " S K I P $ { A R G N } $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / $ { r e s u l t f i l e } $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / o u t - $ { t e s t n a m e } . $ { r e s u l t f i l e } "
)
2018-09-25 03:38:46 +08:00
set_property ( TEST H5REPACK_MASK- ${ testname } PROPERTY DISABLED )
2017-01-11 07:09:53 +08:00
endif ( )
else ( )
2016-10-27 23:06:00 +08:00
# If using memchecker add tests without using scripts
if ( HDF5_ENABLE_USING_MEMCHECKER )
add_test (
N A M E H 5 R E P A C K _ M A S K - $ { t e s t n a m e }
2019-07-15 22:44:14 +08:00
C O M M A N D $ { C M A K E _ C R O S S C O M P I L I N G _ E M U L A T O R } $ < T A R G E T _ F I L E : h 5 r e p a c k $ { t g t _ e x t } > $ { A R G N } $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / $ { r e s u l t f i l e } $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / o u t - $ { t e s t n a m e } . $ { r e s u l t f i l e }
2017-08-02 23:53:17 +08:00
)
2019-07-24 05:24:56 +08:00
set_tests_properties ( H5REPACK_MASK- ${ testname } PROPERTIES
F I X T U R E S _ R E Q U I R E D c l e a r _ h 5 r e p a c k
2017-08-02 23:53:17 +08:00
)
2016-10-27 23:06:00 +08:00
else ( HDF5_ENABLE_USING_MEMCHECKER )
2017-10-04 00:14:35 +08:00
add_test (
N A M E H 5 R E P A C K _ M A S K - $ { t e s t n a m e } - c l e a r - o b j e c t s
2019-07-24 05:24:56 +08:00
C O M M A N D $ { C M A K E _ C O M M A N D } - E r e m o v e t e s t f i l e s / o u t - $ { t e s t n a m e } . $ { r e s u l t f i l e }
)
set_tests_properties ( H5REPACK_MASK- ${ testname } -clear-objects PROPERTIES DEPENDS ${ last_test }
F I X T U R E S _ R E Q U I R E D c l e a r _ h 5 r e p a c k
2017-10-04 00:14:35 +08:00
)
2019-04-15 22:46:29 +08:00
add_test (
N A M E H 5 R E P A C K _ M A S K - $ { t e s t n a m e }
C O M M A N D " $ { C M A K E _ C O M M A N D } "
2019-07-15 22:44:14 +08:00
- D " T E S T _ E M U L A T O R = $ { C M A K E _ C R O S S C O M P I L I N G _ E M U L A T O R } "
2019-06-18 20:46:25 +08:00
- D " T E S T _ P R O G R A M = $ < T A R G E T _ F I L E : h 5 r e p a c k $ { t g t _ e x t } > "
2019-04-15 22:46:29 +08:00
- D " T E S T _ A R G S : S T R I N G = $ { A R G N } ; $ { r e s u l t f i l e } ; o u t - $ { t e s t n a m e } . $ { r e s u l t f i l e } "
- D " T E S T _ F O L D E R = $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s "
- D " T E S T _ O U T P U T = $ { r e s u l t f i l e } - $ { t e s t n a m e } . o u t "
- D " T E S T _ E X P E C T = $ { r e s u l t c o d e } "
- D " T E S T _ S K I P _ C O M P A R E = t r u e "
- D " T E S T _ R E F E R E N C E = $ { r e s u l t f i l e } . m t y "
- D " T E S T _ E R R R E F = $ { r e s u l t _ e r r c h e c k } "
- P " $ { H D F _ R E S O U R C E S _ E X T _ D I R } / g r e p T e s t . c m a k e "
)
2017-10-04 00:14:35 +08:00
set_tests_properties ( H5REPACK_MASK- ${ testname } PROPERTIES DEPENDS H5REPACK_MASK- ${ testname } -clear-objects )
2016-10-27 23:06:00 +08:00
endif ( )
2017-01-11 07:09:53 +08:00
endif ( )
2017-03-02 04:47:53 +08:00
endmacro ( )
2016-10-27 23:06:00 +08:00
2017-03-02 04:47:53 +08:00
macro ( ADD_H5_DMP_TEST testname testtype resultcode resultfile )
2016-10-27 23:06:00 +08:00
if ( "${testtype}" STREQUAL "SKIP" )
if ( NOT HDF5_ENABLE_USING_MEMCHECKER )
add_test (
2018-09-25 03:38:46 +08:00
N A M E H 5 R E P A C K _ D M P - $ { t e s t n a m e }
2016-10-27 23:06:00 +08:00
C O M M A N D $ { C M A K E _ C O M M A N D } - E e c h o " S K I P $ { A R G N } $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / $ { r e s u l t f i l e } $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / o u t - $ { t e s t n a m e } . $ { r e s u l t f i l e } "
)
2018-09-25 03:38:46 +08:00
set_property ( TEST H5REPACK_DMP- ${ testname } PROPERTY DISABLED )
2017-01-11 07:09:53 +08:00
endif ( )
else ( )
2016-10-27 23:06:00 +08:00
add_test (
2017-10-04 00:14:35 +08:00
N A M E H 5 R E P A C K _ D M P - $ { t e s t n a m e } - c l e a r - o b j e c t s
2019-07-24 05:24:56 +08:00
C O M M A N D $ { C M A K E _ C O M M A N D } - E r e m o v e t e s t f i l e s / o u t - $ { t e s t n a m e } . $ { r e s u l t f i l e }
)
set_tests_properties ( H5REPACK_DMP- ${ testname } -clear-objects PROPERTIES
F I X T U R E S _ R E Q U I R E D c l e a r _ h 5 r e p a c k
2017-08-02 23:53:17 +08:00
)
2017-10-04 00:14:35 +08:00
add_test (
N A M E H 5 R E P A C K _ D M P - $ { t e s t n a m e }
2019-07-15 22:44:14 +08:00
C O M M A N D $ { C M A K E _ C R O S S C O M P I L I N G _ E M U L A T O R } $ < T A R G E T _ F I L E : h 5 r e p a c k $ { t g t _ e x t } > $ { A R G N } $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / $ { r e s u l t f i l e } $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / o u t - $ { t e s t n a m e } . $ { r e s u l t f i l e }
2017-10-04 00:14:35 +08:00
)
2019-07-24 05:24:56 +08:00
set_tests_properties ( H5REPACK_DMP- ${ testname } PROPERTIES
D E P E N D S H 5 R E P A C K _ D M P - $ { t e s t n a m e } - c l e a r - o b j e c t s
2017-10-04 00:14:35 +08:00
)
2016-10-27 23:06:00 +08:00
if ( NOT HDF5_ENABLE_USING_MEMCHECKER )
add_test (
N A M E H 5 R E P A C K _ D M P - h 5 d u m p - $ { t e s t n a m e }
C O M M A N D " $ { C M A K E _ C O M M A N D } "
2019-07-15 22:44:14 +08:00
- D " T E S T _ E M U L A T O R = $ { C M A K E _ C R O S S C O M P I L I N G _ E M U L A T O R } "
2019-06-18 20:46:25 +08:00
- D " T E S T _ P R O G R A M = $ < T A R G E T _ F I L E : h 5 d u m p $ { t g t _ e x t } > "
2017-05-23 02:10:40 +08:00
- D " T E S T _ A R G S : S T R I N G = - q ; c r e a t i o n _ o r d e r ; - p H ; o u t - $ { t e s t n a m e } . $ { r e s u l t f i l e } "
2016-10-27 23:06:00 +08:00
- D " T E S T _ F O L D E R = $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s "
- D " T E S T _ O U T P U T = $ { r e s u l t f i l e } - $ { t e s t n a m e } . o u t "
- D " T E S T _ E X P E C T = $ { r e s u l t c o d e } "
- D " T E S T _ R E F E R E N C E = $ { t e s t n a m e } . $ { r e s u l t f i l e } . d d l "
- P " $ { H D F _ R E S O U R C E S _ E X T _ D I R } / r u n T e s t . c m a k e "
)
2019-07-24 05:24:56 +08:00
set_tests_properties ( H5REPACK_DMP-h5dump- ${ testname } PROPERTIES
D E P E N D S " H 5 R E P A C K _ D M P - $ { t e s t n a m e } "
)
2017-01-11 07:09:53 +08:00
endif ( )
endif ( )
2017-03-02 04:47:53 +08:00
endmacro ( )
2016-10-27 23:06:00 +08:00
2017-08-02 23:53:17 +08:00
macro ( ADD_H5_STAT_TEST testname testtype resultcode statarg resultfile )
if ( "${testtype}" STREQUAL "SKIP" )
if ( NOT HDF5_ENABLE_USING_MEMCHECKER )
add_test (
2018-09-25 03:38:46 +08:00
N A M E H 5 R E P A C K _ S T A T - $ { t e s t n a m e }
2017-08-02 23:53:17 +08:00
C O M M A N D $ { C M A K E _ C O M M A N D } - E e c h o " S K I P $ { A R G N } $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / $ { r e s u l t f i l e } $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / o u t - $ { s t a t a r g } . $ { r e s u l t f i l e } "
)
2018-09-25 03:38:46 +08:00
set_property ( TEST H5REPACK_STAT- ${ testname } PROPERTY DISABLED )
2017-08-02 23:53:17 +08:00
endif ( )
else ( )
add_test (
2017-10-04 00:14:35 +08:00
N A M E H 5 R E P A C K _ S T A T - $ { t e s t n a m e } - c l e a r - o b j e c t s
2019-07-24 05:24:56 +08:00
C O M M A N D $ { C M A K E _ C O M M A N D } - E r e m o v e t e s t f i l e s / o u t - $ { s t a t a r g } . $ { r e s u l t f i l e }
)
set_tests_properties ( H5REPACK_STAT- ${ testname } -clear-objects PROPERTIES
F I X T U R E S _ R E Q U I R E D c l e a r _ h 5 r e p a c k
2017-08-02 23:53:17 +08:00
)
2017-10-04 00:14:35 +08:00
add_test (
N A M E H 5 R E P A C K _ S T A T - $ { t e s t n a m e }
2019-07-15 22:44:14 +08:00
C O M M A N D $ { C M A K E _ C R O S S C O M P I L I N G _ E M U L A T O R } $ < T A R G E T _ F I L E : h 5 r e p a c k $ { t g t _ e x t } > $ { A R G N } $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / $ { r e s u l t f i l e } $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / o u t - $ { s t a t a r g } . $ { r e s u l t f i l e }
2017-10-04 00:14:35 +08:00
)
2019-07-24 05:24:56 +08:00
set_tests_properties ( H5REPACK_STAT- ${ testname } PROPERTIES
D E P E N D S H 5 R E P A C K _ S T A T - $ { t e s t n a m e } - c l e a r - o b j e c t s
2017-10-04 00:14:35 +08:00
)
2017-08-02 23:53:17 +08:00
if ( NOT HDF5_ENABLE_USING_MEMCHECKER )
add_test (
N A M E H 5 R E P A C K _ S T A T - h 5 s t a t - $ { t e s t n a m e }
C O M M A N D " $ { C M A K E _ C O M M A N D } "
2019-07-15 22:44:14 +08:00
- D " T E S T _ E M U L A T O R = $ { C M A K E _ C R O S S C O M P I L I N G _ E M U L A T O R } "
2019-06-18 20:46:25 +08:00
- D " T E S T _ P R O G R A M = $ < T A R G E T _ F I L E : h 5 s t a t $ { t g t _ e x t } > "
2017-08-02 23:53:17 +08:00
- D " T E S T _ A R G S : S T R I N G = - S ; - s ; o u t - $ { s t a t a r g } . $ { r e s u l t f i l e } "
- D " T E S T _ F O L D E R = $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s "
- D " T E S T _ O U T P U T = $ { r e s u l t f i l e } - $ { t e s t n a m e } . o u t "
- D " T E S T _ E X P E C T = $ { r e s u l t c o d e } "
- D " T E S T _ R E F E R E N C E = $ { s t a t a r g } . $ { r e s u l t f i l e } . d d l "
- P " $ { H D F _ R E S O U R C E S _ E X T _ D I R } / r u n T e s t . c m a k e "
)
2019-07-24 05:24:56 +08:00
set_tests_properties ( H5REPACK_STAT-h5stat- ${ testname } PROPERTIES
D E P E N D S " H 5 R E P A C K _ S T A T - $ { t e s t n a m e } "
)
2017-08-02 23:53:17 +08:00
endif ( )
endif ( )
endmacro ( )
2017-03-02 04:47:53 +08:00
macro ( ADD_H5_VERIFY_TEST testname testtype resultcode testfile testdset testfilter )
2016-10-27 23:06:00 +08:00
if ( "${testtype}" STREQUAL "SKIP" )
if ( NOT HDF5_ENABLE_USING_MEMCHECKER )
add_test (
2018-09-25 03:38:46 +08:00
N A M E H 5 R E P A C K _ V E R I F Y _ L A Y O U T - $ { t e s t n a m e }
2016-10-27 23:06:00 +08:00
C O M M A N D $ { C M A K E _ C O M M A N D } - E e c h o " S K I P - d $ { t e s t d s e t } - p H $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / o u t - $ { t e s t n a m e } . $ { r e s u l t f i l e } "
)
2018-09-25 03:38:46 +08:00
set_property ( TEST H5REPACK_VERIFY_LAYOUT- ${ testname } PROPERTY DISABLED )
2017-01-11 07:09:53 +08:00
endif ( )
else ( )
2016-10-27 23:06:00 +08:00
if ( NOT HDF5_ENABLE_USING_MEMCHECKER )
add_test (
2017-10-04 00:14:35 +08:00
N A M E H 5 R E P A C K _ V E R I F Y _ L A Y O U T - $ { t e s t n a m e } - c l e a r - o b j e c t s
2019-07-24 05:24:56 +08:00
C O M M A N D $ { C M A K E _ C O M M A N D } - E r e m o v e t e s t f i l e s / o u t - $ { t e s t n a m e } . $ { t e s t f i l e }
)
set_tests_properties ( H5REPACK_VERIFY_LAYOUT- ${ testname } -clear-objects PROPERTIES
F I X T U R E S _ R E Q U I R E D c l e a r _ h 5 r e p a c k
2016-10-27 23:06:00 +08:00
)
2017-10-04 00:14:35 +08:00
add_test (
N A M E H 5 R E P A C K _ V E R I F Y _ L A Y O U T - $ { t e s t n a m e }
2019-07-15 22:44:14 +08:00
C O M M A N D $ { C M A K E _ C R O S S C O M P I L I N G _ E M U L A T O R } $ < T A R G E T _ F I L E : h 5 r e p a c k $ { t g t _ e x t } > $ { A R G N } $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / $ { t e s t f i l e } $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / o u t - $ { t e s t n a m e } . $ { t e s t f i l e }
2017-10-04 00:14:35 +08:00
)
2019-07-24 05:24:56 +08:00
set_tests_properties ( H5REPACK_VERIFY_LAYOUT- ${ testname } PROPERTIES
D E P E N D S H 5 R E P A C K _ V E R I F Y _ L A Y O U T - $ { t e s t n a m e } - c l e a r - o b j e c t s
2017-10-04 00:14:35 +08:00
)
2016-10-27 23:06:00 +08:00
add_test (
N A M E H 5 R E P A C K _ V E R I F Y _ L A Y O U T - $ { t e s t n a m e } _ D F F
2019-07-15 22:44:14 +08:00
C O M M A N D $ { C M A K E _ C R O S S C O M P I L I N G _ E M U L A T O R } $ < T A R G E T _ F I L E : h 5 d i f f $ { t g t _ e x t } > $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / $ { t e s t f i l e } $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / o u t - $ { t e s t n a m e } . $ { t e s t f i l e }
2016-10-27 23:06:00 +08:00
)
2019-07-24 05:24:56 +08:00
set_tests_properties ( H5REPACK_VERIFY_LAYOUT- ${ testname } _DFF PROPERTIES
D E P E N D S H 5 R E P A C K _ V E R I F Y _ L A Y O U T - $ { t e s t n a m e }
2016-10-27 23:06:00 +08:00
)
2019-02-16 05:48:24 +08:00
if ( NOT ${ resultcode } )
2016-10-27 23:06:00 +08:00
add_test (
N A M E H 5 R E P A C K _ V E R I F Y _ L A Y O U T - $ { t e s t n a m e } _ D M P
C O M M A N D " $ { C M A K E _ C O M M A N D } "
2019-07-15 22:44:14 +08:00
- D " T E S T _ E M U L A T O R = $ { C M A K E _ C R O S S C O M P I L I N G _ E M U L A T O R } "
2019-06-18 20:46:25 +08:00
- D " T E S T _ P R O G R A M = $ < T A R G E T _ F I L E : h 5 d u m p $ { t g t _ e x t } > "
2016-10-27 23:06:00 +08:00
- D " T E S T _ A R G S : S T R I N G = - d ; $ { t e s t d s e t } ; - p H ; o u t - $ { t e s t n a m e } . $ { t e s t f i l e } "
- D " T E S T _ F O L D E R = $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s "
- D " T E S T _ O U T P U T = $ { t e s t f i l e } - $ { t e s t n a m e } - v . o u t "
- D " T E S T _ E X P E C T = $ { r e s u l t c o d e } "
- D " T E S T _ F I L T E R : S T R I N G = $ { t e s t f i l t e r } "
- D " T E S T _ R E F E R E N C E = $ { t e s t f i l t e r } "
- P " $ { H D F _ R E S O U R C E S _ E X T _ D I R } / g r e p T e s t . c m a k e "
)
2019-07-24 05:24:56 +08:00
set_tests_properties ( H5REPACK_VERIFY_LAYOUT- ${ testname } _DMP PROPERTIES
D E P E N D S H 5 R E P A C K _ V E R I F Y _ L A Y O U T - $ { t e s t n a m e } _ D F F
)
2017-01-11 07:09:53 +08:00
else ( )
2016-10-27 23:06:00 +08:00
if ( "${testfilter}" STREQUAL "CHUNKED" )
set ( nottestfilter "(CONTIGUOUS|COMPACT)" )
endif ( )
if ( "${testfilter}" STREQUAL "CONTIGUOUS" )
set ( nottestfilter "(CHUNK|COMPACT)" )
endif ( )
if ( "${testfilter}" STREQUAL "COMPACT" )
set ( nottestfilter "(CONTIGUOUS|CHUNK)" )
endif ( )
add_test (
N A M E H 5 R E P A C K _ V E R I F Y _ L A Y O U T - $ { t e s t n a m e } _ D M P
C O M M A N D " $ { C M A K E _ C O M M A N D } "
2019-07-15 22:44:14 +08:00
- D " T E S T _ E M U L A T O R = $ { C M A K E _ C R O S S C O M P I L I N G _ E M U L A T O R } "
2019-06-18 20:46:25 +08:00
- D " T E S T _ P R O G R A M = $ < T A R G E T _ F I L E : h 5 d u m p $ { t g t _ e x t } > "
2016-10-27 23:06:00 +08:00
- D " T E S T _ A R G S : S T R I N G = - p H ; o u t - $ { t e s t n a m e } . $ { t e s t f i l e } "
- D " T E S T _ F O L D E R = $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s "
- D " T E S T _ O U T P U T = $ { t e s t f i l e } - $ { t e s t n a m e } - v . o u t "
- D " T E S T _ E X P E C T = $ { r e s u l t c o d e } "
- D " T E S T _ F I L T E R : S T R I N G = $ { n o t t e s t f i l t e r } "
- D " T E S T _ R E F E R E N C E = $ { t e s t f i l t e r } "
- P " $ { H D F _ R E S O U R C E S _ E X T _ D I R } / g r e p T e s t . c m a k e "
)
2019-07-24 05:24:56 +08:00
set_tests_properties ( H5REPACK_VERIFY_LAYOUT- ${ testname } _DMP PROPERTIES
D E P E N D S H 5 R E P A C K _ V E R I F Y _ L A Y O U T - $ { t e s t n a m e } _ D F F
)
2017-01-11 07:09:53 +08:00
endif ( )
endif ( )
endif ( )
2017-03-02 04:47:53 +08:00
endmacro ( )
2016-10-27 23:06:00 +08:00
2017-03-02 04:47:53 +08:00
macro ( ADD_H5_VERIFY_VDS testname testtype resultcode testfile testdset testfilter )
2016-10-27 23:06:00 +08:00
if ( "${testtype}" STREQUAL "SKIP" )
if ( NOT HDF5_ENABLE_USING_MEMCHECKER )
add_test (
2018-09-25 03:38:46 +08:00
N A M E H 5 R E P A C K _ V E R I F Y _ L A Y O U T _ V D S - $ { t e s t n a m e }
2016-10-27 23:06:00 +08:00
C O M M A N D $ { C M A K E _ C O M M A N D } - E e c h o " S K I P - d $ { t e s t d s e t } - p H $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / o u t - $ { t e s t n a m e } . $ { r e s u l t f i l e } "
)
2018-09-25 03:38:46 +08:00
set_property ( TEST H5REPACK_VERIFY_LAYOUT_VDS- ${ testname } PROPERTY DISABLED )
2017-01-11 07:09:53 +08:00
endif ( )
else ( )
2016-10-27 23:06:00 +08:00
if ( NOT HDF5_ENABLE_USING_MEMCHECKER )
2017-10-04 00:14:35 +08:00
# Remove any output file left over from previous test run
add_test (
N A M E H 5 R E P A C K _ V E R I F Y _ L A Y O U T _ V D S - $ { t e s t n a m e } - c l e a r - o b j e c t s
2019-07-24 05:24:56 +08:00
C O M M A N D $ { C M A K E _ C O M M A N D } - E r e m o v e t e s t f i l e s / o u t - $ { t e s t n a m e } . $ { t e s t f i l e }
)
set_tests_properties ( H5REPACK_VERIFY_LAYOUT_VDS- ${ testname } -clear-objects PROPERTIES
F I X T U R E S _ R E Q U I R E D c l e a r _ h 5 r e p a c k
2017-10-04 00:14:35 +08:00
)
2016-10-27 23:06:00 +08:00
add_test (
N A M E H 5 R E P A C K _ V E R I F Y _ L A Y O U T _ V D S - $ { t e s t n a m e }
2019-07-15 22:44:14 +08:00
C O M M A N D $ { C M A K E _ C R O S S C O M P I L I N G _ E M U L A T O R } $ < T A R G E T _ F I L E : h 5 r e p a c k $ { t g t _ e x t } > $ { A R G N } $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / $ { t e s t f i l e } $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / o u t - $ { t e s t n a m e } . $ { t e s t f i l e }
2016-10-27 23:06:00 +08:00
)
2019-07-24 05:24:56 +08:00
set_tests_properties ( H5REPACK_VERIFY_LAYOUT_VDS- ${ testname } PROPERTIES
W O R K I N G _ D I R E C T O R Y " $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s "
D E P E N D S H 5 R E P A C K _ V E R I F Y _ L A Y O U T _ V D S - $ { t e s t n a m e } - c l e a r - o b j e c t s
2016-10-27 23:06:00 +08:00
)
add_test (
N A M E H 5 R E P A C K _ V E R I F Y _ L A Y O U T _ V D S - $ { t e s t n a m e } _ D M P
C O M M A N D " $ { C M A K E _ C O M M A N D } "
2019-07-15 22:44:14 +08:00
- D " T E S T _ E M U L A T O R = $ { C M A K E _ C R O S S C O M P I L I N G _ E M U L A T O R } "
2019-06-18 20:46:25 +08:00
- D " T E S T _ P R O G R A M = $ < T A R G E T _ F I L E : h 5 d u m p $ { t g t _ e x t } > "
2016-10-27 23:06:00 +08:00
- D " T E S T _ A R G S : S T R I N G = - d ; $ { t e s t d s e t } ; - p ; o u t - $ { t e s t n a m e } . $ { t e s t f i l e } "
- D " T E S T _ F O L D E R = $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s "
- D " T E S T _ O U T P U T = $ { t e s t f i l e } - $ { t e s t n a m e } - v . o u t "
- D " T E S T _ E X P E C T = $ { r e s u l t c o d e } "
- D " T E S T _ R E F E R E N C E = $ { t e s t f i l e } - $ { t e s t n a m e } - v . d d l "
- P " $ { H D F _ R E S O U R C E S _ E X T _ D I R } / r u n T e s t . c m a k e "
)
2019-07-24 05:24:56 +08:00
set_tests_properties ( H5REPACK_VERIFY_LAYOUT_VDS- ${ testname } _DMP PROPERTIES
W O R K I N G _ D I R E C T O R Y " $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s "
D E P E N D S H 5 R E P A C K _ V E R I F Y _ L A Y O U T _ V D S - $ { t e s t n a m e }
)
2017-01-11 07:09:53 +08:00
endif ( )
endif ( )
2017-03-02 04:47:53 +08:00
endmacro ( )
2016-10-27 23:06:00 +08:00
2018-03-06 23:02:32 +08:00
# VERIFY_SUPERBLOCK
macro ( ADD_H5_VERIFY_SUPERBLOCK testname testfile lowbound highbound superblock )
if ( NOT HDF5_ENABLE_USING_MEMCHECKER )
add_test (
N A M E H 5 R E P A C K _ V E R I F Y _ S U P E R B L O C K - $ { t e s t n a m e } - c l e a r - o b j e c t s
2019-07-24 05:24:56 +08:00
C O M M A N D $ { C M A K E _ C O M M A N D } - E r e m o v e t e s t f i l e s / o u t - $ { t e s t n a m e } . $ { t e s t f i l e }
)
set_tests_properties ( H5REPACK_VERIFY_SUPERBLOCK- ${ testname } -clear-objects PROPERTIES
F I X T U R E S _ R E Q U I R E D c l e a r _ h 5 r e p a c k
2018-03-06 23:02:32 +08:00
)
add_test (
N A M E H 5 R E P A C K _ V E R I F Y _ S U P E R B L O C K - $ { t e s t n a m e }
2019-07-15 22:44:14 +08:00
C O M M A N D $ { C M A K E _ C R O S S C O M P I L I N G _ E M U L A T O R } $ < T A R G E T _ F I L E : h 5 r e p a c k $ { t g t _ e x t } > - j ; $ { l o w b o u n d } ; - k ; $ { h i g h b o u n d } $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / $ { t e s t f i l e } $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / o u t - $ { t e s t n a m e } . $ { t e s t f i l e }
2018-03-06 23:02:32 +08:00
)
2019-07-24 05:24:56 +08:00
set_tests_properties ( H5REPACK_VERIFY_SUPERBLOCK- ${ testname } PROPERTIES
D E P E N D S H 5 R E P A C K _ V E R I F Y _ S U P E R B L O C K - $ { t e s t n a m e } - c l e a r - o b j e c t s
2018-03-06 23:02:32 +08:00
)
add_test (
N A M E H 5 R E P A C K _ V E R I F Y _ S U P E R B L O C K - $ { t e s t n a m e } _ D M P
C O M M A N D " $ { C M A K E _ C O M M A N D } "
2019-07-15 22:44:14 +08:00
- D " T E S T _ E M U L A T O R = $ { C M A K E _ C R O S S C O M P I L I N G _ E M U L A T O R } "
2019-06-18 20:46:25 +08:00
- D " T E S T _ P R O G R A M = $ < T A R G E T _ F I L E : h 5 d u m p $ { t g t _ e x t } > "
2018-03-06 23:02:32 +08:00
- D " T E S T _ A R G S : S T R I N G = - H ; - B ; o u t - $ { t e s t n a m e } . $ { t e s t f i l e } "
- D " T E S T _ F O L D E R = $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s "
- D " T E S T _ O U T P U T = $ { t e s t f i l e } - $ { t e s t n a m e } - v . o u t "
- D " T E S T _ E X P E C T = $ { r e s u l t c o d e } "
- D " T E S T _ F I L T E R : S T R I N G = S U P E R B L O C K _ V E R S I O N $ { s u p e r b l o c k } "
- D " T E S T _ R E F E R E N C E = S U P E R B L O C K _ V E R S I O N $ { s u p e r b l o c k } "
- P " $ { H D F _ R E S O U R C E S _ E X T _ D I R } / g r e p T e s t . c m a k e "
)
2019-07-24 05:24:56 +08:00
set_tests_properties ( H5REPACK_VERIFY_SUPERBLOCK- ${ testname } _DMP PROPERTIES
D E P E N D S H 5 R E P A C K _ V E R I F Y _ S U P E R B L O C K - $ { t e s t n a m e }
)
2018-03-06 23:02:32 +08:00
endif ( )
endmacro ( )
macro ( ADD_H5_VERIFY_INVALIDBOUNDS testname resultcode lowbound highbound )
add_test (
N A M E A D D _ H 5 _ V E R I F Y _ I N V A L I D B O U N D S - h 5 r e p a c k - $ { t e s t n a m e } - c l e a r - o b j e c t s
2019-07-24 05:24:56 +08:00
C O M M A N D $ { C M A K E _ C O M M A N D } - E r e m o v e t e s t f i l e s / o u t - $ { t e s t n a m e } . $ { t e s t f i l e }
)
set_tests_properties ( ADD_H5_VERIFY_INVALIDBOUNDS-h5repack- ${ testname } -clear-objects PROPERTIES
F I X T U R E S _ R E Q U I R E D c l e a r _ h 5 r e p a c k
2018-03-06 23:02:32 +08:00
)
add_test (
2018-03-08 05:55:33 +08:00
N A M E A D D _ H 5 _ V E R I F Y _ I N V A L I D B O U N D S - h 5 r e p a c k - $ { t e s t n a m e }
2019-07-15 22:44:14 +08:00
C O M M A N D $ { C M A K E _ C R O S S C O M P I L I N G _ E M U L A T O R } $ < T A R G E T _ F I L E : h 5 r e p a c k $ { t g t _ e x t } > - j ; $ { l o w b o u n d } ; - k ; $ { h i g h b o u n d } $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / $ { t e s t f i l e } $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / o u t - $ { t e s t n a m e } . $ { t e s t f i l e }
2018-03-06 23:02:32 +08:00
)
2019-07-24 05:24:56 +08:00
set_tests_properties ( ADD_H5_VERIFY_INVALIDBOUNDS-h5repack- ${ testname } PROPERTIES
D E P E N D S A D D _ H 5 _ V E R I F Y _ I N V A L I D B O U N D S - h 5 r e p a c k - $ { t e s t n a m e } - c l e a r - o b j e c t s
W I L L _ F A I L " t r u e "
2018-03-06 23:02:32 +08:00
)
endmacro ( )
2017-03-02 04:47:53 +08:00
macro ( ADD_H5_TEST_META testname testfile )
2017-10-04 00:14:35 +08:00
# Remove any output file left over from previous test run
2016-10-27 23:06:00 +08:00
add_test (
2017-10-04 00:14:35 +08:00
N A M E H 5 R E P A C K _ M E T A - $ { t e s t n a m e } _ N - c l e a r - o b j e c t s
2019-07-24 05:24:56 +08:00
C O M M A N D $ { C M A K E _ C O M M A N D } - E r e m o v e
2017-10-04 00:14:35 +08:00
t e s t f i l e s / o u t - $ { t e s t n a m e } _ N . $ { t e s t n a m e } . h 5
t e s t f i l e s / o u t - $ { t e s t n a m e } _ M . $ { t e s t n a m e } . h 5
2016-10-27 23:06:00 +08:00
)
2019-07-24 05:24:56 +08:00
set_tests_properties ( H5REPACK_META- ${ testname } _N-clear-objects PROPERTIES
F I X T U R E S _ R E Q U I R E D c l e a r _ h 5 r e p a c k
)
2017-10-04 00:14:35 +08:00
add_test (
N A M E H 5 R E P A C K _ M E T A - $ { t e s t n a m e } _ N
2019-07-15 22:44:14 +08:00
C O M M A N D $ { C M A K E _ C R O S S C O M P I L I N G _ E M U L A T O R } $ < T A R G E T _ F I L E : h 5 r e p a c k $ { t g t _ e x t } > $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / $ { t e s t f i l e } $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / o u t - $ { t e s t n a m e } _ N . $ { t e s t n a m e } . h 5
2017-10-04 00:14:35 +08:00
)
2019-07-24 05:24:56 +08:00
set_tests_properties ( H5REPACK_META- ${ testname } _N PROPERTIES
D E P E N D S H 5 R E P A C K _ M E T A - $ { t e s t n a m e } _ N - c l e a r - o b j e c t s
2017-10-04 00:14:35 +08:00
)
2016-10-27 23:06:00 +08:00
add_test (
N A M E H 5 R E P A C K _ M E T A - $ { t e s t n a m e } _ M
2019-07-15 22:44:14 +08:00
C O M M A N D $ { C M A K E _ C R O S S C O M P I L I N G _ E M U L A T O R } $ < T A R G E T _ F I L E : h 5 r e p a c k $ { t g t _ e x t } > $ { A R G N } $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / $ { t e s t f i l e } $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s / o u t - $ { t e s t n a m e } _ M . $ { t e s t n a m e } . h 5
2016-10-27 23:06:00 +08:00
)
2019-07-24 05:24:56 +08:00
set_tests_properties ( H5REPACK_META- ${ testname } _M PROPERTIES
D E P E N D S H 5 R E P A C K _ M E T A - $ { t e s t n a m e } _ N
2016-10-27 23:06:00 +08:00
)
add_test ( NAME H5REPACK_META- ${ testname } COMMAND ${ CMAKE_COMMAND } -E compare_files ${ PROJECT_BINARY_DIR } /testfiles/out- ${ testname } _N. ${ testname } .h5 ${ PROJECT_BINARY_DIR } /testfiles/out- ${ testname } _M. ${ testname } .h5 )
2019-07-24 05:24:56 +08:00
set_tests_properties ( H5REPACK_META- ${ testname } PROPERTIES
W I L L _ F A I L " t r u e "
D E P E N D S H 5 R E P A C K _ M E T A - $ { t e s t n a m e } _ M
)
2017-03-02 04:47:53 +08:00
endmacro ( )
2016-10-27 23:06:00 +08:00
2017-03-02 04:47:53 +08:00
macro ( ADD_H5_UD_TEST testname resultcode resultfile )
2016-10-27 23:06:00 +08:00
if ( NOT HDF5_ENABLE_USING_MEMCHECKER )
# Remove any output file left over from previous test run
add_test (
2017-10-04 00:14:35 +08:00
N A M E H 5 R E P A C K _ U D - $ { t e s t n a m e } - c l e a r - o b j e c t s
2019-07-24 05:24:56 +08:00
C O M M A N D $ { C M A K E _ C O M M A N D } - E r e m o v e t e s t f i l e s / o u t - $ { t e s t n a m e } . $ { r e s u l t f i l e }
)
set_tests_properties ( H5REPACK_UD- ${ testname } -clear-objects PROPERTIES
F I X T U R E S _ R E Q U I R E D c l e a r _ h 5 r e p a c k
2016-10-27 23:06:00 +08:00
)
add_test (
N A M E H 5 R E P A C K _ U D - $ { t e s t n a m e }
C O M M A N D " $ { C M A K E _ C O M M A N D } "
2019-07-15 22:44:14 +08:00
- D " T E S T _ E M U L A T O R = $ { C M A K E _ C R O S S C O M P I L I N G _ E M U L A T O R } "
2019-06-18 20:46:25 +08:00
- D " T E S T _ P R O G R A M = $ < T A R G E T _ F I L E : h 5 r e p a c k - s h a r e d > "
2016-10-27 23:06:00 +08:00
- D " T E S T _ A R G S : S T R I N G = $ { A R G N } ; $ { r e s u l t f i l e } ; o u t - $ { t e s t n a m e } . $ { r e s u l t f i l e } "
- D " T E S T _ F O L D E R = $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s "
- D " T E S T _ E X P E C T = $ { r e s u l t c o d e } "
- D " T E S T _ F I L T E R : S T R I N G = O ? . . . i n g f i l e [ ^ \ n ] + \ n "
- D " T E S T _ O U T P U T = $ { t e s t n a m e } . $ { r e s u l t f i l e } . o u t "
- D " T E S T _ R E F E R E N C E = $ { t e s t n a m e } . $ { r e s u l t f i l e } . t s t "
- D " T E S T _ E N V _ V A R = H D F 5 _ P L U G I N _ P A T H "
- D " T E S T _ E N V _ V A L U E = $ { C M A K E _ B I N A R Y _ D I R } / p l u g i n s "
2019-06-22 02:46:46 +08:00
- D " T E S T _ L I B R A R Y _ D I R E C T O R Y = $ { C M A K E _ T E S T _ O U T P U T _ D I R E C T O R Y } "
2016-10-27 23:06:00 +08:00
- P " $ { H D F _ R E S O U R C E S _ E X T _ D I R } / r u n T e s t . c m a k e "
)
2019-07-24 05:24:56 +08:00
set_tests_properties ( H5REPACK_UD- ${ testname } PROPERTIES
D E P E N D S H 5 R E P A C K _ U D - $ { t e s t n a m e } - c l e a r - o b j e c t s
)
2016-10-27 23:06:00 +08:00
add_test (
2017-10-04 00:14:35 +08:00
N A M E H 5 R E P A C K _ U D - $ { t e s t n a m e } - h 5 d u m p
2016-10-27 23:06:00 +08:00
C O M M A N D " $ { C M A K E _ C O M M A N D } "
2019-07-15 22:44:14 +08:00
- D " T E S T _ E M U L A T O R = $ { C M A K E _ C R O S S C O M P I L I N G _ E M U L A T O R } "
2019-06-18 20:46:25 +08:00
- D " T E S T _ P R O G R A M = $ < T A R G E T _ F I L E : h 5 d u m p - s h a r e d > "
2016-10-27 23:06:00 +08:00
- D " T E S T _ A R G S : S T R I N G = - p H ; o u t - $ { t e s t n a m e } . $ { r e s u l t f i l e } "
- D " T E S T _ F O L D E R = $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s "
- D " T E S T _ O U T P U T = $ { r e s u l t f i l e } - $ { t e s t n a m e } . o u t "
2017-10-04 00:14:35 +08:00
- D " T E S T _ E X P E C T = 0 "
2016-10-27 23:06:00 +08:00
- D " T E S T _ R E F E R E N C E = $ { r e s u l t f i l e } - $ { t e s t n a m e } . d d l "
- D " T E S T _ E N V _ V A R = H D F 5 _ P L U G I N _ P A T H "
- D " T E S T _ E N V _ V A L U E = $ { C M A K E _ B I N A R Y _ D I R } / p l u g i n s "
2019-06-22 02:46:46 +08:00
- D " T E S T _ L I B R A R Y _ D I R E C T O R Y = $ { C M A K E _ T E S T _ O U T P U T _ D I R E C T O R Y } "
2016-10-27 23:06:00 +08:00
- P " $ { H D F _ R E S O U R C E S _ E X T _ D I R } / r u n T e s t . c m a k e "
)
2019-07-24 05:24:56 +08:00
set_tests_properties ( H5REPACK_UD- ${ testname } -h5dump PROPERTIES
D E P E N D S " H 5 R E P A C K _ U D - $ { t e s t n a m e } "
)
2017-01-11 07:09:53 +08:00
endif ( )
2017-03-02 04:47:53 +08:00
endmacro ( )
2016-10-27 23:06:00 +08:00
##############################################################################
##############################################################################
### T H E T E S T S ###
##############################################################################
##############################################################################
# --------------------------------------------------------------------
# test file names
# --------------------------------------------------------------------
set ( INFO_FILE testfiles/h5repack.info )
set ( FILE0 h5repack_fill.h5 )
set ( FILE1 h5repack_objs.h5 )
set ( FILE2 h5repack_attr.h5 )
set ( FILE3 h5repack_hlink.h5 )
set ( FILE4 h5repack_layout.h5 )
set ( FILE5 h5repack_early.h5 )
set ( FILE7 h5repack_szip.h5 )
set ( FILE8 h5repack_deflate.h5 )
set ( FILE9 h5repack_shuffle.h5 )
set ( FILE10 h5repack_fletcher.h5 )
set ( FILE11 h5repack_filters.h5 )
set ( FILE12 h5repack_nbit.h5 )
set ( FILE13 h5repack_soffset.h5 )
set ( FILE14 h5repack_layouto.h5 ) # A file with an older version of the layout message (copy of test/tlayouto.h5)
set ( FILE15 h5repack_named_dtypes.h5 )
set ( FILE16 tfamily%05d.h5 ) # located in common testfiles folder
set ( FILE18 h5repack_layout2.h5 )
2019-08-04 06:28:50 +08:00
set ( FILE19 h5repack_layout3.h5 )
2016-10-27 23:06:00 +08:00
set ( FILE_REF h5repack_refs.h5 )
set ( FILE_ATTR_REF h5repack_attr_refs.h5 )
set ( FILEV1 1_vds.h5 )
set ( FILEV2 2_vds.h5 )
set ( FILEV3_1 3_1_vds.h5 )
set ( FILEV3_2 3_2_vds.h5 )
set ( FILEV4 4_vds.h5 )
set ( FILEV5 5_vds.h5 )
2017-10-04 00:14:35 +08:00
if ( HDF5_ENABLE_USING_MEMCHECKER )
# Remove any output file left over from previous test run
set ( LIST_TO_CLEAR
o u t - f a m i l y . t f a m i l y % 0 5 d . h 5
o u t - H D F F V - 7 8 4 0 . h 5 d i f f _ a t t r 1 . h 5
o u t - a t t r . h 5 r e p a c k _ a t t r . h 5
o u t - n a t i v e _ a t t r . h 5 r e p a c k _ a t t r . h 5
o u t - H D F F V - 5 9 3 2 . h 5 r e p a c k _ a t t r _ r e f s . h 5
o u t - d e f l a t e _ c o p y . h 5 r e p a c k _ d e f l a t e . h 5
o u t - d e f l a t e _ r e m o v e . h 5 r e p a c k _ d e f l a t e . h 5
o u t - e a r l y . h 5 r e p a c k _ e a r l y . h 5
o u t - f i l l . h 5 r e p a c k _ f i l l . h 5
o u t - n a t i v e _ f i l l . h 5 r e p a c k _ f i l l . h 5
o u t - g z i p _ v e r b o s e _ f i l t e r s . h 5 r e p a c k _ f i l t e r s . h 5
o u t - f l e t c h e r _ c o p y . h 5 r e p a c k _ f l e t c h e r . h 5
o u t - f l e t c h e r _ r e m o v e . h 5 r e p a c k _ f l e t c h e r . h 5
o u t - h l i n k . h 5 r e p a c k _ h l i n k . h 5
o u t - c h u n k _ 1 8 x 1 3 . h 5 r e p a c k _ l a y o u t . h 5
o u t - c h u n k _ 2 0 x 1 0 . h 5 r e p a c k _ l a y o u t . h 5
o u t - c h u n k _ c o m p a . h 5 r e p a c k _ l a y o u t . h 5
o u t - c h u n k _ c o n t i . h 5 r e p a c k _ l a y o u t . h 5
o u t - c o m p a . h 5 r e p a c k _ l a y o u t . h 5
o u t - c o n t i . h 5 r e p a c k _ l a y o u t . h 5
o u t - d e f l a t e _ f i l e . h 5 r e p a c k _ l a y o u t . h 5
o u t - d e f l a t e _ l i m i t . h 5 r e p a c k _ l a y o u t . h 5
o u t - d s e t 2 _ c h u n k _ 2 0 x 1 0 . h 5 r e p a c k _ l a y o u t . h 5
o u t - d s e t 2 _ c o m p a . h 5 r e p a c k _ l a y o u t . h 5
o u t - d s e t 2 _ c o n t i . h 5 r e p a c k _ l a y o u t . h 5
o u t - d s e t _ c o m p a _ c h u n k . h 5 r e p a c k _ l a y o u t . h 5
o u t - d s e t _ c o m p a _ c o m p a . h 5 r e p a c k _ l a y o u t . h 5
o u t - d s e t _ c o m p a _ c o n t i . h 5 r e p a c k _ l a y o u t . h 5
o u t - d s e t _ c o n t i _ c h u n k . h 5 r e p a c k _ l a y o u t . h 5
o u t - d s e t _ c o n t i _ c o m p a . h 5 r e p a c k _ l a y o u t . h 5
o u t - d s e t _ c o n t i _ c o n t i . h 5 r e p a c k _ l a y o u t . h 5
o u t - f l e t c h e r _ a l l . h 5 r e p a c k _ l a y o u t . h 5
o u t - f l e t c h e r _ i n d i v i d u a l . h 5 r e p a c k _ l a y o u t . h 5
o u t - g l o b a l _ f i l t e r s . h 5 r e p a c k _ l a y o u t . h 5
o u t - g z i p _ a l l . h 5 r e p a c k _ l a y o u t . h 5
o u t - g z i p _ i n d i v i d u a l . h 5 r e p a c k _ l a y o u t . h 5
o u t - l a y o u t . h 5 r e p a c k _ l a y o u t . h 5
o u t - l a y o u t _ l o n g _ s w i t c h e s . h 5 r e p a c k _ l a y o u t . h 5
o u t - l a y o u t _ s h o r t _ s w i t c h e s . h 5 r e p a c k _ l a y o u t . h 5
o u t - o l d _ s t y l e _ l a y o u t _ s h o r t _ s w i t c h e s . h 5 r e p a c k _ l a y o u t . h 5
o u t - p l u g i n _ t e s t . h 5 r e p a c k _ l a y o u t . h 5
o u t - s h u f f l e _ a l l . h 5 r e p a c k _ l a y o u t . h 5
o u t - s h u f f l e _ i n d i v i d u a l . h 5 r e p a c k _ l a y o u t . h 5
o u t - u p g r a d e _ l a y o u t . h 5 r e p a c k _ l a y o u t o . h 5
o u t - c o n t i g _ s m a l l _ c o m p a . h 5 r e p a c k _ l a y o u t 2 . h 5
o u t - c o n t i g _ s m a l l _ f i x e d _ c o m p a . h 5 r e p a c k _ l a y o u t 2 . h 5
o u t - c k d i m _ b i g e r . h 5 r e p a c k _ l a y o u t 3 . h 5
o u t - c k d i m _ s m a l l e r . h 5 r e p a c k _ l a y o u t 3 . h 5
o u t - c h u n k 2 c h u n k . h 5 r e p a c k _ l a y o u t 3 . h 5
o u t - c h u n k 2 c o m p a . h 5 r e p a c k _ l a y o u t 3 . h 5
o u t - c h u n k 2 c o n t i . h 5 r e p a c k _ l a y o u t 3 . h 5
o u t - e r r o r 1 . h 5 r e p a c k _ l a y o u t 3 . h 5
o u t - e r r o r 2 . h 5 r e p a c k _ l a y o u t 3 . h 5
o u t - e r r o r 3 . h 5 r e p a c k _ l a y o u t 3 . h 5
o u t - e r r o r 4 . h 5 r e p a c k _ l a y o u t 3 . h 5
o u t - c o m m i t t e d _ d t . h 5 r e p a c k _ n a m e d _ d t y p e s . h 5
o u t - n b i t _ a d d . h 5 r e p a c k _ n b i t . h 5
o u t - n b i t _ c o p y . h 5 r e p a c k _ n b i t . h 5
o u t - n b i t _ r e m o v e . h 5 r e p a c k _ n b i t . h 5
o u t - a d d _ a l i g n m e n t . h 5 r e p a c k _ o b j s . h 5
o u t - a d d _ u s e r b l o c k . h 5 r e p a c k _ o b j s . h 5
o u t - o b j s . h 5 r e p a c k _ o b j s . h 5
o u t - g t _ m a l l o c s i z e . h 5 r e p a c k _ o b j s . h 5
o u t - b u g 1 8 1 4 . h 5 r e p a c k _ r e f s . h 5
o u t - s h u f f l e _ c o p y . h 5 r e p a c k _ s h u f f l e . h 5
o u t - s h u f f l e _ r e m o v e . h 5 r e p a c k _ s h u f f l e . h 5
o u t - s c a l e _ a d d . h 5 r e p a c k _ s o f f s e t . h 5
o u t - s c a l e _ c o p y . h 5 r e p a c k _ s o f f s e t . h 5
o u t - s c a l e _ r e m o v e . h 5 r e p a c k _ s o f f s e t . h 5
o u t - m e t a _ s h o r t _ M . m e t a _ s h o r t . h 5
o u t - m e t a _ s h o r t _ N . m e t a _ s h o r t . h 5
o u t - m e t a _ l o n g _ M . m e t a _ l o n g . h 5
o u t - m e t a _ l o n g _ N . m e t a _ l o n g . h 5
o u t - v d s _ c o m p a . 4 _ v d s . h 5
o u t - v d s _ c o n t i . 4 _ v d s . h 5
o u t - v d s _ c h u n k 2 x 5 x 8 . 3 _ 1 _ v d s . h 5
o u t - v d s _ c h u n k 3 x 6 x 9 . 2 _ v d s . h 5
o u t - v d s _ d s e t _ c h u n k 2 0 x 1 0 x 5 . 1 _ v d s . h 5
)
set ( LIST_TO_CLEAR ${ LIST_TO_CLEAR } ${ LIST_OTHER_TEST_FILES } )
foreach ( h5_file ${ LIST_HDF5_TEST_FILES } )
get_filename_component ( fname "${h5_file}" NAME )
set ( LIST_TO_CLEAR ${ LIST_TO_CLEAR }
$ { h 5 _ f i l e } . h 5
)
endforeach ( )
foreach ( h5_file ${ LIST_TST_TEST_FILES } )
get_filename_component ( fname "${h5_file}" NAME )
set ( LIST_TO_CLEAR ${ LIST_TO_CLEAR }
$ { h 5 _ f i l e } . t s t . o u t
$ { h 5 _ f i l e } . t s t . o u t . e r r
)
endforeach ( )
foreach ( h5_file ${ LIST_DDL_TEST_FILES } )
get_filename_component ( fname "${h5_file}" NAME )
set ( LIST_TO_CLEAR ${ LIST_TO_CLEAR }
$ { h 5 _ f i l e } . d d l . o u t
$ { h 5 _ f i l e } . d d l . o u t . e r r
)
endforeach ( )
add_test (
N A M E H 5 R E P A C K - c l e a r a l l - o b j e c t s
C O M M A N D $ { C M A K E _ C O M M A N D } - E r e m o v e $ { L I S T _ T O _ C L E A R }
)
2019-07-24 05:24:56 +08:00
set_tests_properties ( H5REPACK-clearall-objects PROPERTIES
F I X T U R E S _ S E T U P c l e a r _ h 5 r e p a c k
W O R K I N G _ D I R E C T O R Y " $ { P R O J E C T _ B I N A R Y _ D I R } / t e s t f i l e s "
)
2017-01-11 07:09:53 +08:00
endif ( )
2016-10-27 23:06:00 +08:00
ADD_HELP_TEST ( help 0 -h )
2019-07-15 22:44:14 +08:00
add_test ( NAME H5REPACK-testh5repack_detect_szip COMMAND ${ CMAKE_CROSSCOMPILING_EMULATOR } $< TARGET_FILE:testh5repack_detect_szip > )
2016-10-27 23:06:00 +08:00
if ( HDF5_ENABLE_SZIP_SUPPORT )
if ( HDF5_ENABLE_SZIP_ENCODING )
set ( passRegex "yes" )
set_tests_properties ( H5REPACK-testh5repack_detect_szip PROPERTIES PASS_REGULAR_EXPRESSION "yes" )
2017-01-11 07:09:53 +08:00
else ( )
2016-10-27 23:06:00 +08:00
set ( passRegex "no" )
set_tests_properties ( H5REPACK-testh5repack_detect_szip PROPERTIES PASS_REGULAR_EXPRESSION "no" )
2017-01-11 07:09:53 +08:00
endif ( )
else ( )
2016-10-27 23:06:00 +08:00
set ( passRegex "no" )
set_tests_properties ( H5REPACK-testh5repack_detect_szip PROPERTIES PASS_REGULAR_EXPRESSION "no" )
2017-01-11 07:09:53 +08:00
endif ( )
2016-10-27 23:06:00 +08:00
set_tests_properties ( H5REPACK-testh5repack_detect_szip PROPERTIES DEPENDS H5REPACK-clearall-objects )
2019-08-04 06:28:50 +08:00
set ( last_test "H5REPACK-testh5repack_detect_szip" )
2016-10-27 23:06:00 +08:00
2019-08-04 06:28:50 +08:00
# add_test (NAME H5REPACK-h5repacktest COMMAND ${CMAKE_CROSSCOMPILING_EMULATOR} $<TARGET_FILE:h5repacktest>)
# set_tests_properties (H5REPACK-h5repacktest PROPERTIES DEPENDS H5REPACK-testh5repack_detect_szip)
# set (last_test "H5REPACK-h5repacktest")
2016-10-27 23:06:00 +08:00
#
# The tests
# We use the files generated by h5repacktst
# Each run generates "<file>.out.h5" and the tool h5diff is used to
# compare the input and output files
#
# the tests are the same as the program h5repacktst, but run from the CLI
#
# See which filters are usable (and skip tests for filters we
# don't have). Do this by searching H5pubconf.h to see which
# filters are defined.
# detect whether the encoder is present.
2017-10-03 05:41:13 +08:00
# set (USE_FILTER_SZIP_ENCODER 0)
2016-10-27 23:06:00 +08:00
if ( HDF5_ENABLE_SZIP_ENCODING )
set ( USE_FILTER_SZIP_ENCODER ${ testh5repack_detect_szip } )
2017-01-11 07:09:53 +08:00
endif ( )
2016-10-27 23:06:00 +08:00
if ( H5_HAVE_FILTER_DEFLATE )
2017-10-03 05:41:13 +08:00
set ( USE_FILTER_DEFLATE 1 )
2017-01-11 07:09:53 +08:00
endif ( )
2016-10-27 23:06:00 +08:00
if ( H5_HAVE_FILTER_SZIP )
2017-10-03 05:41:13 +08:00
set ( USE_FILTER_SZIP 1 )
2017-01-11 07:09:53 +08:00
endif ( )
2016-10-27 23:06:00 +08:00
# copy files (these files have no filters)
ADD_H5_TEST ( fill "TEST" ${ FILE0 } )
ADD_H5_TEST ( objs "TEST" ${ FILE1 } )
ADD_H5_TEST ( attr "TEST" ${ FILE2 } )
ADD_H5_TEST ( hlink "TEST" ${ FILE3 } )
ADD_H5_TEST ( layout "TEST" ${ FILE4 } )
ADD_H5_TEST ( early "TEST" ${ FILE5 } )
2016-12-12 03:25:08 +08:00
# nested 8bit enum in both deflated and non-deflated datafiles
if ( NOT USE_FILTER_DEFLATE )
2017-01-11 07:09:53 +08:00
ADD_H5_TEST ( nested_8bit_enum "TEST" h5repack_nested_8bit_enum.h5 )
else ( )
ADD_H5_TEST ( nested_8bit_enum "TEST" h5repack_nested_8bit_enum_deflated.h5 )
endif ( )
2016-12-12 03:25:08 +08:00
2016-10-27 23:06:00 +08:00
# use $FILE4 to write some filters (this file has no filters)
# gzip with individual object
set ( arg ${ FILE4 } -f dset1:GZIP=1 -l dset1:CHUNK=20x10 )
set ( TESTTYPE "TEST" )
if ( NOT USE_FILTER_DEFLATE )
set ( TESTTYPE "SKIP" )
2017-01-11 07:09:53 +08:00
endif ( )
2016-10-27 23:06:00 +08:00
ADD_H5_TEST ( gzip_individual ${ TESTTYPE } ${ arg } )
# gzip for all
set ( arg ${ FILE4 } -f GZIP=1 )
set ( TESTTYPE "TEST" )
if ( NOT USE_FILTER_DEFLATE )
set ( TESTTYPE "SKIP" )
2017-01-11 07:09:53 +08:00
endif ( )
2016-10-27 23:06:00 +08:00
ADD_H5_TEST ( gzip_all ${ TESTTYPE } ${ arg } )
# szip with individual object
set ( arg ${ FILE4 } -f dset2:SZIP=8,EC -l dset2:CHUNK=20x10 )
set ( TESTTYPE "TEST" )
2017-10-03 05:41:13 +08:00
if ( NOT USE_FILTER_SZIP_ENCODER )
if ( NOT USE_FILTER_SZIP )
set ( TESTTYPE "SKIP" )
endif ( )
2017-01-11 07:09:53 +08:00
endif ( )
2016-10-27 23:06:00 +08:00
ADD_H5_TEST ( szip_individual ${ TESTTYPE } ${ arg } )
# szip for all
set ( arg ${ FILE4 } -f SZIP=8,NN )
set ( TESTTYPE "TEST" )
2017-10-03 05:41:13 +08:00
if ( NOT USE_FILTER_SZIP_ENCODER )
if ( NOT USE_FILTER_SZIP )
set ( TESTTYPE "SKIP" )
endif ( )
2017-01-11 07:09:53 +08:00
endif ( )
2016-10-27 23:06:00 +08:00
ADD_H5_TEST ( szip_all ${ TESTTYPE } ${ arg } )
# shuffle with individual object
set ( arg ${ FILE4 } -f dset2:SHUF -l dset2:CHUNK=20x10 )
ADD_H5_TEST ( shuffle_individual "TEST" ${ arg } )
# shuffle for all
set ( arg ${ FILE4 } -f SHUF )
ADD_H5_TEST ( shuffle_all "TEST" ${ arg } )
# fletcher32 with individual object
set ( arg ${ FILE4 } -f dset2:FLET -l dset2:CHUNK=20x10 )
ADD_H5_TEST ( fletcher_individual "TEST" ${ arg } )
# fletcher32 for all
set ( arg ${ FILE4 } -f FLET )
ADD_H5_TEST ( fletcher_all "TEST" ${ arg } )
# all filters
set ( arg ${ FILE4 } -f dset2:SHUF -f dset2:FLET -f dset2:SZIP=8,NN -f dset2:GZIP=1 -l dset2:CHUNK=20x10 )
set ( TESTTYPE "TEST" )
2017-10-03 05:41:13 +08:00
if ( NOT USE_FILTER_SZIP_ENCODER )
if ( NOT USE_FILTER_SZIP OR NOT USE_FILTER_DEFLATE )
set ( TESTTYPE "SKIP" )
endif ( )
2017-01-11 07:09:53 +08:00
endif ( )
2016-10-27 23:06:00 +08:00
ADD_H5_TEST ( all_filters ${ TESTTYPE } ${ arg } )
# verbose gzip with individual object
set ( arg ${ FILE11 } -v -f /dset_deflate:GZIP=9 )
set ( TESTTYPE "TEST" )
if ( NOT USE_FILTER_DEFLATE )
set ( TESTTYPE "SKIP" )
2017-01-11 07:09:53 +08:00
endif ( )
2016-10-27 23:06:00 +08:00
ADD_H5_CMP_TEST ( gzip_verbose_filters "O?...ing file[^\n]+\n" ${ TESTTYPE } 0 ${ arg } )
###########################################################
# the following tests assume the input files have filters
###########################################################
# szip copy
set ( arg ${ FILE7 } )
set ( TESTTYPE "TEST" )
2017-10-03 05:41:13 +08:00
if ( NOT USE_FILTER_SZIP_ENCODER )
if ( NOT USE_FILTER_SZIP )
set ( TESTTYPE "SKIP" )
endif ( )
2017-01-11 07:09:53 +08:00
endif ( )
2016-10-27 23:06:00 +08:00
ADD_H5_TEST ( szip_copy ${ TESTTYPE } ${ arg } )
# szip remove
set ( arg ${ FILE7 } --filter=dset_szip:NONE )
set ( TESTTYPE "TEST" )
2017-10-03 05:41:13 +08:00
if ( NOT USE_FILTER_SZIP_ENCODER )
if ( NOT USE_FILTER_SZIP )
set ( TESTTYPE "SKIP" )
endif ( )
2017-01-11 07:09:53 +08:00
endif ( )
2016-10-27 23:06:00 +08:00
ADD_H5_TEST ( szip_remove ${ TESTTYPE } ${ arg } )
# deflate copy
set ( arg ${ FILE8 } )
set ( TESTTYPE "TEST" )
if ( NOT USE_FILTER_DEFLATE )
set ( TESTTYPE "SKIP" )
2017-01-11 07:09:53 +08:00
endif ( )
2016-10-27 23:06:00 +08:00
ADD_H5_TEST ( deflate_copy ${ TESTTYPE } ${ arg } )
# deflate remove
set ( arg ${ FILE8 } -f dset_deflate:NONE )
set ( TESTTYPE "TEST" )
if ( NOT USE_FILTER_DEFLATE )
set ( TESTTYPE "SKIP" )
2017-01-11 07:09:53 +08:00
endif ( )
2016-10-27 23:06:00 +08:00
ADD_H5_TEST ( deflate_remove ${ TESTTYPE } ${ arg } )
# shuffle copy
set ( arg ${ FILE9 } )
ADD_H5_TEST ( shuffle_copy "TEST" ${ arg } )
# shuffle remove
set ( arg ${ FILE9 } -f dset_shuffle:NONE )
ADD_H5_TEST ( shuffle_remove "TEST" ${ arg } )
# fletcher32 copy
set ( arg ${ FILE10 } )
ADD_H5_TEST ( fletcher_copy "TEST" ${ arg } )
# fletcher32 remove
set ( arg ${ FILE10 } -f dset_fletcher32:NONE )
ADD_H5_TEST ( fletcher_remove "TEST" ${ arg } )
# nbit copy
set ( arg ${ FILE12 } )
ADD_H5_TEST ( nbit_copy "TEST" ${ arg } )
# nbit remove
set ( arg ${ FILE12 } -f dset_nbit:NONE )
ADD_H5_TEST ( nbit_remove "TEST" ${ arg } )
# nbit add
set ( arg ${ FILE12 } -f dset_int31:NBIT )
ADD_H5_TEST ( nbit_add "TEST" ${ arg } )
# scaleoffset copy
set ( arg ${ FILE13 } )
ADD_H5_TEST ( scale_copy "TEST" ${ arg } )
# scaleoffset add
set ( arg ${ FILE13 } -f dset_none:SOFF=31,IN )
ADD_H5_TEST ( scale_add "TEST" ${ arg } )
# scaleoffset remove
set ( arg ${ FILE13 } -f dset_scaleoffset:NONE )
ADD_H5_TEST ( scale_remove "TEST" ${ arg } )
# remove all filters
set ( arg ${ FILE11 } -f NONE )
set ( TESTTYPE "TEST" )
2017-10-03 05:41:13 +08:00
if ( NOT USE_FILTER_SZIP_ENCODER )
if ( NOT USE_FILTER_SZIP OR NOT USE_FILTER_DEFLATE )
set ( TESTTYPE "SKIP" )
endif ( )
2017-01-11 07:09:53 +08:00
endif ( )
2016-10-27 23:06:00 +08:00
ADD_H5_TEST ( remove_all ${ TESTTYPE } ${ arg } )
#filter conversions
set ( arg ${ FILE8 } -f dset_deflate:SZIP=8,NN )
set ( TESTTYPE "TEST" )
2017-10-03 05:41:13 +08:00
if ( NOT USE_FILTER_SZIP_ENCODER )
if ( NOT USE_FILTER_SZIP OR NOT USE_FILTER_DEFLATE )
set ( TESTTYPE "SKIP" )
endif ( )
2017-01-11 07:09:53 +08:00
endif ( )
2016-10-27 23:06:00 +08:00
ADD_H5_TEST ( deflate_convert ${ TESTTYPE } ${ arg } )
set ( arg ${ FILE7 } -f dset_szip:GZIP=1 )
set ( TESTTYPE "TEST" )
2017-10-03 05:41:13 +08:00
if ( NOT USE_FILTER_SZIP_ENCODER )
if ( NOT USE_FILTER_SZIP OR NOT USE_FILTER_DEFLATE )
set ( TESTTYPE "SKIP" )
endif ( )
2017-01-11 07:09:53 +08:00
endif ( )
2016-10-27 23:06:00 +08:00
ADD_H5_TEST ( szip_convert ${ TESTTYPE } ${ arg } )
#limit
set ( arg ${ FILE4 } -f GZIP=1 -m 1024 )
set ( TESTTYPE "TEST" )
if ( NOT USE_FILTER_DEFLATE )
set ( TESTTYPE "SKIP" )
2017-01-11 07:09:53 +08:00
endif ( )
2016-10-27 23:06:00 +08:00
ADD_H5_DMP_TEST ( deflate_limit ${ TESTTYPE } 0 ${ arg } )
#file
set ( arg ${ FILE4 } -e ${ INFO_FILE } )
set ( TESTTYPE "TEST" )
if ( NOT USE_FILTER_DEFLATE )
set ( TESTTYPE "SKIP" )
2017-01-11 07:09:53 +08:00
endif ( )
2016-10-27 23:06:00 +08:00
ADD_H5_TEST ( deflate_file ${ TESTTYPE } ${ arg } )
2017-05-23 02:10:40 +08:00
#crtorder
set ( arg tordergr.h5 -L )
set ( TESTTYPE "TEST" )
ADD_H5_DMP_TEST ( crtorder ${ TESTTYPE } 0 ${ arg } )
2017-08-02 23:53:17 +08:00
###################################################################################################
# Testing paged aggregation related options:
# -G pagesize
# -P 1 or 0
# -S strategy
# -T threshold
#
# The testfiles used are generated by test/gen_filespace.c and the file names are prepended with "h5repack_":
# (1) "fsm_aggr_nopersist.h5" /* H5F_FSPACE_STRATEGY_FSM_AGGR + not persisting free-space */
# (2) "fsm_aggr_persist.h5" /* H5F_FSPACE_STRATEGY_FSM_AGGR + persisting free-space */
# (3) "paged_nopersist.h5" /* H5F_FSPACE_STRATEGY_PAGE + not persisting free-space */
# (4) "paged_persist.h5" /* H5F_FSPACE_STRATEGY_PAGE + persisting free-space */
# (5) "aggr.h5" /* H5F_FSPACE_STRATEGY_AGGR */
# (6) "none.h5" /* H5F_FSPACE_STRATEGY_NONE */
#
#####################################################################################################
#
set ( arg h5repack_fsm_aggr_nopersist.h5 -S PAGE -P 1 )
set ( TESTTYPE "TEST" )
ADD_H5_STAT_TEST ( SP_PAGE ${ TESTTYPE } 0 SP ${ arg } )
set ( arg h5repack_fsm_aggr_persist.h5 -S AGGR )
set ( TESTTYPE "TEST" )
ADD_H5_STAT_TEST ( S_AGGR ${ TESTTYPE } 0 S ${ arg } )
set ( arg h5repack_none.h5 -S PAGE -T 10 -G 2048 )
set ( TESTTYPE "TEST" )
ADD_H5_STAT_TEST ( STG_PAGE ${ TESTTYPE } 0 STG ${ arg } )
set ( arg h5repack_paged_nopersist.h5 -G 512 -S AGGR )
set ( TESTTYPE "TEST" )
ADD_H5_STAT_TEST ( GS_AGGR ${ TESTTYPE } 0 GS ${ arg } )
set ( arg h5repack_paged_persist.h5 -S NONE -P 1 )
set ( TESTTYPE "TEST" )
ADD_H5_STAT_TEST ( SP_NONE ${ TESTTYPE } 0 SP ${ arg } )
set ( arg h5repack_aggr.h5 -S FSM_AGGR -P 1 -T 5 )
set ( TESTTYPE "TEST" )
ADD_H5_STAT_TEST ( SPT_FSM_AGGR ${ TESTTYPE } 0 SPT ${ arg } )
2016-10-27 23:06:00 +08:00
#########################################################
# layout options (these files have no filters)
#########################################################
ADD_H5_VERIFY_TEST ( dset2_chunk_20x10 "TEST" 0 ${ FILE4 } dset2 CHUNKED --layout=dset2:CHUNK=20x10 )
ADD_H5_VERIFY_TEST ( chunk_20x10 "TEST" 1 ${ FILE4 } null CHUNKED -l CHUNK=20x10 )
ADD_H5_VERIFY_TEST ( dset2_conti "TEST" 0 ${ FILE4 } dset2 CONTIGUOUS -l dset2:CONTI )
ADD_H5_VERIFY_TEST ( conti "TEST" 1 ${ FILE4 } null CONTIGUOUS -l CONTI )
ADD_H5_VERIFY_TEST ( dset2_compa "TEST" 0 ${ FILE4 } dset2 COMPACT -l dset2:COMPA )
ADD_H5_VERIFY_TEST ( compa "TEST" 1 ${ FILE4 } null COMPACT -l COMPA )
2019-04-15 22:46:29 +08:00
ADD_H5_MASK_TEST ( dset2_chunk_20x10-errstk "TEST" 0 "dimensionality of chunks doesn't match the dataspace" ${ FILE4 } --layout=dset2:CHUNK=20x10x5 --enable-error-stack )
2016-10-27 23:06:00 +08:00
################################################################
# layout conversions (file has no filters)
###############################################################
ADD_H5_VERIFY_TEST ( dset_compa_conti "TEST" 0 ${ FILE4 } dset_compact CONTIGUOUS -l dset_compact:CONTI )
ADD_H5_VERIFY_TEST ( dset_compa_chunk "TEST" 0 ${ FILE4 } dset_compact CHUNKED -l dset_compact:CHUNK=2x5 )
ADD_H5_VERIFY_TEST ( dset_compa_compa "TEST" 0 ${ FILE4 } dset_compact COMPACT -l dset_compact:COMPA )
ADD_H5_VERIFY_TEST ( dset_conti_compa "TEST" 0 ${ FILE4 } dset_contiguous COMPACT -l dset_contiguous:COMPA )
ADD_H5_VERIFY_TEST ( dset_conti_chunk "TEST" 0 ${ FILE4 } dset_contiguous CHUNKED -l dset_contiguous:CHUNK=3x6 )
ADD_H5_VERIFY_TEST ( dset_conti_conti "TEST" 0 ${ FILE4 } dset_contiguous CONTIGUOUS -l dset_contiguous:CONTI )
ADD_H5_VERIFY_TEST ( chunk_compa "TEST" 0 ${ FILE4 } dset_chunk COMPACT -l dset_chunk:COMPA )
ADD_H5_VERIFY_TEST ( chunk_conti "TEST" 0 ${ FILE4 } dset_chunk CONTIGUOUS -l dset_chunk:CONTI )
ADD_H5_VERIFY_TEST ( chunk_18x13 "TEST" 0 ${ FILE4 } dset_chunk CHUNKED -l dset_chunk:CHUNK=18x13 )
# test convert small size dataset ( < 1k) to compact layout without -m
ADD_H5_VERIFY_TEST ( contig_small_compa "TEST" 0 ${ FILE18 } contig_small COMPACT -l contig_small:COMPA )
ADD_H5_VERIFY_TEST ( contig_small_fixed_compa "TEST" 0 ${ FILE18 } chunked_small_fixed COMPACT -l chunked_small_fixed:COMPA )
#---------------------------------------------------------------------------
# Test file contains chunked datasets (need multiple dsets) with
# unlimited max dims. (HDFFV-7933)
# Use first dset to test.
#---------------------------------------------------------------------------
# chunk to chunk - specify chunk dim bigger than any current dim
2019-08-04 06:28:50 +08:00
ADD_H5_VERIFY_TEST ( chunk2chunk "TEST" 0 ${ FILE19 } chunk_unlimit1 CHUNK -l chunk_unlimit1:CHUNK=100x300 )
2016-10-27 23:06:00 +08:00
# chunk to contiguous
2019-08-04 06:28:50 +08:00
ADD_H5_VERIFY_TEST ( chunk2conti "TEST" 0 ${ FILE19 } chunk_unlimit1 CONTI -l chunk_unlimit1:CONTI )
2016-10-27 23:06:00 +08:00
# chunk to compact - convert big dataset (should be > 64k) for this purpose,
# should remain as original layout (chunk)
2019-08-04 06:28:50 +08:00
ADD_H5_VERIFY_TEST ( chunk2compa "TEST" 0 ${ FILE19 } chunk_unlimit1 CHUNK -l chunk_unlimit1:COMPA )
2016-10-27 23:06:00 +08:00
#--------------------------------------------------------------------------
# Test -f for some specific cases. Chunked dataset with unlimited max dims.
# (HDFFV-8012)
#--------------------------------------------------------------------------
# - should not fail
# - should not change max dims from unlimit
# chunk dim is bigger than dataset dim. ( dset size < 64k )
2019-08-04 06:28:50 +08:00
ADD_H5_VERIFY_TEST ( error1 "TEST" 0 ${ FILE19 } chunk_unlimit1 H5S_UNLIMITED -f chunk_unlimit1:NONE )
2016-10-27 23:06:00 +08:00
# chunk dim is bigger than dataset dim. ( dset size > 64k )
2019-08-04 06:28:50 +08:00
ADD_H5_VERIFY_TEST ( error2 "TEST" 0 ${ FILE19 } chunk_unlimit2 H5S_UNLIMITED -f chunk_unlimit2:NONE )
2016-10-27 23:06:00 +08:00
# chunk dims are smaller than dataset dims. ( dset size < 64k )
2019-08-04 06:28:50 +08:00
ADD_H5_VERIFY_TEST ( error3 "TEST" 0 ${ FILE19 } chunk_unlimit3 H5S_UNLIMITED -f chunk_unlimit3:NONE )
2016-10-27 23:06:00 +08:00
# file input - should not fail
2019-08-04 06:28:50 +08:00
ADD_H5_TEST ( error4 "TEST" ${ FILE19 } -f NONE )
2016-10-27 23:06:00 +08:00
#--------------------------------------------------------------------------
# Test base: Convert CHUNK to CONTI for a chunked dataset with small dataset
# (dset size < 64K) and with unlimited max dims on a condition as follow.
# (HDFFV-8214)
#--------------------------------------------------------------------------
# chunk dim is bigger than dataset dim. should succeed.
2019-08-04 06:28:50 +08:00
ADD_H5_VERIFY_TEST ( ckdim_biger "TEST" 0 ${ FILE19 } chunk_unlimit2 CONTI -l chunk_unlimit2:CONTI )
2016-10-27 23:06:00 +08:00
# chunk dim is smaller than dataset dim. should succeed.
2019-08-04 06:28:50 +08:00
ADD_H5_VERIFY_TEST ( ckdim_smaller "TEST" 0 ${ FILE19 } chunk_unlimit3 CONTI -l chunk_unlimit3:CONTI )
2016-10-27 23:06:00 +08:00
# Native option
# Do not use FILE1, as the named dtype will be converted to native, and h5diff will
# report a difference.
ADD_H5_TEST ( native_fill "TEST" ${ FILE0 } -n )
ADD_H5_TEST ( native_attr "TEST" ${ FILE2 } -n )
# latest file format with long switches. use FILE4=h5repack_layout.h5 (no filters)
set ( arg --layout CHUNK=20x10 --filter GZIP=1 --minimum=10 --native --latest --compact=8 --indexed=6 --ssize=8[:dtype] )
set ( TESTTYPE "TEST" )
if ( NOT USE_FILTER_DEFLATE )
set ( TESTTYPE "SKIP" )
2017-01-11 07:09:53 +08:00
endif ( )
2016-10-27 23:06:00 +08:00
ADD_H5_VERIFY_TEST ( layout_long_switches ${ TESTTYPE } 1 ${ FILE4 } null CHUNKED ${ arg } )
# latest file format with short switches. use FILE4=h5repack_layout.h5 (no filters)
set ( arg -l CHUNK=20x10 -f GZIP=1 -m 10 -n -L -c 8 -d 6 -s 8[:dtype] )
set ( TESTTYPE "TEST" )
if ( NOT USE_FILTER_DEFLATE )
set ( TESTTYPE "SKIP" )
2017-01-11 07:09:53 +08:00
endif ( )
2016-10-27 23:06:00 +08:00
ADD_H5_VERIFY_TEST ( layout_short_switches ${ TESTTYPE } 1 ${ FILE4 } null CHUNKED ${ arg } )
# several global filters
set ( arg ${ FILE4 } --filter GZIP=1 --filter SHUF )
set ( TESTTYPE "TEST" )
if ( NOT USE_FILTER_DEFLATE )
set ( TESTTYPE "SKIP" )
2017-01-11 07:09:53 +08:00
endif ( )
2016-10-27 23:06:00 +08:00
ADD_H5_TEST ( global_filters ${ TESTTYPE } ${ arg } )
# syntax of -i infile -o outfile
# latest file format with short switches. use FILE4=h5repack_layout.h5 (no filters)
set ( arg ${ FILE4 } -l CHUNK=20x10 -f GZIP=1 -m 10 -n -L -c 8 -d 6 -s 8[:dtype] )
set ( TESTTYPE "LEGACY" )
if ( NOT USE_FILTER_DEFLATE )
set ( TESTTYPE "SKIP" )
2017-01-11 07:09:53 +08:00
endif ( )
2016-10-27 23:06:00 +08:00
ADD_H5_TEST_OLD ( old_style_layout_short_switches ${ TESTTYPE } ${ arg } )
# add a userblock to file
set ( arg ${ FILE1 } -u ${ PROJECT_BINARY_DIR } /testfiles/ublock.bin -b 2048 )
ADD_H5_TEST ( add_userblock "TEST" ${ arg } )
# add alignment
set ( arg ${ FILE1 } -t 1 -a 1 )
ADD_H5_TEST ( add_alignment "TEST" ${ arg } )
# Check repacking file with old version of layout message (should get upgraded
# to new version and be readable, etc.)
ADD_H5_TEST ( upgrade_layout "TEST" ${ FILE14 } )
# test for datum size > H5TOOLS_MALLOCSIZE
2017-01-27 01:59:34 +08:00
if ( NOT USE_FILTER_DEFLATE )
set ( TESTTYPE "SKIP" )
endif ( )
ADD_H5_TEST ( gt_mallocsize ${ TESTTYPE } ${ FILE1 } -f GZIP=1 )
2016-10-27 23:06:00 +08:00
# Check repacking file with committed datatypes in odd configurations
ADD_H5_TEST ( committed_dt "TEST" ${ FILE15 } )
# tests family driver (file is located in common testfiles folder, uses TOOLTEST1
ADD_H5_TEST ( family "TEST" ${ FILE16 } )
# test various references (bug 1814 and 1726)
ADD_H5_TEST ( bug1814 "TEST" ${ FILE_REF } )
# test attribute with various references (bug1797 / HDFFV-5932)
# the references in attribute of compund or vlen datatype
ADD_H5_TEST ( HDFFV-5932 "TEST" ${ FILE_ATTR_REF } )
# Add test for memory leak in attirbute. This test is verified by CTEST.
# 1. leak from vlen string
# 2. leak from compound type without reference member
# (HDFFV-7840, )
# Note: this test is experimental for sharing test file among tools
ADD_H5_TEST ( HDFFV-7840 "TEST" h5diff_attr1.h5 )
# tests for metadata block size option ('-M')
ADD_H5_TEST_META ( meta_short h5repack_layout.h5 -M 8192 )
ADD_H5_TEST_META ( meta_long h5repack_layout.h5 --metadata_block_size=8192 )
# VDS tests
################################################################
# layout conversions
###############################################################
set ( TESTTYPE "TEST" )
if ( NOT USE_FILTER_DEFLATE )
set ( TESTTYPE "SKIP" )
2017-01-11 07:09:53 +08:00
endif ( )
2016-10-27 23:06:00 +08:00
ADD_H5_VERIFY_VDS ( vds_dset_chunk20x10x5 ${ TESTTYPE } 0 ${ FILEV1 } vds_dset CHUNKED -l vds_dset:CHUNK=20x10x5 )
set ( TESTTYPE "TEST" )
if ( NOT USE_FILTER_DEFLATE )
set ( TESTTYPE "SKIP" )
2017-01-11 07:09:53 +08:00
endif ( )
2016-10-27 23:06:00 +08:00
ADD_H5_VERIFY_VDS ( vds_chunk2x5x8 ${ TESTTYPE } 0 ${ FILEV3_1 } vds_dset CHUNKED -l vds_dset:CHUNK=2x5x8 )
set ( TESTTYPE "TEST" )
if ( NOT USE_FILTER_DEFLATE )
set ( TESTTYPE "SKIP" )
2017-01-11 07:09:53 +08:00
endif ( )
2016-10-27 23:06:00 +08:00
ADD_H5_VERIFY_VDS ( vds_chunk3x6x9 ${ TESTTYPE } 0 ${ FILEV2 } vds_dset CHUNKED -l vds_dset:CHUNK=3x6x9 )
set ( TESTTYPE "TEST" )
if ( NOT USE_FILTER_DEFLATE )
set ( TESTTYPE "SKIP" )
2017-01-11 07:09:53 +08:00
endif ( )
2016-10-27 23:06:00 +08:00
ADD_H5_VERIFY_VDS ( vds_compa ${ TESTTYPE } 0 ${ FILEV4 } vds_dset COMPACT -l vds_dset:COMPA )
set ( TESTTYPE "TEST" )
if ( NOT USE_FILTER_DEFLATE )
set ( TESTTYPE "SKIP" )
2017-01-11 07:09:53 +08:00
endif ( )
2016-10-27 23:06:00 +08:00
ADD_H5_VERIFY_VDS ( vds_conti ${ TESTTYPE } 0 ${ FILEV4 } vds_dset CONTIGUOUS -l vds_dset:CONTI )
2018-03-06 23:02:32 +08:00
##############################################################################
### V E R S I O N B O U N D S T E S T S
##############################################################################
# -j 0 -k 2, superblock will be 0
ADD_H5_VERIFY_SUPERBLOCK ( SB_IS_0 h5repack_layout.h5 0 2 0 )
# -j 1 -k 2, superblock will be 2
ADD_H5_VERIFY_SUPERBLOCK ( SB_IS_2 h5repack_layout.h5 1 2 2 )
# -j 2 -k 2, superblock will be 3
ADD_H5_VERIFY_SUPERBLOCK ( SB_IS_3 h5repack_layout.h5 2 2 3 )
# -j 0 -k 1, file cannot be opened
2018-03-08 05:46:58 +08:00
ADD_H5_VERIFY_INVALIDBOUNDS ( latest_latest_invalid bounds_latest_latest.h5 0 1 )
2018-03-06 23:02:32 +08:00
2016-10-27 23:06:00 +08:00
##############################################################################
### P L U G I N T E S T S
##############################################################################
2018-11-07 05:45:58 +08:00
if ( BUILD_SHARED_LIBS )
2017-09-08 02:28:45 +08:00
ADD_H5_UD_TEST ( plugin_version_test 0 h5repack_layout.h5 -v -f UD=260,0,4,9, ${ H5_VERS_MAJOR } , ${ H5_VERS_MINOR } , ${ H5_VERS_RELEASE } )
ADD_H5_UD_TEST ( plugin_test 0 h5repack_layout.h5 -v -f UD=257,0,1,9 )
2016-10-27 23:06:00 +08:00
ADD_H5_UD_TEST ( plugin_none 0 h5repack_layout.UD.h5 -v -f NONE )
# check for no parameters
2017-10-10 02:23:02 +08:00
ADD_H5_UD_TEST ( plugin_zero 0 h5repack_layout.h5 -v -f UD=250,0,0 )
2018-11-07 05:45:58 +08:00
endif ( )
2016-10-27 23:06:00 +08:00
2018-12-21 05:11:17 +08:00
##############################################################################
##############################################################################
### V F D T E S T S ###
##############################################################################
##############################################################################
if ( HDF5_TEST_VFD )
include ( CMakeVFDTests.cmake )
endif ( )