diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/git/install_git_from_src.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/git/install_git_from_src.sh b/test/git/install_git_from_src.sh index 4bdcf30..c355224 100644 --- a/test/git/install_git_from_src.sh +++ b/test/git/install_git_from_src.sh @@ -12,5 +12,13 @@ cd /tmp && git clone https://github.com/devcontainers/feature-starter.git cd feature-starter check "perl" bash -c "git -c grep.patternType=perl grep -q 'a.+b'" +check "git-location" bash -c "which git | grep /usr/local/bin/git" + +check "set-git-config-user-name" bash -c "git config --system user.name devcontainers" +check "gitconfig-file-location" bash -c "ls /etc/gitconfig" +check "gitconfig-contains-name" bash -c "cat /etc/gitconfig | grep 'name = devcontainers'" + +check "usr-local-etc-config-does-not-exist" test ! -f "/usr/local/etc/gitconfig" + # Report result reportResults |