Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
8874aa5
chore: init trellis
Johnson-zs Mar 31, 2026
d27857f
chore(task): archive 00-bootstrap-guidelines
Johnson-zs Mar 31, 2026
a901257
chore: record journal
Johnson-zs Mar 31, 2026
462de8e
fix: change content index directory path
Johnson-zs Mar 31, 2026
dffb51c
refactor: centralize Lucene field names in constants
Johnson-zs Mar 31, 2026
a02a64f
feat: add OCR text search support
Johnson-zs Apr 8, 2026
f1fa575
chore(task): archive 04-08-add-ocr-search
Johnson-zs Apr 8, 2026
a152844
chore: update gitignore
Johnson-zs Apr 8, 2026
1145b0c
fix: improve path matching logic for content indexing
Johnson-zs Apr 9, 2026
6afea9f
feat: add birth time field name constant
Johnson-zs Apr 11, 2026
e502273
refactor: correct field names and add modify_time
Johnson-zs Apr 11, 2026
2a67f51
feat: implement time range filtering for search
Johnson-zs Apr 13, 2026
bbdaf33
feat: add CLI options and output formatters for search client
Johnson-zs Apr 13, 2026
676c144
feat: enhance search result metadata and output
Johnson-zs Apr 13, 2026
16f9086
refactor: optimize file search strategy logic
Johnson-zs Apr 13, 2026
d93b937
chore: update search binary name and installation path
Johnson-zs Apr 13, 2026
3f8e9ef
refactor: optimize search utility path checking functions
Johnson-zs Apr 13, 2026
627b79b
refactor: implement Pimpl pattern for TimeRangeFilter class
Johnson-zs Apr 20, 2026
cf0cd6d
chore: bump version to 1.3.52
Johnson-zs Apr 20, 2026
4dc6308
chore: update SPDX header
Johnson-zs Apr 20, 2026
8cc43e1
refactor: optimize file sorting implementation
Johnson-zs Apr 21, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,12 @@ debian/libdfm-burn-dev/*
debian/*.log
debian/*.substvars
debian/files

# ai
CLAUDE.md
AGENTS.md
.cursor
.trellis
.claude
.agents

32 changes: 16 additions & 16 deletions autotests/dfm-io-tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,21 @@ endif()

message(STATUS "Adding unit tests for ${IO_TEST_LIB}")

# Collect test source files
file(GLOB_RECURSE TEST_SRCS
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp
${CMAKE_CURRENT_SOURCE_DIR}/*.h
# 共享的测试入口点
set(TEST_COMMON_SRCS
${CMAKE_CURRENT_SOURCE_DIR}/test_main.cpp
)

# 各测试类源文件(不含 main)
set(TEST_CLASS_SRCS
${CMAKE_CURRENT_SOURCE_DIR}/tst_dfm_io.cpp
${CMAKE_CURRENT_SOURCE_DIR}/tst_dfilesorter.cpp
)

# Create the test executable
add_executable(dfm-io-test
${TEST_SRCS}
${TEST_COMMON_SRCS}
${TEST_CLASS_SRCS}
)

# Link against the dfm-io library and Qt Test
Expand All @@ -27,17 +33,11 @@ target_link_libraries(dfm-io-test
)

# Add include directories
if(DFM_BUILD_WITH_QT6)
target_include_directories(dfm-io-test
PRIVATE
${CMAKE_SOURCE_DIR}/src/dfm-io/dfm-io
)
else()
target_include_directories(dfm-io-test
PRIVATE
${CMAKE_SOURCE_DIR}/src/dfm-io/dfm-io
)
endif()
target_include_directories(dfm-io-test
PRIVATE
${CMAKE_SOURCE_DIR}/src/dfm-io/dfm-io
${CMAKE_SOURCE_DIR}/src/dfm-io/dfm-io/sort
)

# Register the test with CTest
add_test(NAME dfm-io-test COMMAND dfm-io-test)
23 changes: 23 additions & 0 deletions autotests/dfm-io-tests/test_main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// SPDX-FileCopyrightText: 2026 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later

#include <QTest>

Check warning on line 5 in autotests/dfm-io-tests/test_main.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <QTest> not found. Please note: Cppcheck does not need standard library headers to get proper results.

// 前置声明测试类
class tst_DfmIO;
class tst_DFileSorter;

int main(int argc, char *argv[])
{
int status = 0;

// 运行各测试类
extern int run_tst_DfmIO(int argc, char *argv[]);
extern int run_tst_DFileSorter(int argc, char *argv[]);

status |= run_tst_DfmIO(argc, argv);
status |= run_tst_DFileSorter(argc, argv);

return status;
}
Loading
Loading