summaryrefslogtreecommitdiff
path: root/tests/glean/tblend.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/glean/tblend.cpp')
-rw-r--r--tests/glean/tblend.cpp92
1 files changed, 0 insertions, 92 deletions
diff --git a/tests/glean/tblend.cpp b/tests/glean/tblend.cpp
index 4d65c887e..661172954 100644
--- a/tests/glean/tblend.cpp
+++ b/tests/glean/tblend.cpp
@@ -938,98 +938,6 @@ BlendFuncTest::printMode(const BlendFuncResult::PartialResult &r) const
}
///////////////////////////////////////////////////////////////////////////////
-// compareOne: Compare results for a single test case
-///////////////////////////////////////////////////////////////////////////////
-void
-BlendFuncTest::compareOne(BlendFuncResult& oldR, BlendFuncResult& newR) {
- BasicStats readbackStats;
- BasicStats blendStats;
-
- vector<BlendFuncResult::PartialResult>::const_iterator np;
- vector<BlendFuncResult::PartialResult>::const_iterator op;
-
- for (np = newR.results.begin(); np != newR.results.end(); ++np)
- // Find the matching case, if any, in the old results:
- for (op = oldR.results.begin(); op != oldR.results.end(); ++op)
- if (equalMode(*np, *op)) {
- readbackStats.sample(np->rbErr - op->rbErr);
- blendStats.sample(np->blErr - op->blErr);
- }
-
- if (readbackStats.n() == static_cast<int>(newR.results.size())
- && newR.results.size() == oldR.results.size()
- && readbackStats.mean() == 0.0 && blendStats.mean() == 0.0) {
- if (env->options.verbosity)
- env->log << name << ": SAME "
- << newR.config->conciseDescription() << '\n';
- } else {
- env->log << name << ": DIFF "
- << newR.config->conciseDescription() << '\n';
-
- if (readbackStats.mean() < 0.0)
- env->log << '\t' << env->options.db2Name
- << " appears to have more accurate readback.\n";
- else if (readbackStats.mean() > 0.0)
- env->log << '\t' << env->options.db1Name
- << " appears to have more accurate readback.\n";
- if (blendStats.mean() < 0.0)
- env->log << '\t' << env->options.db2Name
- << " appears to have more accurate blending.\n";
- else if (blendStats.mean() > 0.0)
- env->log << '\t' << env->options.db1Name
- << " appears to have more accurate blending.\n";
- if (readbackStats.n() != static_cast<int>(newR.results.size())){
- env->log << "\tThe following cases in "
- << env->options.db2Name
- << " have no matching test in "
- << env->options.db1Name
- << ":\n";
- for (np = newR.results.begin();
- np != newR.results.end(); ++np) {
- for (op = oldR.results.begin();
- op != oldR.results.end(); ++op)
- if (equalMode(*np, *op))
- break;
- if (op == oldR.results.end())
- printMode(*np);
- }
- }
- if (readbackStats.n() != static_cast<int>(oldR.results.size())){
- env->log << "\tThe following cases in "
- << env->options.db1Name
- << " have no matching test in "
- << env->options.db2Name
- << ":\n";
- for (op = oldR.results.begin();
- op != oldR.results.end(); ++op) {
- for (np = newR.results.begin();
- np != newR.results.end(); ++np)
- if (equalMode(*op, *np))
- break;
- if (np == newR.results.end())
- printMode(*op);
- }
- }
- if (env->options.verbosity) {
- env->log << "\tThe following cases appear in both "
- << env->options.db1Name
- << " and "
- << env->options.db2Name
- << ":\n";
- for (np = newR.results.begin();
- np != newR.results.end(); ++np){
- for (op = oldR.results.begin();
- op != oldR.results.end(); ++op)
- if (equalMode(*op, *np))
- break;
- if (op != oldR.results.end())
- printMode(*op);
- }
- }
- }
-} // BlendFuncTest::compareOne
-
-///////////////////////////////////////////////////////////////////////////////
// Result I/O functions:
///////////////////////////////////////////////////////////////////////////////
void