File tree Expand file tree Collapse file tree 10 files changed +60
-45
lines changed Expand file tree Collapse file tree 10 files changed +60
-45
lines changed Original file line number Diff line number Diff line change @@ -24,10 +24,10 @@ jobs:
24
24
run : |
25
25
sudo apt-get install --quiet -y --no-install-recommends gfortran liblapacke-dev libopenblas-dev
26
26
- name : Execute Tests using Pure V Backend with Vlib Math
27
- run : cd vsl; make test
27
+ run : cd vsl; ./bin/ test
28
28
- name : Execute Tests using Pure V Backend with Pure V Math
29
- run : cd vsl; VMATH_BACKEND=ON make test
29
+ run : cd vsl; ./bin/ test --use-vmath
30
30
- name : Execute Tests using Open BLAS Backend
31
- run : cd vsl; CBLAS_BACKEND=ON make test
31
+ run : cd vsl; ./bin/ test --use-cblas
32
32
- name : Execute Tests using Open BLAS Backend and Pure V Math
33
- run : cd vsl; VMATH_BACKEND=ON CBLAS_BACKEND=ON make test
33
+ run : cd vsl; ./bin/test --use-vmath --use-cblas
Original file line number Diff line number Diff line change @@ -26,10 +26,10 @@ jobs:
26
26
run : |
27
27
sudo apt-get install --quiet -y --no-install-recommends gfortran liblapacke-dev libopenblas-dev
28
28
- name : Execute Tests using Pure V Backend with Vlib Math
29
- run : cd vsl; make test
29
+ run : cd vsl; ./bin/ test
30
30
- name : Execute Tests using Pure V Backend with Pure V Math
31
- run : cd vsl; VMATH_BACKEND=ON make test
31
+ run : cd vsl; ./bin/ test --use-vmath
32
32
- name : Execute Tests using Open BLAS Backend
33
- run : cd vsl; CBLAS_BACKEND=ON make test
33
+ run : cd vsl; ./bin/ test --use-cblas
34
34
- name : Execute Tests using Open BLAS Backend and Pure V Math
35
- run : cd vsl; VMATH_BACKEND=ON CBLAS_BACKEND=ON make test
35
+ run : cd vsl; ./bin/test --use-vmath --use-cblas
Original file line number Diff line number Diff line change
1
+ disable =SC1090 # Non-constant source
2
+ disable =SC1091 # Not specified as input
3
+ disable =SC2034 # Unused variables (they are used but in other scripts)
4
+ disable =SC2154 # Referenced, but not assigned
Original file line number Diff line number Diff line change 1
1
MIT License
2
2
3
- Copyright (c) 2019-2020 Ulises Jeremias Cornejo Fandos
3
+ Copyright (c) 2019-2021 Ulises Jeremias Cornejo Fandos
4
4
5
5
Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
of this software and associated documentation files (the "Software"), to deal
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ Done. Installation completed.
138
138
To test the module, just type the following command:
139
139
140
140
``` sh
141
- $ make test # or ./bin/test
141
+ $ ./bin/ test # execute ` ./bin/test -h` to know more about the test command
142
142
```
143
143
144
144
## Contributors
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env sh
2
2
3
- # # Copyright (C) 2019-2020 Ulises Jeremias Cornejo Fandos
3
+ # # Copyright (C) 2019-2021 Ulises Jeremias Cornejo Fandos
4
4
# # Licensed under MIT
5
5
# #
6
6
# # @script.name [OPTION] ARGUMENTS...
12
12
# # --log-file=LOG_FILE_PATH Logs file path, is /tmp/install_progress_log_$(date +'%m-%d-%y_%H:%M:%S').txt by default.
13
13
# #
14
14
15
- ROOT=$( dirname $0 )
15
+ ROOT=$( dirname " $0 " )
16
16
17
17
source " ${ROOT} /util/opts/opts.sh" || exit
18
18
source " ${ROOT} /util/logs.sh" || exit
@@ -45,14 +45,14 @@ docker_ini() {
45
45
46
46
if [[ -n " ${build} " ]] || [[ " $( docker images ${IMAGE_NAME_ARRAY[0]} | grep ${IMAGE_NAME_ARRAY[1]} 2> /dev/null) " = " " ]]; then
47
47
docker build -f Dockerfile -t " ${IMAGE_NAME} " \
48
- --build-arg USERNAME=${USER} \
48
+ --build-arg USERNAME=" ${USER} " \
49
49
.
50
50
fi
51
51
}
52
52
53
53
# docker run
54
54
docker_run () {
55
- docker run --rm -it -e DISPLAY=:${XPORT} \
55
+ docker run --rm -it -e DISPLAY=:" ${XPORT} " \
56
56
-v " $( pwd) " :" /home/${USER} /vsl" \
57
57
-w " /home/${USER} " \
58
58
${USER_FLAG} \
@@ -65,5 +65,5 @@ docker_ini
65
65
docker_run
66
66
67
67
# Help shown by default
68
- [[ -z " $documentation " ] ] && parse_documentation
68
+ [ -z " $documentation " ] && parse_documentation
69
69
echo " $documentation "
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
+ # # Copyright (C) 2019-2021 Ulises Jeremias Cornejo Fandos
4
+ # # Licensed under MIT
5
+ # #
6
+ # # @script.name [OPTION] ARGUMENTS...
7
+ # #
8
+ # # Options:
9
+ # # -h, --help Prints usage and example
10
+ # # --stats Exeute with stats
11
+ # # --use-cblas Execute tests using cblas
12
+ # # --use-vmath Use pure V math library as backend
13
+ # # --use-autofree Execute tests using atofree
14
+ # #
15
+
16
+ ROOT=$( dirname " $0 " )
17
+
18
+ source " ${ROOT} /util/opts/opts.sh" || exit
19
+ source " ${ROOT} /util/logs.sh" || exit
20
+
3
21
set -eo pipefail
4
22
5
23
flags=" "
6
24
7
- if [[ -n " ${CBLAS_BACKEND } " ]]; then
25
+ if [[ -n " ${use_cblas } " ]]; then
8
26
echo " Running tests using Open BLAS"
9
27
flags=" ${flags} -d cblas"
10
28
fi
11
29
12
- if [[ -n " ${VMATH_BACKEND } " ]]; then
30
+ if [[ -n " ${use_vmath } " ]]; then
13
31
echo " Running tests using V Math"
14
32
flags=" ${flags} -d vmath"
15
33
fi
16
34
17
- if [[ -n " ${AUTOFREE } " ]]; then
35
+ if [[ -n " ${use_autofree } " ]]; then
18
36
echo " Running tests using V Math"
19
37
flags=" ${flags} -autofree"
20
38
fi
21
39
40
+ if [[ -n " ${stats} " ]]; then
41
+ echo " Running tests with stats"
42
+ flags=" ${flags} -stats"
43
+ fi
44
+
22
45
echo " Executing tests with command: \" v ${flags} test .\" "
23
46
v ${flags} test .
24
47
Original file line number Diff line number Diff line change 1
- RED=` tput setaf 1`
2
- GREEN=` tput setaf 2`
3
- YELLOW=` tput setaf 3`
4
- RESET=` tput sgr0`
1
+ #! /usr/bin/env sh
2
+
3
+ RED=$( tput setaf 1)
4
+ GREEN=$( tput setaf 2)
5
+ YELLOW=$( tput setaf 3)
6
+ RESET=$( tput sgr0)
5
7
CHECK=" ✓"
6
8
CROSS=" ✗"
7
9
WARN=" ⚠"
8
10
9
11
describe () {
10
- printf " $1 "
12
+ printf " %s " " $1 "
11
13
dots=${2:- 3}
12
- for i in $( seq 1 ${dots} ) ; do sleep 0.035; printf " ." ; done
14
+ for i in $( seq 1 " ${dots} " ) ; do sleep 0.035; printf " ." ; done
13
15
sleep 0.035
14
16
}
15
17
16
18
log_warn () {
17
19
message=${1:- " Warning" }
18
20
log=" ${YELLOW}${WARN} ${message}${RESET} \n"
19
- printf " ${log} "
20
- [ -f " $3 " ] && printf " $2 ${log} " >> $3
21
+ printf " %s " " ${log} "
22
+ [ -f " $3 " ] && printf " %s %s " " $2 " " ${log} " >> " $3 "
21
23
}
22
24
23
25
log_failed () {
24
26
message=${1:- " Failed" }
25
27
log=" ${RED}${CROSS} ${message}${RESET} \n"
26
- printf " ${log} "
27
- [ -f " $3 " ] && printf " $2 ${log} " >> $3
28
+ printf " %s " " ${log} "
29
+ [ -f " $3 " ] && printf " %s %s " " $2 " " ${log} " >> " $3 "
28
30
}
29
31
30
32
log_success () {
31
33
message=${1:- " Success" }
32
34
log=" ${GREEN}${CHECK} ${message}${RESET} \n"
33
- printf " ${log} "
34
- [ -f " $3 " ] && printf " $2 ${log} " >> $3
35
+ printf " %s " " ${log} "
36
+ [ -f " $3 " ] && printf " %s %s " " $2 " " ${log} " >> " $3 "
35
37
}
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ Done. Installation completed.
130
130
To test the module, just type the following command:
131
131
132
132
``` sh
133
- $ make test # or ./bin/test
133
+ $ ./bin/ test # execute ` ./bin/test -h` to know more about the test command
134
134
```
135
135
136
136
## Contributors
You can’t perform that action at this time.
0 commit comments