File: all.bash

package info (click to toggle)
golang-github-elazarl-goproxy 1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 448 kB
  • ctags: 381
  • sloc: sh: 12; makefile: 5
file content (15 lines) | stat: -rwxr-xr-x 325 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

go test || exit
for action in $@; do go $action; done

mkdir -p bin
find regretable examples/* ext/* -maxdepth 0 -type d | while read d; do
	(cd $d
	go build -o ../../bin/$(basename $d)
	find *_test.go -maxdepth 0 2>/dev/null|while read f;do
		for action in $@; do go $action; done
		go test
		break
	done)
done