File tree Expand file tree Collapse file tree 3 files changed +488
-10
lines changed
modules/parquet-data-format Expand file tree Collapse file tree 3 files changed +488
-10
lines changed Original file line number Diff line number Diff line change 7272 working-directory : OpenSearch
7373 run : ./gradlew :server:test --tests "org.opensearch.index.engine.exec.coord.IndexFileDeleterTests"
7474
75+ - name : Run Native(Rust) UTs for ParquetDataFormat plugin
76+ working-directory : OpenSearch
77+ run : ./gradlew runNativeUnitTests
78+
7579 - name : Run OpenSearch with DataFusion Plugin
7680 working-directory : OpenSearch
7781 run : |
Original file line number Diff line number Diff line change @@ -154,6 +154,27 @@ run {
154154 useCluster testClusters. integTest
155155}
156156
157+ tasks. register(' runNativeUnitTests' , Exec ) {
158+ workingDir = file(" ${ projectDir} /src/main/rust" )
159+ // Find cargo executable - try common locations
160+ def cargoExecutable = ' cargo'
161+ def possibleCargoPaths = [
162+ System . getenv(' HOME' ) + ' /.cargo/bin/cargo' ,
163+ ' /usr/local/bin/cargo' ,
164+ ' cargo'
165+ ]
166+
167+ for (String path : possibleCargoPaths) {
168+ if (new File (path). exists()) {
169+ cargoExecutable = path
170+ break
171+ }
172+ }
173+
174+ def cargoArgs = [cargoExecutable, ' test' ]
175+ commandLine cargoArgs
176+ }
177+
157178// updateVersion: Task to auto update version to the next development iteration
158179tasks. register(' buildRust' , Exec ) {
159180// workingDir = file("${projectDir}/src/main/rust")
You can’t perform that action at this time.
0 commit comments