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(): ...@@ -87,6 +87,11 @@ def StepTestSDK():
]) ])
cmd.extend([sys.executable, 'test_sdk.py']) 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) Run(cmd, cwd=SCRIPT_DIR)
...@@ -112,9 +117,6 @@ def main(args): ...@@ -112,9 +117,6 @@ def main(args):
# to pass --build-only argument. # to pass --build-only argument.
if os.getenv('BUILDBOT_BUILDERNAME', '').endswith('build'): if os.getenv('BUILDBOT_BUILDERNAME', '').endswith('build'):
options.build_only = True 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() StepArmRunHooks()
StepRunUnittests() StepRunUnittests()
......
{ {
'TOOLS': ['newlib', 'glibc', 'pnacl', 'win', 'linux'], 'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'win', 'linux'],
'TARGETS': [ 'TARGETS': [
{ {
'NAME' : 'core', 'NAME' : 'core',
......
{ {
'TOOLS': ['newlib', 'glibc', 'pnacl', 'win', 'linux'], 'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'win', 'linux'],
'TARGETS': [ 'TARGETS': [
{ {
'NAME' : 'file_io', 'NAME' : 'file_io',
......
{ {
'TOOLS': ['newlib', 'glibc', 'pnacl', 'win', 'linux'], 'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'win', 'linux'],
'TARGETS': [ 'TARGETS': [
{ {
'NAME' : 'gamepad', 'NAME' : 'gamepad',
......
{ {
'TOOLS': ['newlib', 'glibc', 'pnacl', 'win', 'linux'], 'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'win', 'linux'],
'TARGETS': [ 'TARGETS': [
{ {
'NAME' : 'graphics_3d', 'NAME' : 'graphics_3d',
......
{ {
'TOOLS': ['newlib', 'glibc', 'pnacl', 'linux', 'win'], 'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'linux', 'win'],
'TARGETS': [ 'TARGETS': [
{ {
'NAME' : 'input_event', 'NAME' : 'input_event',
......
{ {
'TOOLS': ['newlib', 'glibc', 'pnacl', 'win', 'linux'], 'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'win', 'linux'],
'TARGETS': [ 'TARGETS': [
{ {
'NAME' : 'media_stream_audio', 'NAME' : 'media_stream_audio',
......
{ {
'TOOLS': ['newlib', 'glibc', 'pnacl', 'win', 'linux'], 'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'win', 'linux'],
'TARGETS': [ 'TARGETS': [
{ {
'NAME' : 'media_stream_video', 'NAME' : 'media_stream_video',
......
{ {
'TOOLS': ['newlib', 'glibc', 'pnacl', 'win', 'linux'], 'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'win', 'linux'],
'TARGETS': [ 'TARGETS': [
{ {
'NAME' : 'mouse_cursor', 'NAME' : 'mouse_cursor',
......
{ {
'DISABLE_PACKAGE': True, 'DISABLE_PACKAGE': True,
'TOOLS': ['newlib', 'glibc', 'pnacl', 'win', 'linux'], 'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'win', 'linux'],
'TARGETS': [ 'TARGETS': [
{ {
'NAME' : 'mouse_lock', 'NAME' : 'mouse_lock',
......
{ {
'TOOLS': ['newlib', 'glibc', 'pnacl', 'win', 'linux'], 'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'win', 'linux'],
'TARGETS': [ 'TARGETS': [
{ {
'NAME' : 'network_monitor', 'NAME' : 'network_monitor',
......
{ {
'TOOLS': ['newlib', 'glibc', 'pnacl', 'win', 'linux'], 'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'win', 'linux'],
'TARGETS': [ 'TARGETS': [
{ {
'NAME' : 'socket', 'NAME' : 'socket',
......
{ {
'TOOLS': ['newlib', 'glibc', 'pnacl', 'win', 'linux'], 'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'win', 'linux'],
'TARGETS': [ 'TARGETS': [
{ {
'NAME' : 'url_loader', 'NAME' : 'url_loader',
......
{ {
'TOOLS': ['newlib', 'glibc', 'pnacl', 'win', 'linux'], 'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'win', 'linux'],
'TARGETS': [ 'TARGETS': [
{ {
'NAME' : 'var_array_buffer', 'NAME' : 'var_array_buffer',
......
{ {
'TOOLS': ['newlib', 'glibc', 'pnacl', 'win', 'linux'], 'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'win', 'linux'],
'TARGETS': [ 'TARGETS': [
{ {
'NAME' : 'var_dictionary', 'NAME' : 'var_dictionary',
......
{ {
'TOOLS': ['newlib', 'glibc', 'pnacl', 'win', 'linux'], 'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'win', 'linux'],
'TARGETS': [ 'TARGETS': [
{ {
'NAME' : 'websocket', 'NAME' : 'websocket',
......
...@@ -41,6 +41,16 @@ ...@@ -41,6 +41,16 @@
#define va_copy(d, s) ((d) = (s)) #define va_copy(d, s) ((d) = (s))
#endif #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 { typedef struct {
const char* name; const char* name;
HandleFunc function; HandleFunc function;
...@@ -312,8 +322,8 @@ static void* EchoThread(void* user_data) { ...@@ -312,8 +322,8 @@ static void* EchoThread(void* user_data) {
int fd1 = open("/dev/jspipe1", O_RDWR | O_NONBLOCK); int fd1 = open("/dev/jspipe1", O_RDWR | O_NONBLOCK);
int fd2 = open("/dev/jspipe2", O_RDWR | O_NONBLOCK); int fd2 = open("/dev/jspipe2", O_RDWR | O_NONBLOCK);
int fd3 = open("/dev/jspipe3", O_RDWR | O_NONBLOCK); int fd3 = open("/dev/jspipe3", O_RDWR | O_NONBLOCK);
int nfds = MAX(fd1, fd2); int nfds = larger_int_of(fd1, fd2);
nfds = MAX(nfds, fd3); nfds = larger_int_of(nfds, fd3);
while (1) { while (1) {
fd_set readfds; fd_set readfds;
FD_ZERO(&readfds); FD_ZERO(&readfds);
......
{ {
'TOOLS': ['bionic', 'newlib', 'glibc', 'pnacl', 'linux', 'win'], 'TOOLS': ['bionic', 'newlib', 'glibc', 'bionic', 'pnacl', 'linux', 'win'],
'SEARCH': [ 'SEARCH': [
'../../../../third_party/jsoncpp/overrides/include/json', '../../../../third_party/jsoncpp/overrides/include/json',
'../../../../third_party/jsoncpp/overrides/src/lib_json', '../../../../third_party/jsoncpp/overrides/src/lib_json',
......
{ {
'DISABLE': True, 'DISABLE': True,
'TOOLS': ['newlib', 'glibc', 'linux', 'win'], 'TOOLS': ['newlib', 'glibc', 'bionic', 'linux', 'win'],
'SEARCH': [ 'SEARCH': [
'../../../../third_party/libjpeg', '../../../../third_party/libjpeg',
], ],
......
{ {
'TOOLS': ['bionic', 'newlib', 'glibc', 'pnacl', 'linux'], 'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'linux'],
'SEARCH': [ 'SEARCH': [
'.', '.',
'pepper', 'pepper',
......
{ {
'TOOLS': ['bionic', 'newlib', 'glibc', 'pnacl', 'win', 'linux'], 'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'win', 'linux'],
'SEARCH': [ 'SEARCH': [
'../../../../ppapi/cpp', '../../../../ppapi/cpp',
'../../../../ppapi/cpp/dev', '../../../../ppapi/cpp/dev',
......
{ {
'TOOLS': ['newlib', 'glibc', 'pnacl', 'win', 'linux'], 'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'win', 'linux'],
'SEARCH': [ 'SEARCH': [
'../../../../ppapi/c/private', '../../../../ppapi/c/private',
'../../../../ppapi/cpp/private', '../../../../ppapi/cpp/private',
......
{ {
'TOOLS': ['bionic', 'newlib', 'glibc', 'pnacl', 'linux', 'win'], 'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'linux', 'win'],
'SEARCH' : [ 'SEARCH' : [
'../../../../ppapi/lib/gl/gles2', '../../../../ppapi/lib/gl/gles2',
'../../../../ppapi/lib/gl/include/EGL', '../../../../ppapi/lib/gl/include/EGL',
......
{ {
'TOOLS': ['bionic', 'newlib', 'glibc', 'pnacl', 'win', 'linux'], 'TOOLS': ['newlib', 'glibc', 'bionic', 'pnacl', 'win', 'linux'],
'TARGETS': [ 'TARGETS': [
{ {
'NAME' : 'sdk_util', 'NAME' : 'sdk_util',
......
{ {
'DISABLE': True, 'DISABLE': True,
'TOOLS': ['bionic', 'newlib', 'glibc', 'linux', 'win'], 'TOOLS': ['newlib', 'glibc', 'bionic', 'linux', 'win'],
'SEARCH': [ 'SEARCH': [
'../../../../third_party/zlib', '../../../../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