2017-02-17 04:01:21 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2018-07-10 18:48:02 +00:00
|
|
|
. "$(dirname "$0")/testlib.sh"
|
2017-02-17 04:01:21 +00:00
|
|
|
|
|
|
|
begin_test "progress meter displays positive progress"
|
|
|
|
(
|
|
|
|
set -e
|
|
|
|
|
|
|
|
reponame="progress-meter"
|
|
|
|
setup_remote_repo "$reponame"
|
|
|
|
clone_repo "$reponame" "$reponame"
|
|
|
|
|
|
|
|
git lfs track "*.dat"
|
|
|
|
git add .gitattributes
|
|
|
|
git commit -m "initial commit"
|
|
|
|
|
|
|
|
for i in `seq 1 128`; do
|
2018-09-10 14:57:10 +00:00
|
|
|
printf "%s" "$i" > "$i.dat"
|
2017-02-17 04:01:21 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
git add *.dat
|
|
|
|
git commit -m "add many objects"
|
|
|
|
|
2020-06-29 16:18:57 +00:00
|
|
|
git push origin main 2>&1 | tee push.log
|
2017-02-17 04:01:21 +00:00
|
|
|
[ "0" -eq "${PIPESTATUS[0]}" ]
|
|
|
|
|
2018-01-06 02:01:50 +00:00
|
|
|
grep "Uploading LFS objects: 100% (128/128), 276 B" push.log
|
2017-02-17 04:01:21 +00:00
|
|
|
)
|
|
|
|
end_test
|