forked from tbeu/matio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtravis_script.sh
executable file
·48 lines (42 loc) · 1.46 KB
/
travis_script.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
#!/bin/bash
set -ex
if [[ "$COVERITY_SCAN_BRANCH" == 1 ]]; then
exit 0
fi
if [[ "${USE_CMAKE:-no}" == "no" ]]; then
make "CPPFLAGS=-DMAX_RANK=$MAX_RANK" -j8
make check
else
BUILD_DIR=$HOME/matio_cmake
pushd $BUILD_DIR
cmake --build . -- -j8
popd
mkdir -p test
mkdir -p tools
if [[ "${USE_CONAN:-no}" == "no" ]]; then
ln -s $BUILD_DIR/test_snprintf ./test/test_snprintf
ln -s $BUILD_DIR/test_mat ./test/test_mat
ln -s $BUILD_DIR/matdump ./tools/matdump
else
ln -s $BUILD_DIR/bin/test_snprintf ./test/test_snprintf
ln -s $BUILD_DIR/bin/test_mat ./test/test_mat
ln -s $BUILD_DIR/bin/matdump ./tools/matdump
fi
fi
./test/test_snprintf
./test/test_mat -H
./test/test_mat -L
./test/test_mat -V
./tools/matdump -v -H
./tools/matdump -V
./tools/matdump -d ./MSL/Modelica/Resources/Data/Tables/test_v6.mat s
if [[ "$WITH_ZLIB" != "no" ]];
then ./tools/matdump -d ./MSL/Modelica/Resources/Data/Tables/test_v7.mat s
for f in ./matfilerw/src/test/resources/*.mat; do ./tools/matdump -v $f; done
for f in ./matfilerw/src/test/resources/*.mat; do ./tools/matdump -v -d -f whos -h $f; done
for f in ./matfilerw/src/test/resources/mcos/*.mat; do ./tools/matdump -v $f; done
for f in ./matfilerw/src/test/resources/mcos/*.mat; do ./tools/matdump -v -f whos $f; done
fi
if [[ "$ENABLE_MAT73" == "yes" ]]; then
./tools/matdump -d ./MSL/Modelica/Resources/Data/Tables/test_v7.3.mat s
fi