Fixed bash memory issue and make mingn and bash work as an extension.

Bash includes its own memory manager based on sbrk. As sbrk doesn't make
sense for NaCl, this unfortunately ends up providing only about 4MB of heap.
Switching it off for NaCl.

Chrome extensions are not allowed to point objects at data urls.
Using a blob object instead.

Adding the unlimitedStorage permission to the manifest for bash.

BUG=None
TEST=None
R=sbc@chromium.org

Review URL: https://codereview.chromium.org/190543008

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1154 7dad1e8b-422e-d2af-fbf5-8013b78bd812
dosbox: Fix PNaCl mac build.

On mac that system 'ar' is incompatible with pnacl's
'ar'.  This change forces dosbox to use pnacl-ar.

Also, fix the sed command in openal-off example
so that it also builds on mac.

R=binji@chromium.org

Review URL: https://codereview.chromium.org/189913019

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1155 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Resurrect old AGG drawing demo.

This new version used ppapi_simple.

R=nfullagar@chromium.org

Review URL: https://codereview.chromium.org/189913007

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1156 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Add final summary step to buildbot.

This avoids the publish step being reported as a failure
when one or more builds fail.

Also, only perform publish step on linux bots.

R=binji@chromium.org

Review URL: https://codereview.chromium.org/195413003

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1157 7dad1e8b-422e-d2af-fbf5-8013b78bd812
drawing-demo: Add dependency on agg.

R=binji@chromium.org

Review URL: https://codereview.chromium.org/194683005

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1158 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Set AR_FLAGS to 'cr' to avoid autotools default of 'cru'.

The 'u' in the autotools default generates a lof of warnings
when passed to nacl's 'ar' which complains:
`u' modifier ignored since `D' is the default (see `U')

Why automake uses AR_FLAGS rather than ARFLAGS I do not know.

R=binji@chromium.org

Review URL: https://codereview.chromium.org/196583002

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1159 7dad1e8b-422e-d2af-fbf5-8013b78bd812
flac: Add missing glibc-compat dependency.

flac needs use glibc-compat during configure other wise
certain tests fail to link.

R=binji@chromium.org

Review URL: https://codereview.chromium.org/196053005

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1160 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Remove gtest from DEPS

Its not used by anything anymore.

R=binji@chromium.org

Review URL: https://codereview.chromium.org/197473009

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1161 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Use 'git number' in folder name when uploading results from buildbot.

Wihtout this the $BUILDBOT_GOT_REVISION is used which is simply
the full sha1.  With this new change foldernames are of the format
<git-number>-<short-hash> which makes them numerically sortable.
If we have build multiple branches we sould also need to include
the branch number here.

R=binji@chromium.org

Review URL: https://codereview.chromium.org/199503002

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1162 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Fix buildbot upload location.

Don't include bot_common.sh until PEPPER_DIR is set otherwise
UPLOAD_PATH cannot include it.

Also, set 'nounset' so that this kind of thing doesn't go
unnoticed in the future.

R=binji@chromium.org

Review URL: https://codereview.chromium.org/195983021

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1163 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Fix for undefined variable error on linux-sdk bot.

This was previously going unnoticed because we were not
using 'set -o nounset'.

R=binji@chromium.org, binji

Review URL: https://codereview.chromium.org/202183002

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1164 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Fix sed calls to be mac compatible

R=binji@chromium.org

Review URL: https://codereview.chromium.org/202483004

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1165 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Fix mimetype in dosbox.html when building with PNaCl.

BUG= https://code.google.com/p/naclports/issues/detail?id=113
R=binji@chromium.org

Review URL: https://codereview.chromium.org/202233004

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1166 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Adding an extension testing framework.

This googletest style testing framework will allow us to use the browser to
test that the extensions and apps we build in naclports actually function.

The testing framework handles:
  - Downloading a pinned version of chromium.
  - Running chromium with a timeout.
  - Exposes a javascript testing library in the style of googletest.
  - Exposes a chrome extension that allows normal pages to probe extensions and
    apps in testing mode.

BUG=None
TEST=plumbing_test
R=binji@chromium.org, sbc@chromium.org

Review URL: https://codereview.chromium.org/202273002

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1167 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Require tests to close all open test extension connections.

In order to ensure tests don't interfere with each other, close any open
connections to the debugging extension at the begining of each test and at the
end, verifying that nothing has been left open.

BUG=None
TEST=None
R=binji@chromium.org

Review URL: https://codereview.chromium.org/197873031

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1168 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Fix race condition in chrome_test, re-enable chrome_test tests on the bots.

It turns out that if a message port is disconnected, outstanding messages are
not guaranteed to be delivered before onDisconnect. Changing the behavior of
the reset message to allow better synchronization.

Setting environment variable CHROME_DEVEL_SANDBOX on the bots to allow
plumbing_test to run.

Correcting filename in download code to ensure mac binaries are marked
executable.

BUG=None
TEST=local + on bot
R=binji@chromium.org

Review URL: https://codereview.chromium.org/204793002

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1169 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Actually turn on plumbing_tests.

Didn't actually uncomment the tests in the last change.

BUG=None
TBR=binji@chromium.org

Review URL: https://codereview.chromium.org/203383013

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1170 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Ignore utility processes and fix linux-sdk bot.

The testProcessTypes test assumed that it knew all process types that a chrome
instance would have. Apparently under some circumstances a 'utility' process
can exist. Ignore these.

Changing buildbot_selector.sh to set OS in linux-sdk builds.

BUG=None
TEST=None
TBR=sbc@chromium.org

Review URL: https://codereview.chromium.org/205013003

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1171 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Adding timeout before begining test interaction with extensions.

Folk wisdom from rginda suggests that extensions may take 100ms to become
available for messaging. Sleeping.

BUG=None
TEST=on bot
R=binji@chromium.org
TBR=binji@chromium.org

Review URL: https://codereview.chromium.org/205603004

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1172 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Add gtest style filters to chrome_test, multiple test dirs, and refactor TEST() macro.

Adding a -f/--filter option to chrome_test that functions approximately like
googletest filters. This allows you to run a subset of the tests.

Refactoring TEST() macro to be implemented on top of the TEST_F() macro.

Adding support for multiple test dirs (to supported mixing checked in and generated files in a test).

BUG=None
TEST=plumbing_test
R=binji@chromium.org

Review URL: https://codereview.chromium.org/199793013

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1173 7dad1e8b-422e-d2af-fbf5-8013b78bd812