Improve config behaviour
This commit is contained in:
parent
5796f88e05
commit
0c13c03a73
11 changed files with 2571 additions and 37 deletions
18
tests/emgauwa-core-testing.conf
Normal file
18
tests/emgauwa-core-testing.conf
Normal file
|
@ -0,0 +1,18 @@
|
|||
[core]
|
||||
database = "emgauwa-core.sqlite"
|
||||
content-dir = "."
|
||||
not-found-file = "404.html"
|
||||
not-found-file-mime = "text/html"
|
||||
not-found-content = "404 - NOT FOUND"
|
||||
not-found-content-type = "text/plain"
|
||||
|
||||
[ports]
|
||||
server = 5000
|
||||
# 4422 for testing; 4421 for dev-env; 4420 for testing-env; 4419 for prod-env
|
||||
discovery = 4422
|
||||
# 1886 for testing; 1885 for dev-env; 1884 for testing-env; 1883 for prod-env
|
||||
mqtt = 1886
|
||||
|
||||
[logging]
|
||||
level = "debug"
|
||||
file = "stdout"
|
|
@ -41,7 +41,7 @@ touch $working_dir/index.html
|
|||
|
||||
cp $1 $working_dir/core
|
||||
|
||||
valgrind_emgauwa $working_dir/core -c $source_dir/emgauwa-core-testing.toml >>$working_dir/core.log 2>&1 &
|
||||
valgrind_emgauwa $working_dir/core -c $source_dir/emgauwa-core-testing.conf >>$working_dir/core.log 2>&1 &
|
||||
core_id=$!
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue