Debian Codegraph @

t/t-batch-unknown-oids.sh

raw symbols SCIP
1 #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash
2
3 . "$(dirnamescip-shell system . . dirname. "$0")/testlib.sh"
4
5 begin_test "transfer queue rejects unknown OIDs"
6 (
7 set -e
8
9 reponame="unknown-oids"
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 contents="unknown-oid"
18 printfscip-shell system . . printf. "%s" "$contents" > a.dat
19
20 gitscip-shell system . . git. add a.dat
21 gitscip-shell system . . git. commit -m "add objects"
22
23 set +e
24 gitscip-shell system . . git. push origin main 2>&1 | teescip-shell system . . tee. push.log
25 res="${PIPESTATUS[0]}"
26 set -e
27
28 refute_server_object "$reponame" "$(calc_oid "$contents")"
29 if [scip-shell system . . `[`. "0" -eq "$res" ]; then
30 echoscip-shell system . . echo. "push successful?"
31 exit 1
32 fi
33
34 grepscip-shell system . . grep. "\[unknown-oid\] The server returned an unknown OID." push.log
35 )
36 end_test