1
0
mirror of https://github.com/golang/go synced 2024-11-19 10:24:43 -07:00
go/src/run.bash
Robert Griesemer 3c2f0ae132 * pretty printing snapshot: towards printing comments nicely
- implemented elastic tabstops algorithm, now correct and documented
- first cut at printing comments (use -comments flag, disabled for now)
- struct field types are now aligned (using elastic tab stops)
- needs more fine-tuning

* fixed a bug in test script
* added quick smoke test to makefile and invoke it in run.bash
  instead of the full test

R=r
OCL=19220
CL=19220
2008-11-13 17:50:46 -08:00

42 lines
528 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
}
(xcd lib/reflect
make clean
time make
bash test.bash
) || exit $?
(xcd lib/regexp
make clean
time make
make test
) || exit $?
(xcd ../usr/gri/gosrc
make clean
time make
# make test
) || exit $?
(xcd ../usr/gri/pretty
make clean
time make
make smoketest
) || exit $?
(xcd ../test
./run
) || exit $?