镜像自地址
https://github.com/peterbourgon/runsvinit.git
已同步 2026-10-02 03:05:11 +02:00
Working test
这个提交包含在:
@@ -0,0 +1,23 @@
|
||||
.PHONY: test clean
|
||||
|
||||
test: .test.uptodate
|
||||
./test.bash
|
||||
|
||||
.test.uptodate: runsvinit zombie run-zombie Dockerfile
|
||||
docker build -t zombietest .
|
||||
touch $@
|
||||
|
||||
runsvinit: ../*.go
|
||||
env GOOS=linux GOARCH=amd64 go build -o $@ github.com/peterbourgon/runsvinit
|
||||
|
||||
zombie: .build.uptodate
|
||||
docker run --rm -v $(shell pwd):/mount zombietest-build cc -Wall -Werror -o /mount/zombie /zombie.c
|
||||
|
||||
.build.uptodate: build/zombie.c build/Dockerfile
|
||||
docker build -t zombietest-build build/
|
||||
touch $@
|
||||
|
||||
clean:
|
||||
rm -rf .test.uptodate .build.uptodate runsvinit zombie
|
||||
docker stop zombietest zombietest-build >/dev/null 2>&1 || true
|
||||
docker rm zombietest zombietest-build >/dev/null 2>&1 || true
|
||||
在新工单中引用
屏蔽一个用户