Added install and uninstall to test system
This commit is contained in:
parent
2a9a829876
commit
215e4f2108
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
## On CYGWIN / MSYS, ACL and extended attributes aren't supported
|
## On CYGWIN / MSYS, ACL and extended attributes aren't supported
|
||||||
|
|
||||||
# osync test suite 2017020801
|
# osync test suite 2017020802
|
||||||
|
|
||||||
# 4 tests:
|
# 4 tests:
|
||||||
# quicklocal
|
# quicklocal
|
||||||
|
@ -264,6 +264,10 @@ function oneTimeTearDown () {
|
||||||
#rm -rf "$OSYNC_TESTS_DIR"
|
#rm -rf "$OSYNC_TESTS_DIR"
|
||||||
rm -f "$TMP_FILE"
|
rm -f "$TMP_FILE"
|
||||||
|
|
||||||
|
cd "$OSYNC_DIR"
|
||||||
|
./install.sh --remove --silent --no-stats
|
||||||
|
assertEquals "Uninstall failed" "0" $?
|
||||||
|
|
||||||
ELAPSED_TIME=$(($SECONDS - $START_TIME))
|
ELAPSED_TIME=$(($SECONDS - $START_TIME))
|
||||||
echo "It took $ELAPSED_TIME seconds to run these tests."
|
echo "It took $ELAPSED_TIME seconds to run these tests."
|
||||||
}
|
}
|
||||||
|
@ -279,6 +283,10 @@ function test_Merge () {
|
||||||
./merge.sh
|
./merge.sh
|
||||||
assertEquals "Merging code" "0" $?
|
assertEquals "Merging code" "0" $?
|
||||||
|
|
||||||
|
cd "$OSYNC_DIR"
|
||||||
|
./install.sh --silent --no-stats
|
||||||
|
assertEquals "Install failed" "0" $?
|
||||||
|
|
||||||
# Set osync version to stable while testing to avoid warning message
|
# Set osync version to stable while testing to avoid warning message
|
||||||
SetConfFileValue "$OSYNC_DIR/$OSYNC_EXECUTABLE" "IS_STABLE" "yes"
|
SetConfFileValue "$OSYNC_DIR/$OSYNC_EXECUTABLE" "IS_STABLE" "yes"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue