DigitalInBlue / Celero

C++ Benchmark Authoring Library/Framework
Other
822 stars 96 forks source link

Test executable fails: No Baseline case defined for "". Exiting.*** Error code 1 #151

Closed yurivict closed 3 years ago

yurivict commented 3 years ago

Issue Template

Bug Report

Running main() from /wrkdirs/usr/ports/devel/googletest/work/googletest-release-1.10.0/googletest/src/gtest_main.cc
[==========] Running 48 tests from 13 test suites.
[----------] Global test environment set-up.
[----------] 4 tests from Archive
[ RUN      ] Archive.Instance
[       OK ] Archive.Instance (0 ms)
[ RUN      ] Archive.setFileName
[       OK ] Archive.setFileName (0 ms)
[ RUN      ] Archive.add
[       OK ] Archive.add (0 ms)
[ RUN      ] Archive.save
[       OK ] Archive.save (0 ms)
[----------] 4 tests from Archive (0 ms total)

[----------] 8 tests from Benchmark
[ RUN      ] Benchmark.ctor
[       OK ] Benchmark.ctor (0 ms)
[ RUN      ] Benchmark.ctor_string
[       OK ] Benchmark.ctor_string (0 ms)
[ RUN      ] Benchmark.ctor_copy
[       OK ] Benchmark.ctor_copy (0 ms)
[ RUN      ] Benchmark.getNameEmpty
[       OK ] Benchmark.getNameEmpty (0 ms)
[ RUN      ] Benchmark.getName
[       OK ] Benchmark.getName (0 ms)
[ RUN      ] Benchmark.setBaseline
[       OK ] Benchmark.setBaseline (0 ms)
[ RUN      ] Benchmark.addExperiment
[       OK ] Benchmark.addExperiment (0 ms)
[ RUN      ] Benchmark.getExperiment
[       OK ] Benchmark.getExperiment (0 ms)
[----------] 8 tests from Benchmark (0 ms total)

[----------] 4 tests from Callbacks
[ RUN      ] Callbacks.AddExperimentCompleteFunction
[       OK ] Callbacks.AddExperimentCompleteFunction (0 ms)
[ RUN      ] Callbacks.AddExperimentResultCompleteFunction
[       OK ] Callbacks.AddExperimentResultCompleteFunction (0 ms)
[ RUN      ] Callbacks.ExperimentComplete
[       OK ] Callbacks.ExperimentComplete (0 ms)
[ RUN      ] Callbacks.ExperimentResultComplete
[       OK ] Callbacks.ExperimentResultComplete (0 ms)
[----------] 4 tests from Callbacks (8 ms total)

[----------] 3 tests from Celero
[ RUN      ] Celero.RegisterTest
[       OK ] Celero.RegisterTest (0 ms)
[ RUN      ] Celero.RegisterBaseline
[       OK ] Celero.RegisterBaseline (0 ms)
[ RUN      ] Celero.BuildDistribution
[       OK ] Celero.BuildDistribution (0 ms)
[----------] 3 tests from Celero (0 ms total)

[----------] 2 tests from Distribution
[ RUN      ] Distribution.BuildDistribution
[       OK ] Distribution.BuildDistribution (0 ms)
[ RUN      ] Distribution.RunDistribution
[       OK ] Distribution.RunDistribution (2 ms)
[----------] 2 tests from Distribution (2 ms total)

[----------] 9 tests from Executor
[ RUN      ] Executor.RunAll
|GroupName       | BenchmarkName   |            Null |              30 |          262144 |         1.00000 |         0.00559 |    178937883.96 | 
|GroupName       | BenchmarkName   |            Null |              30 |          524288 |         0.98294 |         0.00549 |    182044444.44 | 
|GroupName       | BenchmarkName   |            Null |              30 |          262144 |         0.97338 |         0.00544 |    183831697.05 | 
[       OK ] Executor.RunAll (230 ms)
[ RUN      ] Executor.RunAllBaselines
|GroupName       | BenchmarkName   |            Null |              30 |          262144 |         1.00000 |         0.00551 |    181540166.20 | 
[       OK ] Executor.RunAllBaselines (50 ms)
[ RUN      ] Executor.RunBaseline
[       OK ] Executor.RunBaseline (0 ms)
[ RUN      ] Executor.RunAllExperiments
|GroupName       | BenchmarkName   |            Null |              30 |          524288 |         0.99723 |         0.00549 |    182044444.44 | 
|GroupName       | BenchmarkName   |            Null |              30 |          262144 |         0.98753 |         0.00544 |    183831697.05 | 
[       OK ] Executor.RunAllExperiments (145 ms)
[ RUN      ] Executor.RunExperiments
[       OK ] Executor.RunExperiments (0 ms)
[ RUN      ] Executor.Run_Benchmark
No Baseline case defined for "".  Exiting.*** Error code 1
DigitalInBlue commented 3 years ago

Thank you! Fixed.