mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 08:52:26 -05:00
- codeberg.org/gruf/go-kv/v2 v2.0.5 => v2.0.6 - github.com/coreos/go-oidc/v3 v3.14.1 => v3.15.0 - github.com/miekg/dns v1.1.67 => v1.1.68 - github.com/tdewolff/minify/v2 v2.23.9 => v2.23.11 - github.com/yuin/goldmark v1.7.12 => v1.7.13 - golang.org/x/crypto v0.40.0 => v0.41.0 - golang.org/x/image v0.29.0 => v0.30.0 - golang.org/x/net v0.42.0 => v0.43.0 - golang.org/x/sys v0.34.0 => v0.35.0 - golang.org/x/text v0.27.0 => v0.28.0 - modernc.org/sqlite v1.38.0 => v1.38.2 Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4361 Co-authored-by: kim <grufwub@gmail.com> Co-committed-by: kim <grufwub@gmail.com>
117 lines
3.1 KiB
Makefile
117 lines
3.1 KiB
Makefile
# Copyright 2024 The Libc Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style
|
|
# license that can be found in the LICENSE file.
|
|
|
|
.PHONY: all build_all_targets check clean download edit editor generate dev membrk-test test work xtest short-test xlibc libc-test surface
|
|
|
|
SHELL=/bin/bash -o pipefail
|
|
|
|
DIR = /tmp/libc
|
|
TAR = musl-7ada6dde6f9dc6a2836c3d92c2f762d35fd229e0.tar.gz
|
|
URL = https://git.musl-libc.org/cgit/musl/snapshot/$(TAR)
|
|
|
|
all: editor
|
|
golint 2>&1
|
|
staticcheck 2>&1
|
|
|
|
build_all_targets:
|
|
./build_all_targets.sh
|
|
echo done
|
|
|
|
clean:
|
|
rm -f log-* cpu.test mem.test *.out
|
|
git clean -fd
|
|
find testdata/nsz.repo.hu/ -name \*.go -delete
|
|
make -C testdata/nsz.repo.hu/libc-test/ cleanall
|
|
go clean
|
|
|
|
check:
|
|
staticcheck 2>&1 | grep -v U1000
|
|
|
|
download:
|
|
@if [ ! -f $(TAR) ]; then wget $(URL) ; fi
|
|
|
|
edit:
|
|
@if [ -f "Session.vim" ]; then gvim -S & else gvim -p Makefile go.mod builder.json & fi
|
|
|
|
editor:
|
|
# gofmt -l -s -w *.go
|
|
go test -c -o /dev/null
|
|
go build -o /dev/null -v generator*.go
|
|
go build -o /dev/null -v genasm.go
|
|
go vet 2>&1 | grep -n 'asm_' || true
|
|
|
|
generate: download
|
|
mkdir -p $(DIR) || true
|
|
rm -rf $(DIR)/*
|
|
GO_GENERATE_DIR=$(DIR) go run generator*.go
|
|
go build -v
|
|
go test -v -short -count=1 ./...
|
|
git status
|
|
|
|
dev: download
|
|
mkdir -p $(DIR) || true
|
|
rm -rf $(DIR)/*
|
|
echo -n > /tmp/ccgo.log
|
|
GO_GENERATE_DIR=$(DIR) GO_GENERATE_DEV=1 go run -tags=ccgo.dmesg,ccgo.assert generator*.go
|
|
go build -v
|
|
go test -v -short -count=1 ./...
|
|
git status
|
|
|
|
membrk-test:
|
|
echo -n > /tmp/ccgo.log
|
|
touch log-test
|
|
cp log-test log-test0
|
|
go test -v -timeout 24h -count=1 -tags=libc.membrk 2>&1 | tee log-test
|
|
grep -a 'TRC\|TODO\|ERRORF\|FAIL' log-test || true 2>&1 | tee -a log-test
|
|
|
|
test:
|
|
go test -v -timeout 24h -count=1
|
|
|
|
short-test:
|
|
echo -n > /tmp/ccgo.log
|
|
touch log-test
|
|
cp log-test log-test0
|
|
go test -v -timeout 24h -count=1 -short 2>&1 | tee log-test
|
|
grep -a 'TRC\|TODO\|ERRORF\|FAIL' log-test || true 2>&1 | tee -a log-test
|
|
|
|
xlibc:
|
|
echo -n > /tmp/ccgo.log
|
|
touch log-test
|
|
cp log-test log-test0
|
|
go test -v -timeout 24h -count=1 -tags=ccgo.dmesg,ccgo.assert 2>&1 -run TestLibc | tee log-test
|
|
grep -a 'TRC\|TODO\|ERRORF\|FAIL' log-test || true 2>&1 | tee -a log-test
|
|
|
|
xpthread:
|
|
echo -n > /tmp/ccgo.log
|
|
touch log-test
|
|
cp log-test log-test0
|
|
go test -v -timeout 24h -count=1 2>&1 -run TestLibc -re pthread | tee log-test
|
|
grep -a 'TRC\|TODO\|ERRORF\|FAIL' log-test || true 2>&1 | tee -a log-test
|
|
|
|
libc-test:
|
|
echo -n > /tmp/ccgo.log
|
|
touch log-test
|
|
cp log-test log-test0
|
|
go test -v -timeout 24h -count=1 2>&1 -run TestLibc | tee log-test
|
|
# grep -a 'TRC\|TODO\|ERRORF\|FAIL' log-test || true 2>&1 | tee -a log-test
|
|
grep -o 'undefined: \<.*\>' log-test | sort -u
|
|
|
|
xtest:
|
|
echo -n > /tmp/ccgo.log
|
|
touch log-test
|
|
cp log-test log-test0
|
|
go test -v -timeout 24h -count=1 -tags=ccgo.dmesg,ccgo.assert 2>&1 | tee log-test
|
|
grep -a 'TRC\|TODO\|ERRORF\|FAIL' log-test || true 2>&1 | tee -a log-test
|
|
|
|
work:
|
|
rm -f go.work*
|
|
go work init
|
|
go work use .
|
|
go work use ../ccgo/v4
|
|
go work use ../ccgo/v3
|
|
go work use ../cc/v4
|
|
|
|
surface:
|
|
surface > surface.new
|
|
surface surface.old surface.new > log-todo-surface || true
|