oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1package claude
2
3import "testing"
4
5// The amd64 pin is the certified one and must not move with the arm64 one
6// beside it. The arm64 digest is the official 2.1.312 linux-arm64 binary.
7func TestReleasePinByArchitecture(t *testing.T) {
8 pin, ok := ReleasePin("amd64")
9 if !ok || pin != ExecutableSHA256 {
10 t.Fatalf("amd64 must be the certified pin, got %q %v", pin, ok)
11 }
12 pin, ok = ReleasePin("arm64")
13 if !ok || pin != "dc4af28917455e009d26704b82a438353a06149e825b6cdf782908b2d28661f5" {
14 t.Fatalf("arm64 pin changed: %q %v", pin, ok)
15 }
16 if pin, ok = ReleasePin("riscv64"); ok || pin != "" {
17 t.Fatal("an architecture with no pinned build has a pin")
18 }
19}
20