build: Fix run-installed when -Dfunctional_tests=false
We should remove the functional_tests= config option, but not in a stable series. In the meantime, rearrange test-domain.rule generation so it can be used even when functional tests are disabled.
Edited by Sam Thursfield