Closed morealaz closed 2 years ago
Thanks again for reporting @morealaz. Very helpful, indeed.
But after installing with
make install
in destination folder which for my case is/home/sysop/seiscomp-git
folder, runningctest -V -R '^test_scdetect_cc.*'
again inbuild
directory which for my case is/home/sysop/seiscomp/build
, passed all the tests includingtest_scdetect_cc_integration
test.
That's correct and kind of the expected behaviour. Though, I agree, that this is not documented properly. This could (and should!) be improved.
Background: scdetect-cc
allows to load EventParameter metadata to be loaded from a file. In order to speed the initialization process up it creates an in-memory SQLite DB and uses the schema from $SEISCOMP_ROOT/share/db/sqlite3.sql
to create the tables. Then, the EventParameter data is copied once into the in-memory DB. This way, scdetect-cc
can use the SeisComP DB query facilities in order to access the EventParameter metadata (previously copied) during the initialization procedure.
If the $SEISCOMP_ROOT/share/db/sqlite3.sql
containing the DDL commands is not available the scdetect-cc
integration tests (i.e. test_scdetect_cc_integration
) fail, consequently. The file is copied during installation (i.e. while executing e.g. make install
).
Does this answer your question and solve your issue?
With b44c62d6d11497945fd4a612018798a2ad95a67b I improved the documentation.
thanks
Hi After building with
make
command, runningmake test
command give following output:with only
test_scdetect_cc_integration
failed.After that before installing with
make install
command, runningctest -V -R '^test_scdetect_cc.*'
inbuild
directory failedtest_scdetect_cc_integration
with following errors:But after installing with
make install
in destination folder which for my case is/home/sysop/seiscomp-git
folder, runningctest -V -R '^test_scdetect_cc.*'
again inbuild
directory which for my case is/home/sysop/seiscomp/build
, passed all the tests includingtest_scdetect_cc_integration
test.Apparently it try to load events from
sqlite3.sql
in install destination (/home/sysop/seiscomp-git
) before installing and hence it failed since there is nothing there, but after installing it can load events and pass successfully.