[petsc-dev] How to replace floating point numbers in test outputs?
Stefano Zampini
stefano.zampini at gmail.com
Sat Jan 4 12:37:52 CST 2020
I would like to overwrite floating point numbers in tests outputs. I remember in the past we could just pass REPLACE=1; it seems it is not possible with the current master.
I tried the command below (this is a test which produces different floating point values) with no success. Any suggestion on how we can do this?
$ make -f gmakefile.test test globsearch="mat*ex5_12_B" DIFF_NUMBERS=1 REPLACE=1
Using MAKEFLAGS: REPLACE=1 DIFF_NUMBERS=1 globsearch=mat*ex5_12_B
TEST arch-debug/tests/counts/mat_tests-ex5_12_B.counts
ok mat_tests-ex5_12_B
not ok diff-mat_tests-ex5_12_B # Error code: 1
# 42,43c42,43
# < 0.
# < 0.
# ---
# > 1.
# > 1.
# 42,43c42,43
# < 0.
# < 0.
# ---
# > 1.
# > 1.
# -------------
# Summary
# -------------
# FAILED diff-mat_tests-ex5_12_B
# success 1/2 tests (50.0%)
# failed 1/2 tests (50.0%)
# todo 0/2 tests (0.0%)
# skip 0/2 tests (0.0%)
#
# Wall clock time for tests: 0 sec
# Approximate CPU time (not incl. build time): 0.05 sec
#
# To rerun failed tests:
# /usr/bin/make -f gmakefile test test-fail=1
#
# Timing summary (actual test time / total CPU time):
# mat_tests-ex5_12_B: 0.03 sec / 0.05 sec
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20200104/57abc2e7/attachment.html>
More information about the petsc-dev
mailing list