Integration Test - Lite Test
Conduct smoke tests and unit tests on Lexical Tools Lite package (lvg${YEAR}lite.tgz). This test is conducted on different builds on Ant, Mvn, and Prod (Ci_Cd from Nexus).
- Setup
shell>cd ${TEST_LVG}/LiteTest/${YEAR}
shell> mkdir ${YEAR}
shell> cp ./${PREV_YEAR}/ReadMe.txt ./${YEAR}
- Download lvgLite${YEAR}.jar
- Ant: ${LVG_DIR}/lib/lvg${YEAR}lite.tgz
- Mvn: ${LVG_DIR}/lvg${YEAR}lite.tgz (run ./packLvgLite first)
- Prod: same as Mvn (except use the final production version)
shell> tar -xzvf lvgLite${YEAR}.jar
- Smoke Test on lvgLite: running scripts
- make sure variable LVG_DIR=AUTO_MODE in the config file (./lvg${YEAR}lite/data/config/lvg.properties).
chmod +x ./bin/*
- test all 7 scripts: fields, lgt, luiNorm, lvg, norm, toAScii, wordInd
- ./bin/lvg -ci
- ./bin/lvg -f:y -p
=> disease
- ./bin/norm -p
=> diseases
- ./bin/lgt (check if document works)
- ./bin/luiNorm -p
=> diseases
- ./bin/fields -F:3:1 -p
=> Field 1|Field 2|Field 3|Field4
- ./bin/toAscii -p
=> Xigris®|spælsau|Evolène ©2002
- ./bin/wordInd -p
=> This is a test
- ...
- Run unit test by integrating lvgLite
- Add config file to: ${PROJECT}/LVG/lvg${YEAR}/data/config/lvg.properties.lite
- Update the value of ${LVG_DIR} in the above file
- Use option for test lite (3)
=> ci.out is different on the lvg root directory.