Add a common TestStep to naclports build system.

In an attempt to make testing more common this adds a
default TestStep to the build system which ports can
override to provide testing.  The tests run before the
installation step.

Add a new test step the lua5.2 package.  The rest of the
tests already existed and have simply been standardized.

Also, remove socket permissions from lua_ppapi package
(lua doesn't support sockets out-of-the-box).

R=binji@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@963 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Fix readline: Don't change directory in test phase.

This was broken by the recent change to run tests
before installing.

R=binji@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@964 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Fix ruby_ppapi so it runs 'irb' rather than just ruby.

Also, configure ruby such that the socket module builds.

R=binji@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@965 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Fix bullet test under glibc.

The recent change to run the tests before installation
broke bullet tests because they could find the
bullter shared library.  This change adds the build
location of the library to the library path of the
sel_ldr.

R=binji@chromium.org, binji

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@966 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Enable newlib build of vim.

Also, increase the size of the initial window for terminal
based application.

R=binji@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@967 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Revert newlib build of vim.

The newlib build of vim is waiting on the following
change which will make its configure script work:
https://codereview.chromium.org/63343002/

R=binji@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@968 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Factor out naclterm installation into a shared function.

R=binji@chromium.org

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

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

This changes the upstream repo for hterm and brings in
the latest version.

R=binji@chromium.org

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

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

R=bradnelson@google.com

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@971 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Some fixes needed to build bullet on Mac.

* Work around broken/old sed.
* Set execute bit on install-sh
* Don't run sel_ldr x86_64 tests if sel_ldr_x86_64 doesn't exist (it was added
  recently to the mac sdk, but isn't in pepper_31).

BUG=none
R=sbc@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@972 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Add package for jpeg6b.

Also add tests for jpeg6b and jpeg8d.

BUG=none
R=sbc@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@973 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Add lua tests to lua_ppapi example.

Also, modify naclterm to allow passing of arbitrary
environment variables via URL parameters.

R=binji@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@974 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Update lua example to include benchmarks.

Also add the ability to upload files to the html5 fs
so that can be run by lua.

Also include some describing text.

R=binji@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@975 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Helper script for generating terminal apps

This script wraps create_nmf.py script and generates .html and .js file
for naclterm.js based terminal application.

BUG= none
R=sbc@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@976 7dad1e8b-422e-d2af-fbf5-8013b78bd812
lua_ppapi: ignore failure to mount html5fs.

This will always fail in incognito mode and we don't
want that to prevent lua from running.

R=binji@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@977 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Add script to generate wiki page listing all ports.

The generated page can be seen here:
https://code.google.com/p/naclports/wiki/PortList

R=binji@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@987 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Move all ports from libraries/* or examples/*/* to ports/*.

BUG=none
R=sbc@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@988 7dad1e8b-422e-d2af-fbf5-8013b78bd812
TeX Live 2013 build in examples

TeX Live currently only builds with glibc; we need to add some of the
missing function definition into toolchain provided headers before we
can build with newlib.

The configuration currently builds all library dependencies rather than
using the "system" ones. We might be able to reuse some of the existing
libraries which already have been ported (e.g. freetype) and split out
those which could be reused by other applications (e.g. icu), but we
would need to solve the dependency management first, in particular the
versioning as TeX Live requires specific versions in many cases.

The script generates a terminal application for each binary which is
only useful for debugging at the moment. We need to provide a driver
(e.g. porting Rubber or latexmk) to setup the pipeline for compiling
TeX documents which could be then integrated with a text editor for
authoring these. However, that should be a separate, standalone
application developed independently of this port.

BUG=
R=bradnelson@google.com, sbc@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@990 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Update terminal-based webstore apps.

Update nano, lua, python, ruby and vim terminal based
applications now all use the same startup code.  Ideally
this would not need to be duplicated between them but
this is a step in the right direction.

Update nano patch to removing un-needed parts.

Add CONFIGURE_SENTINAL environment variable which,
when set, allows configure step to be skipped when
the sentinal exists.

R=binji@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@991 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Add glibc-compat stubs for sigaction and sigsuspend.

This allows readline's configure stage to depend sigactions
support.  This fixes the build against the latest SDK.

R=binji@chromium.org

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

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