From 4c3954f13d9416b40e0c020280e123eb8d2d0973 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Wed, 26 Mar 2025 20:33:30 +0100 Subject: [PATCH] test-cleanprof: add tests for external child profiles --- utils/test/cleanprof_test.complain | 8 ++++++++ utils/test/cleanprof_test.in | 8 ++++++++ utils/test/cleanprof_test.out | 8 ++++++++ 3 files changed, 24 insertions(+) diff --git a/utils/test/cleanprof_test.complain b/utils/test/cleanprof_test.complain index ec9879302..710e3c867 100644 --- a/utils/test/cleanprof_test.complain +++ b/utils/test/cleanprof_test.complain @@ -96,3 +96,11 @@ $foo = false ) { /what/ever r, } + +profile foo//bar { +/home/namedchild r, +} + +/bin/bar///bin/baz { + /home/pathchild w, + } diff --git a/utils/test/cleanprof_test.in b/utils/test/cleanprof_test.in index 0c7c5835e..2112b9568 100644 --- a/utils/test/cleanprof_test.in +++ b/utils/test/cleanprof_test.in @@ -96,3 +96,11 @@ $foo = false ) { /what/ever r, } + +profile foo//bar { +/home/namedchild r, +} + +/bin/bar///bin/baz { + /home/pathchild w, + } diff --git a/utils/test/cleanprof_test.out b/utils/test/cleanprof_test.out index b61c6fa4b..96b9ece14 100644 --- a/utils/test/cleanprof_test.out +++ b/utils/test/cleanprof_test.out @@ -11,6 +11,10 @@ include if exists $foo = false $bar = true +/bin/bar///bin/baz { + /home/pathchild w, + +} # A simple test comment which will persist @@ -73,3 +77,7 @@ $bar = true /what/ever r, } +profile foo//bar { + /home/namedchild r, + +}