git-lfs/test/test-happy-path.sh

23 lines
378 B
Bash
Raw Normal View History

2015-05-14 17:56:05 +00:00
#!/bin/sh
# this should run from the git-lfs project root.
. "test/testlib.sh"
begin_test "happy path"
(
set -e
reponame="$(basename "$0")"
setup_remote_repo $reponame
echo "set up 'local' test directory with git clone"
git clone $GITSERVER/$reponame repo
cd repo
2015-05-14 17:56:05 +00:00
echo "start the test"
2015-05-14 17:56:05 +00:00
out=$($GITLFS track "*.dat" 2>&1)
echo $out | grep "dat"
)
end_test