From 40d7eeec32c2b4e176ab3c385665f49e70ae19d5 Mon Sep 17 00:00:00 2001 From: Ryan Lee Date: Tue, 1 Apr 2025 10:31:17 -0700 Subject: [PATCH] parser: add a detached mount equality test Signed-off-by: Ryan Lee (cherry picked from commit 63857a79727cc0f6fd2d39d260685f645570af26) Signed-off-by: John Johansen --- parser/tst/equality.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/parser/tst/equality.sh b/parser/tst/equality.sh index abce2e920..6f4ee6082 100755 --- a/parser/tst/equality.sh +++ b/parser/tst/equality.sh @@ -879,6 +879,11 @@ verify_binary_equality "'$p1'x'$p2' link rules slash filtering" \ @{BAR}=/mnt/ /t { $p2 link @{FOO}/foo -> @{BAR}/bar, }" +# Verify equality with mount detached source + +verify_binary_equality "'$p1'x'$p2' mount detached vs empty source" \ + "/t { $p1 mount \"\" -> /destination, }" \ + "/t { $p2 mount detached -> /destination, }" # This can potentially fail as ideally it requires a better dfa comparison # routine as it can generates hormomorphic dfas. The enumeration of the