Regression test for mk/check/check-perms.mk.