Ctest vs. test_installation (case closed)

I’m using: SWI-Prolog version: current git

I want the code to: pass the tests

But what I’m getting is: ctest works, but test_installation doesn’t.

My code looks like this:

cmake ..
make
ctest 
(all tests pass)
sudo make install
swipl
?- test_installation.
(fails in a few places)

I provide some details in the respective issues (on github). What I wonder is: Is there a 1-1 correspondence of ctest and test_installation. Apparently not?

EDIT: I forgot -DINSTALL_TESTS=ON, so test_installation used the tests of a previous version