Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csbase-dev
sgarest-daemon
Commits
09e17548
Commit
09e17548
authored
Mar 03, 2021
by
Renato Figueiro Maia
Browse files
Correção nas instruções de execução dos testes.
[SOMA-7116][SOMA-7115]
parent
0f27d4c4
Pipeline
#76310
passed with stages
in 5 minutes and 35 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
09e17548
...
...
@@ -175,35 +175,65 @@ $ ${SGAD_HOME}/bin/luarocks list sga-daemon
### Automatic tests
All tests implementation are in directory
`test`
.
Before running any tests for the first time,
it is necessary to install the Lua runtime environment required to execute the SGA REST daemon.
The runtime must be installed in
`test/lua_runtime`
.
```
console
$
cd test
$
./install.sh
--force
--posix
--pbs
--slurm
$(
pwd
)
/test/lua_runtime
```
#### Daemon tests
The tests of the daemon are executed in directory
`test/daemon`
.
```
console
$
cd test
/daemon
```
Before running tests for the first time,
it is necessary to install the Lua runtime environment required to execute the SGA REST daemon,
as well as the Node.js packages required to run the test suite.
Before running the daemon tests for the first time,
it is necessary to install the Node.js packages as well.
```
console
$
../install.sh
--force
--posix
--pbs
--slurm
$(
pwd
)
/lua_runtime
$
npm
install
```
After that,
we can run the tests using the following command
we can run the tests
of the daemon
using the following command
:
```
console
$
npm run
test
```
Whenever changing the
test
implementation,
Whenever changing the implementation
of the daemon tests
,
use the following command to automatic reformat the JavaScript code to adhere to the current standard coding style.
```
console
$
npm run lint
```
#### Driver tests
The tests of the drivers are executed in directory
`test`
in the root of the repository.
```
console
$
cd test
```
Before running the tests of the drivers for the first time,
it is necessary to install the Busted test library for Lua using LuaRocks.
```
console
$
lua_runtime/bin/luarocks
install
--server
=
https://luarocks.org busted
```
After that,
we can run the tests of the drivers using the following script:
```
console
$
./test_driver.sh
```
### Release a new version
To release a new SGA version run the following script passing as parameter the release version. Only versions with numbers are permitted (e.g. 1.6.2):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment