Changeset ae83758


Ignore:
Timestamp:
Mar 27, 2010, 5:03:18 PM (15 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, client
Children:
c968555
Parents:
ee37f93
git-author:
Alex Dehnert <adehnert@…> (03/27/10 17:03:18)
git-committer:
Alex Dehnert <adehnert@…> (03/27/10 17:03:18)
Message:

Improved testing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • remit/finance_core/reporting_tests.sh

    r83d9608 rae83758  
    11#!/bin/bash
    22
     3methods="annotate aggregate"
    34baseurl=${1:-http://localhost:8001/finance_core/reporting/?term=2010-spring}
    4 dirname=$(mktemp -d /tmp/remit.XXXXXX)
    5 methods="annotate aggregate"
    6 cd $dirname
    7 wget -O default.html "$baseurl"
    8 for method in $methods; do
    9     wget -O $method.html  "$baseurl&compute_method=$method"
     5baseurls="$baseurl $baseurl&area=13 $baseurl&layer=30"
     6for testbaseurl in $baseurls; do
     7    echo $testbaseurl
     8    dirname=$(mktemp -d /tmp/remit.XXXXXX)
     9    cd $dirname
     10    wget -O default.html "$baseurl"
     11    for method in $methods; do
     12        wget -q -O $method.html  "$baseurl&compute_method=$method"
     13    done
     14    for method in $methods; do
     15        diff -q --report-identical-files default.html $method.html
     16    done
    1017done
    11 for method in $methods; do
    12     diff -q --report-identical-files default.html $method.html
    13 done
Note: See TracChangeset for help on using the changeset viewer.