test: remove meson dependency on /proc file
authorThomas Monjalon <thomas@monjalon.net>
Thu, 9 Apr 2020 16:41:49 +0000 (18:41 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 15 Apr 2020 13:45:24 +0000 (15:45 +0200)
commit5f1a4a8a125672e2d8ed9b6ca564e99b0ca2b4f1
treeff4e67468343ad0d9880eb80a7496f1a167cafe5
parent10d34aa3dee8daf0a07ae152de8377942f63503b
test: remove meson dependency on /proc file

Meson is detecting the path /proc/sys/vm/nr_hugepages in the call to cat
in app/test/meson.build and then adding it as a build dependency.
This causes build loop if the timestamp of this file keeps changing.

It is fixed by hiding hugepage check in a shell script.

Fixes: 77784ef0fba8 ("test: allow no-huge mode for fast-tests")

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Tested-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Reviewed-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Acked-by: Aaron Conole <aconole@redhat.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
MAINTAINERS
app/test/has-hugepage.sh [new file with mode: 0755]
app/test/meson.build