Files
landwelle/architecture_x64_v1575_test.go
T
OpenGenesis (MPL 2.0) 2ed47e77b5 feat: migrate Landwelle server builds and deployment to Linux x64 v1.5.75
* feat(x64): add Linux amd64 builds, deploy scripts and regression tests

* docs(x64): update release, operations and architecture references

* docs(x64): add migration, cutover and rollback runbook

* ci(x64): verify Docker runtime and protect container build context
2026-11-07 15:23:52 +01:00

32 lines
1.1 KiB
Go

package main
import (
"os"
"strings"
"testing"
)
func TestLinuxX64ReleaseBuildAndDeployScripts(t *testing.T) {
for _, path := range []string{"scripts/build-x64.sh","scripts/build-migrator-x64.sh","scripts/update-portal-on-x64.sh","scripts/update-migrations-on-x64.sh"} {
b, err := os.ReadFile(path)
if err != nil {t.Fatal(err)}
s := string(b)
if !strings.Contains(s, "linux-amd64") || !strings.Contains(s,"x86_64") {
t.Fatalf("%s is not configured for Linux x64",path)
}
if strings.Contains(s,"GOARCH=arm64") {t.Errorf("%s still builds ARM64",path)}
}
}
func TestLinuxX64ReleaseCI(t *testing.T) {
for path, tokens := range map[string][]string{
".github/workflows/ci.yml":{"build-amd64:", "GOARCH: amd64", "Linux x64 production build"},
"scripts/migrate.sh":{"TARGET_ARCH=\"amd64\"","TARGET_ARCH=\"arm64\""},
"Dockerfile":{"GOARCH=amd64","postgresql-client","ffmpeg"},
} {
content,err := os.ReadFile(path)
if err != nil {t.Fatal(err)}
for _, token := range tokens {
if !strings.Contains(string(content),token) {t.Errorf("%s: missing %q",path,token)}
}
}
}