mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-04-23 20:26:11 +08:00
Refactor the go_binding to binding (#13469)
### What problem does this PR solve? As title. ### Type of change - [x] Refactoring Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@ -51,20 +51,20 @@ c_api_debug: $(BUILD_DIR)
|
||||
|
||||
# Test the Go bindings
|
||||
test_go: c_api
|
||||
cd go_bindings/example && go run main.go ../../$(BUILD_DIR) "这是一个测试文本。This is a test."
|
||||
cd bindings/example && go run main.go ../../$(BUILD_DIR) "这是一个测试文本。This is a test."
|
||||
|
||||
# Run memory test
|
||||
test_memory: c_api
|
||||
cd go_bindings/example && go run memory_leak_check.go
|
||||
cd bindings/example && go run memory_leak_check.go
|
||||
|
||||
# Run with valgrind
|
||||
valgrind: c_api
|
||||
cd go_bindings/example && bash run_valgrind.sh
|
||||
cd bindings/example && bash run_valgrind.sh
|
||||
|
||||
# Run with AddressSanitizer
|
||||
asan: c_api_asan
|
||||
@echo "Running with AddressSanitizer..."
|
||||
cd go_bindings/example && \
|
||||
cd bindings/example && \
|
||||
ASAN_OPTIONS=detect_leaks=1:print_stats=1:verbosity=0 \
|
||||
go run memory_leak_check.go
|
||||
|
||||
@ -77,5 +77,5 @@ install: c_api
|
||||
clean:
|
||||
rm -rf $(BUILD_DIR)
|
||||
rm -rf $(ASAN_BUILD_DIR)
|
||||
rm -f go_bindings/example/valgrind.log
|
||||
rm -f go_bindings/example/memory_test_bin
|
||||
rm -f bindings/example/valgrind.log
|
||||
rm -f bindings/example/memory_test_bin
|
||||
|
||||
Reference in New Issue
Block a user