Morgan.J.Smith@outlook.com 写道:
Toggle quote (25 lines)
> + (name "v4l2loopback-linux-module")
> "https://github.com/umlaeute/v4l2loopback.git")
> + (commit (string-append "v" version))))
> + (file-name (git-file-name name version))
> "1qi4l6yam8nrlmc3zwkrz9vph0xsj1cgmkqci4652mbpbzigg7vn"))))
> + (build-system linux-module-build-system)
> + (modify-phases %standard-phases
> + "--directory=./tests"
> ,(cc-for-target))))))))
This only builds the ‘test_dqbuf’ executable, but doesn't run it.
usage: tests/test_dqbuf <videodevice>
i.e. it needs the kernel module to be loaded as we discussed on
IRC. That's the norm for kernel drivers. For obvious reasons,
loading them in the build environment isn't an option.
(Computers are magic and one could virtualise a kernel, similar to
what we do with Xvfb for X11 tests, but it would work only for
drivers that don't require any hardware and excuse me the word
‘overkill’ is knocking at the door.)
Life hack: s/that allows you//
Double-spacing between sentences is mandatory in Texinfo, because
I was just about to push with the edits below, but… OK. Done
separately as fdcd193744dbb92d3478c8e4e6c4f4336a872831 et al.