Based on the autotools build, meson does not support relative
directories for distconfig and moduledir. We fixed that recently, but
never added a check so we don't regress.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/245
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
.github/print-kdir.sh >> "$GITHUB_ENV"
+ - name: configure checks (meson)
+ if: ${{ matrix.build == 'meson' }}
+ run: |
+ should_fail() {
+ if meson setup "$@" build/; then
+ echo Command was expected to fail, but was successful
+ return 1
+ fi
+ }
+ should_fail -D distconfdir=relative/
+ should_fail -D moduledir=relative/
+ rm -rf build/
+
- name: configure (meson)
if: ${{ matrix.build == 'meson' }}
run: mkdir build && cd build && meson setup --native-file ../build-dev.ini ${{ matrix.container.meson_setup }} . ..