From 53e9ebccee89087cb20d456e576e2f2c95eaa630 Mon Sep 17 00:00:00 2001 From: deajan Date: Mon, 29 Aug 2016 17:40:32 +0200 Subject: [PATCH] Updated unit tests --- dev/tests/run_tests.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/dev/tests/run_tests.sh b/dev/tests/run_tests.sh index 3f88d6a..093a89d 100755 --- a/dev/tests/run_tests.sh +++ b/dev/tests/run_tests.sh @@ -51,4 +51,18 @@ function test_osync_quicksync_local () { assertEquals "Target state dir exists" "0" $? } + +function test_osync_quicksync_remote () { + CreateReplicas + cd "$DEV_DIR" + ./n_osync.sh --initiator="$INITIATOR_DIR" --target="ssh://localhost:49999/$TARGET_DIR" --rsakey=/root/.ssh/id_rsa_local > /dev/null + assertEquals "Return code" "0" $? + + [ -d "$INITIATOR_DIR/$OSYNC_STATE_DIR" ] + assertEquals "Initiator state dir exists" "0" $? + + [ -d "$TARGET_DIR/$OSYNC_STATE_DIR" ] + assertEquals "Target state dir exists" "0" $? +} + . ./shunit2/shunit2