freedreno: Move the headergen2 test to be meson unit tests.

Now all the freedreno build-time testing is just "meson test -C build"

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6360>
This commit is contained in:
Emma Anholt 2021-09-30 09:34:00 -07:00 committed by Marge Bot
parent 82b5c95265
commit b40d070ab9
4 changed files with 10 additions and 44 deletions

View File

@ -754,7 +754,6 @@ debian-gallium:
script:
- .gitlab-ci/meson/build.sh
- .gitlab-ci/run-shader-db.sh
- src/freedreno/.gitlab-ci/run-fdtools.sh
# Test a release build with -Werror so new warnings don't sneak in.
debian-release:

View File

@ -1,33 +0,0 @@
Continuous Integration
======================
In addition to a build step, the CI setup has a basic test stage
to ensure that we don't break functionality of various tools. The
basic idea is to decode various files and compare the output to a
reference. This means that some changes, like renaming registers
or bitfields in the rnndb xml requires updating the reference
output.
Layout:
- .gitlab-ci/
- traces/ - reference devcoredump and cmdstream traces. The trace files should be kept small, and .rd files (which are already binary) should be compressed.
- reference/ - reference output
- genoutput.sh - script to generate output from the traces, used both by the CI test job, but it can also be used to update the reference output
Note on paths:
--------------
Gitlab CI uses an install-path of \`pwd\`/install. If you use something
different, then setup a symlink. Once that is done, to update reference
decodes (ie. to account for register .xml changes) run:
./src/freedreno/.gitlab-ci/genoutput.sh --update
TODO
----
- Maybe we could filter out some differences, like a new definition of a previously unknown register?
- It would be nice to add a test for afuc.. we probably cannot add a "real" fw file to this tree, but maybe could either fetch it from the linux-firmware git tree, or create our own dummy fw.

View File

@ -1,10 +0,0 @@
#!/bin/bash
set -e
set -x
# Also, while we are still using headergen2 for generating kernel
# headers, make sure that doesn't break:
headergen="_build/src/freedreno/rnn/headergen2"
$headergen adreno.xml
$headergen msm.xml

View File

@ -57,3 +57,13 @@ headergen2 = executable(
build_by_default: with_tools.contains('freedreno'),
install: false
)
if with_tests
foreach xml : ['adreno.xml', 'msm.xml']
test('headergen2-' + xml,
headergen2,
args: [xml],
suite: 'freedreno',
)
endforeach
endif