mirror of
https://github.com/golang/go
synced 2024-11-26 12:48:11 -07:00
7b7b83ba1b
- basic verification of EBNF grammars - tested with (and has testcase for) go_spec.html R=rsc DELTA=150 (148 added, 0 deleted, 2 changed) OCL=31481 CL=31517
59 lines
700 B
Bash
Executable File
59 lines
700 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright 2009 The Go Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style
|
|
# license that can be found in the LICENSE file.
|
|
|
|
set -e
|
|
|
|
xcd() {
|
|
echo
|
|
echo --- cd $1
|
|
builtin cd $1
|
|
}
|
|
|
|
maketest() {
|
|
for i
|
|
do
|
|
(
|
|
xcd $i
|
|
make clean
|
|
time make
|
|
make test
|
|
) || exit $?
|
|
done
|
|
}
|
|
|
|
maketest \
|
|
pkg \
|
|
|
|
# all of these are subtly different
|
|
# from what maketest does.
|
|
|
|
|
|
(xcd pkg/sync;
|
|
make clean;
|
|
time make
|
|
GOMAXPROCS=10 make test
|
|
) || exit $?
|
|
|
|
(xcd cmd/gofmt
|
|
make clean
|
|
time make
|
|
time make smoketest
|
|
) || exit $?
|
|
|
|
(xcd cmd/ebnflint
|
|
make clean
|
|
time make
|
|
time make test
|
|
) || exit $?
|
|
|
|
(xcd ../doc/progs
|
|
time ./run
|
|
) || exit $?
|
|
|
|
(xcd ../test
|
|
./run
|
|
) || exit $?
|
|
|