Changeset e72d94


Ignore:
Timestamp:
Jun 20, 2018, 8:21:14 AM (7 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.6.1, ChemicalSpaceEvaluator, Exclude_Hydrogens_annealWithBondGraph, ForceAnnealing_with_BondGraph_contraction-expansion
Children:
8c0ac9
Parents:
31baf0
git-author:
Frederik Heber <frederik.heber@…> (06/14/18 11:48:20)
git-committer:
Frederik Heber <frederik.heber@…> (06/20/18 08:21:14)
Message:

TESTFIX: threshold check in integration tests on structure optimization was broken.

  • parsed value $i needs to be force into numeric context by adding zero.
Location:
tests/integration/StructureOptimization
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tests/integration/StructureOptimization/testsuite-integration-structureoptimization-methane.at

    r31baf0 re72d94  
    7474echo "remaining components are ($components)"
    7575threshold="1.2e-3"
    76 AT_CHECK([echo "$components" | awk -v threshold="$threshold" -F"\t" '{ for (i=0;i<3;++i) { if (($i > threshold) || ($i < -threshold)) exit 5} }'], 0, [ignore], [ignore], [kill $server_pid $worker_pid])
     76AT_CHECK([echo "$components" | awk -v threshold="$threshold" -F"\t" '{ for (i=0;i<3;++i) { if ((($i+0.) > (threshold+0.)) || (($i+0.) < (-threshold+0.))) exit 5} }'], 0, [ignore], [ignore], [kill $server_pid $worker_pid])
    7777
    7878# send removeall to server such that all workers shutdown
  • tests/integration/StructureOptimization/testsuite-integration-structureoptimization-water.at

    r31baf0 re72d94  
    7474echo "remaining components are ($components)"
    7575threshold="6e-4"
    76 AT_CHECK([echo "$components" | awk -v threshold="$threshold" -F"\t" '{ for (i=0;i<3;++i) { if (($i > threshold) || ($i < -threshold)) exit 5} }'], 0, [ignore], [ignore], [kill $server_pid $worker_pid])
     76AT_CHECK([echo "$components" | awk -v threshold="$threshold" -F"\t" '{ for (i=0;i<3;++i) { if ((($i+0.) > (threshold+0.)) || (($i+0.) < (-threshold+0.))) exit 5} }'], 0, [ignore], [ignore], [kill $server_pid $worker_pid])
    7777
    7878# send removeall to server such that all workers shutdown
Note: See TracChangeset for help on using the changeset viewer.