From 4cd59b96ed93d8a4c35099a0a1171e17170071ab Mon Sep 17 00:00:00 2001 From: Solomon Hykes Date: Sun, 8 Sep 2013 18:45:23 -0700 Subject: [PATCH] Hack: we no longer need to generate test binaries. --- hack/make.sh | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/hack/make.sh b/hack/make.sh index d68e4c0487..c618384b8f 100755 --- a/hack/make.sh +++ b/hack/make.sh @@ -73,21 +73,6 @@ bundle_binary() { ./docker } - -# Build Docker's test suite as a collection of binary files (one per -# sub-package to test) -bundle_test() { - mkdir -p bundles/$VERSION/test - for test_dir in $(find_test_dirs); do - test_binary=$( - cd $test_dir - go test -c -v -ldflags "-X main.GITCOMMIT $GITCOMMIT -X main.VERSION $VERSION -d -w" >&2 - find . -maxdepth 1 -type f -name '*.test' -executable - ) - cp $test_dir/$test_binary bundles/$VERSION/test/ - done -} - # Build docker as an ubuntu package using FPM and REPREPRO (sue me). # bundle_binary must be called first. bundle_ubuntu() { @@ -148,20 +133,9 @@ EOF } -# This helper function walks the current directory looking for directories -# holding Go test files, and prints their paths on standard output, one per -# line. -find_test_dirs() { - find . -name '*_test.go' | - { while read f; do dirname $f; done; } | - sort -u -} - - main() { bundle_binary bundle_ubuntu - #bundle_test cat <