Currently, bionic only build a subset of the examples. This changes turns on...

Currently, bionic only build a subset of the examples.  This changes turns on all the examples and tests compiling those examples.

BUG=344574
R=sbc@chromium.org, binji@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284165 0039d316-1c4b-4281-b951-d872f2087c98
parent 25950ad2
......@@ -87,6 +87,11 @@ def StepTestSDK():
])
cmd.extend([sys.executable, 'test_sdk.py'])
# TODO(noelallen): crbug 386332
# For Bionic SDK, only build do a build test until we have hardware.
if 'bionic' in os.getenv('BUILDBOT_BUILDERNAME', ''):
cmd.extend(['build_examples', 'copy_tests', 'build_tests'])
Run(cmd, cwd=SCRIPT_DIR)
......@@ -112,9 +117,6 @@ def main(args):
# to pass --build-only argument.
if os.getenv('BUILDBOT_BUILDERNAME', '').endswith('build'):
options.build_only = True
# TODO(noelallen): Enable testing on bionic when we have an ARM solution.
if 'bionic' in os.getenv('BUILDBOT_BUILDERNAME', ''):
options.build_only = True
StepArmRunHooks()
StepRunUnittests()
......
{
'TOOLS': ['newlib', 'glibc', 'pnacl', 'win', 'linux'],
'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'win', 'linux'],
'TARGETS': [
{
'NAME' : 'core',
......
{
'TOOLS': ['newlib', 'glibc', 'pnacl', 'win', 'linux'],
'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'win', 'linux'],
'TARGETS': [
{
'NAME' : 'file_io',
......
{
'TOOLS': ['newlib', 'glibc', 'pnacl', 'win', 'linux'],
'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'win', 'linux'],
'TARGETS': [
{
'NAME' : 'gamepad',
......
{
'TOOLS': ['newlib', 'glibc', 'pnacl', 'win', 'linux'],
'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'win', 'linux'],
'TARGETS': [
{
'NAME' : 'graphics_3d',
......
{
'TOOLS': ['newlib', 'glibc', 'pnacl', 'linux', 'win'],
'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'linux', 'win'],
'TARGETS': [
{
'NAME' : 'input_event',
......
{
'TOOLS': ['newlib', 'glibc', 'pnacl', 'win', 'linux'],
'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'win', 'linux'],
'TARGETS': [
{
'NAME' : 'media_stream_audio',
......
{
'TOOLS': ['newlib', 'glibc', 'pnacl', 'win', 'linux'],
'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'win', 'linux'],
'TARGETS': [
{
'NAME' : 'media_stream_video',
......
{
'TOOLS': ['newlib', 'glibc', 'pnacl', 'win', 'linux'],
'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'win', 'linux'],
'TARGETS': [
{
'NAME' : 'mouse_cursor',
......
{
'DISABLE_PACKAGE': True,
'TOOLS': ['newlib', 'glibc', 'pnacl', 'win', 'linux'],
'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'win', 'linux'],
'TARGETS': [
{
'NAME' : 'mouse_lock',
......
{
'TOOLS': ['newlib', 'glibc', 'pnacl', 'win', 'linux'],
'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'win', 'linux'],
'TARGETS': [
{
'NAME' : 'network_monitor',
......
{
'TOOLS': ['newlib', 'glibc', 'pnacl', 'win', 'linux'],
'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'win', 'linux'],
'TARGETS': [
{
'NAME' : 'socket',
......
{
'TOOLS': ['newlib', 'glibc', 'pnacl', 'win', 'linux'],
'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'win', 'linux'],
'TARGETS': [
{
'NAME' : 'url_loader',
......
{
'TOOLS': ['newlib', 'glibc', 'pnacl', 'win', 'linux'],
'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'win', 'linux'],
'TARGETS': [
{
'NAME' : 'var_array_buffer',
......
{
'TOOLS': ['newlib', 'glibc', 'pnacl', 'win', 'linux'],
'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'win', 'linux'],
'TARGETS': [
{
'NAME' : 'var_dictionary',
......
{
'TOOLS': ['newlib', 'glibc', 'pnacl', 'win', 'linux'],
'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'win', 'linux'],
'TARGETS': [
{
'NAME' : 'websocket',
......
......@@ -41,6 +41,16 @@
#define va_copy(d, s) ((d) = (s))
#endif
/**
* The location of MAX is inconsitantly between LIBCs, so instead
* we define it here for consistency.
*/
static int larger_int_of(int a, int b) {
if (a > b)
return a;
return b;
}
typedef struct {
const char* name;
HandleFunc function;
......@@ -312,8 +322,8 @@ static void* EchoThread(void* user_data) {
int fd1 = open("/dev/jspipe1", O_RDWR | O_NONBLOCK);
int fd2 = open("/dev/jspipe2", O_RDWR | O_NONBLOCK);
int fd3 = open("/dev/jspipe3", O_RDWR | O_NONBLOCK);
int nfds = MAX(fd1, fd2);
nfds = MAX(nfds, fd3);
int nfds = larger_int_of(fd1, fd2);
nfds = larger_int_of(nfds, fd3);
while (1) {
fd_set readfds;
FD_ZERO(&readfds);
......
{
'TOOLS': ['bionic', 'newlib', 'glibc', 'pnacl', 'linux', 'win'],
'TOOLS': ['bionic', 'newlib', 'glibc', 'bionic', 'pnacl', 'linux', 'win'],
'SEARCH': [
'../../../../third_party/jsoncpp/overrides/include/json',
'../../../../third_party/jsoncpp/overrides/src/lib_json',
......
{
'DISABLE': True,
'TOOLS': ['newlib', 'glibc', 'linux', 'win'],
'TOOLS': ['newlib', 'glibc', 'bionic', 'linux', 'win'],
'SEARCH': [
'../../../../third_party/libjpeg',
],
......
{
'TOOLS': ['bionic', 'newlib', 'glibc', 'pnacl', 'linux'],
'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'linux'],
'SEARCH': [
'.',
'pepper',
......
{
'TOOLS': ['bionic', 'newlib', 'glibc', 'pnacl', 'win', 'linux'],
'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'win', 'linux'],
'SEARCH': [
'../../../../ppapi/cpp',
'../../../../ppapi/cpp/dev',
......
{
'TOOLS': ['newlib', 'glibc', 'pnacl', 'win', 'linux'],
'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'win', 'linux'],
'SEARCH': [
'../../../../ppapi/c/private',
'../../../../ppapi/cpp/private',
......
{
'TOOLS': ['bionic', 'newlib', 'glibc', 'pnacl', 'linux', 'win'],
'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'linux', 'win'],
'SEARCH' : [
'../../../../ppapi/lib/gl/gles2',
'../../../../ppapi/lib/gl/include/EGL',
......
{
'TOOLS': ['bionic', 'newlib', 'glibc', 'pnacl', 'win', 'linux'],
'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'win', 'linux'],
'TARGETS': [
{
'NAME' : 'sdk_util',
......
{
'DISABLE': True,
'TOOLS': ['bionic', 'newlib', 'glibc', 'linux', 'win'],
'TOOLS': ['newlib', 'glibc', 'bionic', 'linux', 'win'],
'SEARCH': [
'../../../../third_party/zlib',
],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment