Added elapsed time to unit tests

This commit is contained in:
deajan 2016-11-17 23:48:06 +01:00
parent 8314116c52
commit d50d66731d
1 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# osync test suite 2016111703 # osync test suite 2016111704
# 4 tests: # 4 tests:
# quicklocal # quicklocal
@ -162,6 +162,8 @@ function PrepareLocalDirs () {
} }
function oneTimeSetUp () { function oneTimeSetUp () {
START_TIME=$SECONDS
source "$DEV_DIR/ofunctions.sh" source "$DEV_DIR/ofunctions.sh"
SetupSSH SetupSSH
@ -181,6 +183,9 @@ function oneTimeTearDown () {
#TODO: uncomment this when dev is done #TODO: uncomment this when dev is done
rm -rf "$OSYNC_TESTS_DIR" rm -rf "$OSYNC_TESTS_DIR"
ELAPSED_TIME=$(($SECONDS - $START_TIME))
echo "It took $ELAPSED_TIME seconds to run these tests."
} }
function setUp () { function setUp () {