-
Notifications
You must be signed in to change notification settings - Fork 7
/
vol_test.sh
executable file
·109 lines (90 loc) · 3.79 KB
/
vol_test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#!/usr/bin/bash -l
set -e
ABT_DIR=${HOME}/Argobots/1.1
ASYNC_DIR=${HOME}/ASYNC_VOL
CACHE_DIR=${HOME}/CACHE_VOL
HDF5_DIR=${HOME}/HDF5/1.14.1-2-thread
HDF5_ROOT=${HDF5_DIR}
LOGVOL_DIR=${HOME}/LOG_VOL
CACHE_CONF=${HOME}/LOG_VOL/cache.cfg
export MPICH_MAX_THREAD_SAFETY=multiple
export HDF5_USE_FILE_LOCKING=FALSE
# export TEST_NATIVE_VOL_ONLY=1
CASE="async"
CASE="cache"
CASE="cache+async"
CASE="log"
CASE="log+async"
CASE="log+cache"
CASE="log+cache+async"
CASE="all"
if test $CASE = "async" || test $CASE = "all" ; then
echo "-----------------------------------------------------------"
echo " Test Async VOL"
echo "-----------------------------------------------------------"
export LD_LIBRARY_PATH=${ASYNC_DIR}/lib:${ABT_DIR}/lib:${HDF5_DIR}/lib
export HDF5_PLUGIN_PATH=${ASYNC_DIR}/lib
export HDF5_VOL_CONNECTOR="async under_vol=0;under_info={}"
make -s check
make -s ptest
fi
if test $CASE = "cache" || test $CASE = "all" ; then
echo "-----------------------------------------------------------"
echo " Test Cache VOL"
echo "-----------------------------------------------------------"
export LD_LIBRARY_PATH=${CACHE_DIR}/lib:${ASYNC_DIR}/lib:${ABT_DIR}/lib:${HDF5_DIR}/lib
export HDF5_PLUGIN_PATH=${CACHE_DIR}/lib
export HDF5_VOL_CONNECTOR="cache_ext config=${CACHE_CONF};under_vol=0;under_info={}"
make -s check
make -s ptest
fi
if test $CASE = "cache+async" || test $CASE = "all" ; then
echo "-----------------------------------------------------------"
echo " Test Cache and Async VOL"
echo "-----------------------------------------------------------"
export LD_LIBRARY_PATH=${CACHE_DIR}/lib:${ASYNC_DIR}/lib:${ABT_DIR}/lib:${HDF5_DIR}/lib
export HDF5_PLUGIN_PATH=${CACHE_DIR}/lib:${ASYNC_DIR}/lib
export HDF5_VOL_CONNECTOR="cache_ext config=${CACHE_CONF};under_vol=512;under_info={under_vol=0;under_info={}}"
make -s check
make -s ptest
fi
if test $CASE = "log" || test $CASE = "all" ; then
echo "-----------------------------------------------------------"
echo " Test Log VOL"
echo "-----------------------------------------------------------"
export HDF5_PLUGIN_PATH=${LOGVOL_DIR}/lib
export LD_LIBRARY_PATH=${LOGVOL_DIR}/lib:${HDF5_DIR}/lib
export HDF5_VOL_CONNECTOR="LOG under_vol=0;under_info={}"
make -s check
make -s ptest
fi
if test $CASE = "log+async" || test $CASE = "all" ; then
echo "-----------------------------------------------------------"
echo " Test Log VOL + Async VOL"
echo "-----------------------------------------------------------"
export HDF5_PLUGIN_PATH=${LOGVOL_DIR}/lib:${ASYNC_DIR}/lib
export LD_LIBRARY_PATH=${LOGVOL_DIR}/lib:${ASYNC_DIR}/lib:${ABT_DIR}/lib:${HDF5_DIR}/lib
export HDF5_VOL_CONNECTOR="LOG under_vol=512;under_info={under_vol=0;under_info={}}"
make -s check
make -s ptest
fi
if test $CASE = "log+cache" || test $CASE = "all" ; then
echo "-----------------------------------------------------------"
echo " Test Log VOL + Cache VOL"
echo "-----------------------------------------------------------"
export HDF5_PLUGIN_PATH=${LOGVOL_DIR}/lib:${CACHE_DIR}/lib
export LD_LIBRARY_PATH=${LOGVOL_DIR}/lib:${CACHE_DIR}/lib:${ASYNC_DIR}/lib:${ABT_DIR}/lib:${HDF5_DIR}/lib
export HDF5_VOL_CONNECTOR="LOG under_vol=513;under_info={config=${CACHE_CONF};under_vol=0;under_info={}}"
make -s check
make -s ptest
fi
if test $CASE = "log+cache+async" || test $CASE = "all" ; then
echo "-----------------------------------------------------------"
echo " Test Log VOL + Cache VOL + Async VOL"
echo "-----------------------------------------------------------"
export HDF5_PLUGIN_PATH=${LOGVOL_DIR}/lib:${CACHE_DIR}/lib:${ASYNC_DIR}/lib
export LD_LIBRARY_PATH=${LOGVOL_DIR}/lib:${CACHE_DIR}/lib:${ASYNC_DIR}/lib:${ABT_DIR}/lib:${HDF5_DIR}/lib
export HDF5_VOL_CONNECTOR="LOG under_vol=513;under_info={config=${CACHE_CONF};under_vol=512;under_info={under_vol=0;under_info={}}}"
make -s check
make -s ptest
fi