Search in sources :

Example 1 with ExperimentVerification

use of edu.iu.dsc.tws.examples.verification.ExperimentVerification in project twister2 by DSC-SPIDAL.

the class SKeyedReduceExample method verify.

public void verify() throws VerificationException {
    boolean doVerify = jobParameters.isDoVerify();
    boolean isVerified = false;
    if (doVerify) {
        LOG.info("Verifying results ...");
        ExperimentVerification experimentVerification = new ExperimentVerification(experimentData, OperationNames.KEYED_REDUCE);
        isVerified = experimentVerification.isVerified();
        if (isVerified) {
            LOG.info("Results generated from the experiment are verified.");
        } else {
            throw new VerificationException("Results do not match");
        }
    }
}
Also used : ExperimentVerification(edu.iu.dsc.tws.examples.verification.ExperimentVerification) VerificationException(edu.iu.dsc.tws.examples.verification.VerificationException)

Example 2 with ExperimentVerification

use of edu.iu.dsc.tws.examples.verification.ExperimentVerification in project twister2 by DSC-SPIDAL.

the class BaseTSetBatchWorker method verify.

public static void verify(String operationNames) throws VerificationException {
    boolean doVerify = jobParameters.isDoVerify();
    boolean isVerified = false;
    if (doVerify) {
        LOG.info("Verifying results ...");
        ExperimentVerification experimentVerification = new ExperimentVerification(experimentData, operationNames);
        isVerified = experimentVerification.isVerified();
        if (isVerified) {
            LOG.info("Results generated from the experiment are verified.");
        } else {
            throw new VerificationException("Results do not match");
        }
    }
}
Also used : ExperimentVerification(edu.iu.dsc.tws.examples.verification.ExperimentVerification) VerificationException(edu.iu.dsc.tws.examples.verification.VerificationException)

Aggregations

ExperimentVerification (edu.iu.dsc.tws.examples.verification.ExperimentVerification)2 VerificationException (edu.iu.dsc.tws.examples.verification.VerificationException)2