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 Test Input data & Scripts
    • Update ${TEST}/LVG/UnitTest/data/${YEAR}/Input => copy ${TEST_DATA}/${PRE_YEAR}/Input to ${TEST_DATA}/${YEAR}/Input

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 data from 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 data from this year to last year

    • Check file under ${TEST}/LVG/UnitTest/data/${YEAR}/Report
      => -ci will be different
    • See details in file under ${TEST}/LVG/UnitTest/data/${YEAR}/Diff