| 1 | #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash |
| 2 | |
| 3 | . "$(dirnamescip-shell system . . dirname. "$0")/testlib.sh" |
| 4 | |
| 5 | begin_test "progress meter displays positive progress" |
| 6 | ( |
| 7 | set -e |
| 8 | |
| 9 | reponame="progress-meter" |
| 10 | setup_remote_repo "$reponame" |
| 11 | clone_repo "$reponame" "$reponame" |
| 12 | |
| 13 | gitscip-shell system . . git. lfs track "*.dat" |
| 14 | gitscip-shell system . . git. add .gitattributes |
| 15 | gitscip-shell system . . git. commit -m "initial commit" |
| 16 | |
| 17 | for i in `seqscip-shell system . . seq. 1 128`; do |
| 18 | printfscip-shell system . . printf. "%s" "$i" > "$i.dat" |
| 19 | done |
| 20 | |
| 21 | gitscip-shell system . . git. add *.dat |
| 22 | gitscip-shell system . . git. commit -m "add many objects" |
| 23 | |
| 24 | gitscip-shell system . . git. push origin main 2>&1 | teescip-shell system . . tee. push.log |
| 25 | [scip-shell system . . `[`. "0" -eq "${PIPESTATUS[0]}" ] |
| 26 | |
| 27 | grepscip-shell system . . grep. "Uploading LFS objects: 100% (128/128), 276 B" push.log |
| 28 | ) |
| 29 | end_test |