|
136 | 136 | <groupId>org.apache.arrow</groupId> |
137 | 137 | <artifactId>arrow-vector</artifactId> |
138 | 138 | <version>${arrow.version}</version> |
139 | | - <scope>test</scope> |
| 139 | + <scope>test</scope> |
140 | 140 | </dependency> |
141 | 141 | <dependency> |
142 | 142 | <groupId>org.apache.parquet</groupId> |
|
184 | 184 | <cxx.flags>-Wno-deprecated-declarations</cxx.flags> |
185 | 185 | </properties> |
186 | 186 | </profile> |
| 187 | + <profile> |
| 188 | + <id>default-tests</id> |
| 189 | + <build> |
| 190 | + <plugins> |
| 191 | + <plugin> |
| 192 | + <artifactId>maven-surefire-plugin</artifactId> |
| 193 | + <configuration> |
| 194 | + <excludes> |
| 195 | + <exclude>**/CudaFatalTest.java</exclude> |
| 196 | + </excludes> |
| 197 | + </configuration> |
| 198 | + <executions> |
| 199 | + <execution> |
| 200 | + <id>main-tests</id> |
| 201 | + <goals> |
| 202 | + <goal>test</goal> |
| 203 | + </goals> |
| 204 | + </execution> |
| 205 | + <execution> |
| 206 | + <id>fatal-cuda-test</id> |
| 207 | + <goals> |
| 208 | + <goal>test</goal> |
| 209 | + </goals> |
| 210 | + <configuration> |
| 211 | + <includes> |
| 212 | + <include>**/CudaFatalTest.java</include> |
| 213 | + </includes> |
| 214 | + <reuseForks>false</reuseForks> |
| 215 | + <test>*/CudaFatalTest.java</test> |
| 216 | + </configuration> |
| 217 | + </execution> |
| 218 | + </executions> |
| 219 | + </plugin> |
| 220 | + </plugins> |
| 221 | + </build> |
| 222 | + </profile> |
187 | 223 | <profile> |
188 | 224 | <id>no-cufile-tests</id> |
189 | 225 | <activation> |
|
199 | 235 | <configuration> |
200 | 236 | <excludes> |
201 | 237 | <exclude>**/CuFileTest.java</exclude> |
| 238 | + <exclude>**/CudaFatalTest.java</exclude> |
202 | 239 | </excludes> |
203 | 240 | </configuration> |
| 241 | + <executions> |
| 242 | + <execution> |
| 243 | + <id>main-tests</id> |
| 244 | + <goals> |
| 245 | + <goal>test</goal> |
| 246 | + </goals> |
| 247 | + </execution> |
| 248 | + <execution> |
| 249 | + <id>fatal-cuda-test</id> |
| 250 | + <goals> |
| 251 | + <goal>test</goal> |
| 252 | + </goals> |
| 253 | + <configuration> |
| 254 | + <includes> |
| 255 | + <include>**/CudaFatalTest.java</include> |
| 256 | + </includes> |
| 257 | + <reuseForks>false</reuseForks> |
| 258 | + <test>*/CudaFatalTest.java</test> |
| 259 | + </configuration> |
| 260 | + </execution> |
| 261 | + </executions> |
204 | 262 | </plugin> |
205 | 263 | </plugins> |
206 | 264 | </build> |
|
280 | 338 | <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
281 | 339 | <autoReleaseAfterClose>false</autoReleaseAfterClose> |
282 | 340 | </configuration> |
283 | | - </plugin> |
| 341 | + </plugin> |
284 | 342 | </plugins> |
285 | 343 | </build> |
286 | 344 | </profile> |
|
289 | 347 | <build> |
290 | 348 | <resources> |
291 | 349 | <resource> |
292 | | - <!-- Include the properties file to provide the build information. --> |
293 | | - <directory>${project.build.directory}/extra-resources</directory> |
294 | | - <filtering>true</filtering> |
| 350 | + <!-- Include the properties file to provide the build information. --> |
| 351 | + <directory>${project.build.directory}/extra-resources</directory> |
| 352 | + <filtering>true</filtering> |
295 | 353 | </resource> |
296 | 354 | <resource> |
297 | | - <directory>${basedir}/..</directory> |
298 | | - <targetPath>META-INF</targetPath> |
299 | | - <includes> |
300 | | - <include>LICENSE</include> |
301 | | - </includes> |
| 355 | + <directory>${basedir}/..</directory> |
| 356 | + <targetPath>META-INF</targetPath> |
| 357 | + <includes> |
| 358 | + <include>LICENSE</include> |
| 359 | + </includes> |
302 | 360 | </resource> |
303 | 361 | </resources> |
304 | 362 | <pluginManagement> |
|
339 | 397 | <artifactId>junit-jupiter-engine</artifactId> |
340 | 398 | <version>5.4.2</version> |
341 | 399 | </dependency> |
| 400 | + <dependency> |
| 401 | + <!-- to get around bug https://github.com/junit-team/junit5/issues/1367 --> |
| 402 | + <groupId>org.apache.maven.surefire</groupId> |
| 403 | + <artifactId>surefire-logger-api</artifactId> |
| 404 | + <version>2.21.0</version> |
| 405 | + </dependency> |
342 | 406 | </dependencies> |
343 | 407 | </plugin> |
344 | 408 | <plugin> |
|
404 | 468 | <arg value="${parallel.level}"/> |
405 | 469 | </exec> |
406 | 470 | <mkdir dir="${project.build.directory}/extra-resources"/> |
407 | | - <exec executable="bash" output="${project.build.directory}/extra-resources/cudf-java-version-info.properties"> |
408 | | - <arg value="${project.basedir}/buildscripts/build-info"/> |
409 | | - <arg value="${project.version}"/> |
| 471 | + <exec executable="bash" |
| 472 | + output="${project.build.directory}/extra-resources/cudf-java-version-info.properties"> |
| 473 | + <arg value="${project.basedir}/buildscripts/build-info"/> |
| 474 | + <arg value="${project.version}"/> |
410 | 475 | </exec> |
411 | 476 | </tasks> |
412 | 477 | </configuration> |
|
428 | 493 | </goals> |
429 | 494 | <configuration> |
430 | 495 | <source> |
431 | | - def sout = new StringBuffer(), serr = new StringBuffer() |
432 | | - //This only works on linux |
433 | | - def proc = 'ldd ${native.build.path}/libcudfjni.so'.execute() |
434 | | - proc.consumeProcessOutput(sout, serr) |
435 | | - proc.waitForOrKill(10000) |
436 | | - def libcudf = ~/libcudf.*\\.so\\s+=>\\s+(.*)libcudf.*\\.so\\s+.*/ |
437 | | - def cudfm = libcudf.matcher(sout) |
438 | | - if (cudfm.find()) { |
439 | | - pom.properties['native.cudf.path'] = cudfm.group(1) |
440 | | - } else { |
441 | | - fail("Could not find cudf as a dependency of libcudfjni out> $sout err> $serr") |
442 | | - } |
| 496 | + def sout = new StringBuffer(), serr = new StringBuffer() |
| 497 | + //This only works on linux |
| 498 | + def proc = 'ldd ${native.build.path}/libcudfjni.so'.execute() |
| 499 | + proc.consumeProcessOutput(sout, serr) |
| 500 | + proc.waitForOrKill(10000) |
| 501 | + def libcudf = ~/libcudf.*\\.so\\s+=>\\s+(.*)libcudf.*\\.so\\s+.*/ |
| 502 | + def cudfm = libcudf.matcher(sout) |
| 503 | + if (cudfm.find()) { |
| 504 | + pom.properties['native.cudf.path'] = cudfm.group(1) |
| 505 | + } else { |
| 506 | + fail("Could not find cudf as a dependency of libcudfjni out> $sout err> $serr") |
| 507 | + } |
443 | 508 |
|
444 | | - def nvccout = new StringBuffer(), nvccerr = new StringBuffer() |
445 | | - def nvccproc = 'nvcc --version'.execute() |
446 | | - nvccproc.consumeProcessOutput(nvccout, nvccerr) |
447 | | - nvccproc.waitForOrKill(10000) |
448 | | - def cudaPattern = ~/Cuda compilation tools, release ([0-9]+)/ |
449 | | - def cm = cudaPattern.matcher(nvccout) |
450 | | - if (cm.find()) { |
451 | | - def classifier = 'cuda' + cm.group(1) |
452 | | - pom.properties['cuda.classifier'] = classifier |
453 | | - } else { |
454 | | - fail('could not find CUDA version') |
455 | | - } |
| 509 | + def nvccout = new StringBuffer(), nvccerr = new StringBuffer() |
| 510 | + def nvccproc = 'nvcc --version'.execute() |
| 511 | + nvccproc.consumeProcessOutput(nvccout, nvccerr) |
| 512 | + nvccproc.waitForOrKill(10000) |
| 513 | + def cudaPattern = ~/Cuda compilation tools, release ([0-9]+)/ |
| 514 | + def cm = cudaPattern.matcher(nvccout) |
| 515 | + if (cm.find()) { |
| 516 | + def classifier = 'cuda' + cm.group(1) |
| 517 | + pom.properties['cuda.classifier'] = classifier |
| 518 | + } else { |
| 519 | + fail('could not find CUDA version') |
| 520 | + } |
456 | 521 | </source> |
457 | 522 | </configuration> |
458 | 523 | </execution> |
|
480 | 545 | <groupId>org.apache.maven.plugins</groupId> |
481 | 546 | <artifactId>maven-surefire-plugin</artifactId> |
482 | 547 | <configuration> |
483 | | - <!-- you can turn this off, by passing -DtrimStackTrace=true when running tests --> |
484 | | - <trimStackTrace>false</trimStackTrace> |
485 | | - <redirectTestOutputToFile>true</redirectTestOutputToFile> |
486 | | - <systemPropertyVariables> |
487 | | - <ai.rapids.refcount.debug>${ai.rapids.refcount.debug}</ai.rapids.refcount.debug> |
488 | | - <ai.rapids.cudf.nvtx.enabled>${ai.rapids.cudf.nvtx.enabled}</ai.rapids.cudf.nvtx.enabled> |
489 | | - </systemPropertyVariables> |
| 548 | + <!-- you can turn this off, by passing -DtrimStackTrace=true when running tests --> |
| 549 | + <trimStackTrace>false</trimStackTrace> |
| 550 | + <redirectTestOutputToFile>true</redirectTestOutputToFile> |
| 551 | + <systemPropertyVariables> |
| 552 | + <ai.rapids.refcount.debug>${ai.rapids.refcount.debug}</ai.rapids.refcount.debug> |
| 553 | + <ai.rapids.cudf.nvtx.enabled>${ai.rapids.cudf.nvtx.enabled}</ai.rapids.cudf.nvtx.enabled> |
| 554 | + </systemPropertyVariables> |
490 | 555 | </configuration> |
491 | 556 | </plugin> |
492 | 557 | <plugin> |
|
0 commit comments