]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
mdssvc: add a test for parsing Spotlight date ranges
authorRalph Boehme <slow@samba.org>
Fri, 17 Oct 2025 10:38:53 +0000 (12:38 +0200)
committerRalph Boehme <slow@samba.org>
Mon, 20 Oct 2025 09:46:30 +0000 (09:46 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15930

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
selftest/knownfail.d/samba.unittests.mdsparser_es [new file with mode: 0644]
source3/rpc_server/mdssvc/test_mdsparser_es.c

diff --git a/selftest/knownfail.d/samba.unittests.mdsparser_es b/selftest/knownfail.d/samba.unittests.mdsparser_es
new file mode 100644 (file)
index 0000000..b5d7bc8
--- /dev/null
@@ -0,0 +1 @@
+^samba.unittests.mdsparser_es.*test_mdsparser_es\(none\)
index a61f84ceaff91ffa6946c26368c4c089d4ede5bc..5015de821278f0c11e44f6041ad9148e83a22abd 100644 (file)
@@ -155,6 +155,9 @@ static struct {
        }, {
                "InRange(kMDItemFSSize,1,2)",
                "file.filesize:[1 TO 2]"
+       }, {
+               "InRange(kMDItemContentCreationDate,$time.iso(2024-12-31T23:00:00Z),$time.iso(2025-12-31T23:00:00Z))",
+               "file.created:[2024\\\\-12\\\\-31T23\\\\:00\\\\:00Z TO 2025\\\\-12\\\\-31T23\\\\:00\\\\:00Z]"
        }
 };