1#!/bin/sh 2 3test_description='external credential helper tests' 4. ./test-lib.sh 5. "$TEST_DIRECTORY"/lib-credential.sh 6 7iftest -z"$GIT_TEST_CREDENTIAL_HELPER";then 8 skip_all="used to test external credential helpers" 9 test_done 10fi 11 12test -z"$GIT_TEST_CREDENTIAL_HELPER_SETUP"|| 13eval"$GIT_TEST_CREDENTIAL_HELPER_SETUP" 14 15# clean before the test in case there is cruft left 16# over from a previous run that would impact results 17helper_test_clean "$GIT_TEST_CREDENTIAL_HELPER" 18 19helper_test "$GIT_TEST_CREDENTIAL_HELPER" 20 21iftest -z"$GIT_TEST_CREDENTIAL_HELPER_TIMEOUT";then 22 say "# skipping timeout tests (GIT_TEST_CREDENTIAL_HELPER_TIMEOUT not set)" 23else 24 helper_test_timeout "$GIT_TEST_CREDENTIAL_HELPER_TIMEOUT" 25fi 26 27# clean afterwards so that we are good citizens 28# and don't leave cruft in the helper's storage, which 29# might be long-term system storage 30helper_test_clean "$GIT_TEST_CREDENTIAL_HELPER" 31 32test_done