Hello, this patch adds tests for [chars] and [^chars] style globbing to test-aare.py.
With this addition, all globbing styles (as documented in apparmor.d(5)) are covered in the convert_regexp() tests. [ 91-test-aare-add-more-tests.diff ] --- utils/test/test-aare.py 2015-10-11 20:21:03.597090000 +0200 +++ utils/test/test-aare.py 2015-10-11 20:52:42.235540135 +0200 @@ -88,6 +89,19 @@ (['/foo/{,**}', '/foo/bar/baz/' ], True), (['/foo/{,**}', '/bar/' ], False), + (['/foo/a[bcd]e', '/foo/abe' ], True), + (['/foo/a[bcd]e', '/foo/abend' ], False), + (['/foo/a[bcd]e', '/foo/axe' ], False), + + (['/foo/a[b-d]e', '/foo/abe' ], True), + (['/foo/a[b-d]e', '/foo/ace' ], True), + (['/foo/a[b-d]e', '/foo/abend' ], False), + (['/foo/a[b-d]e', '/foo/axe' ], False), + + (['/foo/a[^bcd]e', '/foo/abe' ], False), + (['/foo/a[^bcd]e', '/foo/abend' ], False), + (['/foo/a[^bcd]e', '/foo/axe' ], True), + (['/foo/{foo,bar,user,other}/bar/', '/foo/user/bar/' ], True), (['/foo/{foo,bar,user,other}/bar/', '/foo/bar/bar/' ], True), (['/foo/{foo,bar,user,other}/bar/', '/foo/wrong/bar/' ], False), Regards, Christian Boltz -- Du bist nicht auf dem Laufenden: Eintasten-Keyboard ist jetzt auf dem Mars "in"! ;-) Du musst mit dem _leuchtenden_ Mittelfinger <enter> drücken, ist belegt mit "nach_Hause_telefonieren". [Sven Rodenbeck in suse-linux] -- AppArmor mailing list AppArmor@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/apparmor