Regression Test on Flows & Options Unit

I. Setup testing environment

  • Install Lexical Tools on testing computer
    • shell> cp lvg${YEAR}.tgz ${PROJECT}
    • shell> cd ${PROJECT}
    • shell> gtar -xzvf lvg${YEAR}.tgz
    • shell> cd lvg${YEAR}
    • shell> ./install/bin/install_linux-i586.sh
  • Update Configuration file
    • Update $LVG_DIR in ${PROJECT}/lvg${YEAR}/data/config/lvg.properties.hsql
    • Update $LVG_DIR in ${PROJECT}/lvg${YEAR}/data/config/lvg.properties.mysql
    • Update $LVG_DIR in ${PROJECT}/lvg${YEAR}/data/config/lvg.properties.javaDb
  • Update Test Input data & Scripts
    • Update ${TEST}/LVG/UnitTest/data/${YEAR}/Input
    • Update ${TEST}/LVG/UnitTest/bin/TestFlows
    • Update ${TEST}/LVG/UnitTest/bin/TestOptions
    • Update ${TEST}/LVG/UnitTest/bin/AnalyzeFlows
    • Update ${TEST}/LVG/UnitTest/bin/AnalyzeOptions

II. Test Flows

  • shell> cd $${TEST}/LVG/UnitTest/bin
  • shell> TestFlows
  • Copy the Output_Standard directory from last year
  • shell> AnalyzeFlows
    • Compare HSql to MySql
    • Compare this year to last year

    • Check file under ${TEST}/LVG/UnitTest/data/${YEAR}/Report
    • See details in file under ${TEST}/LVG/UnitTest/data/${YEAR}/Diff

III. Test Options

  • shell> cd ${TEST}/LVG/UnitTest/bin
  • shell> TestOptions
  • shell> AnalyzeOptions
    • Compare HSql to MySql
    • Compare this year to last year

    • Check file under ${TEST}/LVG/UnitTest/data/${YEAR}/Report
    • See details in file under ${TEST}/LVG/UnitTest/data/${YEAR}/Diff