Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(444)

Unified Diff: tests/threads/nacl.scons

Issue 7242011: Get rid of assumptions about ".nexe" extension. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/syscalls/nacl.scons ('k') | tests/time/nacl.scons » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/threads/nacl.scons
===================================================================
--- tests/threads/nacl.scons (revision 5777)
+++ tests/threads/nacl.scons (working copy)
@@ -22,13 +22,15 @@
if env.Bit('nacl_glibc'):
ANNOTATIONS_LIBS += ['dynamic_annotations']
-env.ComponentProgram('thread_test.nexe',
- 'thread_test.c',
- EXTRA_LIBS=['pthread'] + ANNOTATIONS_LIBS,
- )
+thread_test_nexe = env.ComponentProgram(
+ 'thread_test',
+ 'thread_test.c',
+ EXTRA_LIBS=['pthread'] + ANNOTATIONS_LIBS)
+
node = env.CommandSelLdrTestNacl(
'thread_test.out',
- command=[env.File('thread_test.nexe')] + EXTRA_ARGS,
+ thread_test_nexe,
+ args=EXTRA_ARGS,
# TODO: investigate why this is slow on old linux system
size='large',
)
@@ -45,49 +47,53 @@
env.Bit('nacl_glibc')))
-env.ComponentProgram('simple_thread_test.nexe',
- 'simple_thread_test.c',
- EXTRA_LIBS=['pthread'],
- )
+simple_thread_test_nexe = env.ComponentProgram(
+ 'simple_thread_test',
+ 'simple_thread_test.c',
+ EXTRA_LIBS=['pthread'])
+
node = env.CommandSelLdrTestNacl(
'simple_thread_test.out',
- command=[env.File('simple_thread_test.nexe')],
+ simple_thread_test_nexe,
size='small',
)
env.AddNodeToTestSuite(node, ['small_tests'], 'run_simple_thread_test',
is_broken=is_broken)
-env.ComponentProgram('race_test.nexe',
- 'race_test.c',
- EXTRA_LIBS=['pthread'] + ANNOTATIONS_LIBS,
- )
+race_test_nexe = env.ComponentProgram(
+ 'race_test',
+ 'race_test.c',
+ EXTRA_LIBS=['pthread'] + ANNOTATIONS_LIBS)
+
node = env.CommandSelLdrTestNacl(
'race_test.out',
- command=[env.File('race_test.nexe')],
+ race_test_nexe,
size='small',
)
env.AddNodeToTestSuite(node, ['small_tests', 'tsan_bot_tests'], 'run_race_test',
is_broken=is_broken)
-env.ComponentProgram('main_thread_pthread_exit_test.nexe',
- 'main_thread_pthread_exit_test.c',
- EXTRA_LIBS=['pthread'],
- )
+main_thread_pthread_exit_test_nexe = env.ComponentProgram(
+ 'main_thread_pthread_exit_test',
+ 'main_thread_pthread_exit_test.c',
+ EXTRA_LIBS=['pthread'],
+ )
-env.ComponentProgram('main_thread_pthread_exit_test2.nexe',
- 'main_thread_pthread_exit_test2.c',
- EXTRA_LIBS=['pthread'],
- )
+main_thread_pthread_exit_test2_nexe = env.ComponentProgram(
+ 'main_thread_pthread_exit_test2',
+ 'main_thread_pthread_exit_test2.c',
+ EXTRA_LIBS=['pthread'],
+ )
node = env.CommandSelLdrTestNacl(
'main_thread_pthread_exit_test.out',
- command=[env.File('main_thread_pthread_exit_test.nexe')],
+ main_thread_pthread_exit_test_nexe,
size='small',
)
node2 = env.CommandSelLdrTestNacl(
'main_thread_pthread_exit_test2.out',
- command=[env.File('main_thread_pthread_exit_test2.nexe')],
+ main_thread_pthread_exit_test2_nexe,
size='small',
)
@@ -103,34 +109,37 @@
'run_main_thread_pthread_exit_test2',
is_broken=is_broken or not env.Bit('nacl_glibc'))
-env.ComponentProgram('cond_wait_test.nexe',
- 'cond_wait_test.cc',
- EXTRA_LIBS=['pthread'],
- )
+cond_wait_test_nexe = env.ComponentProgram(
+ 'cond_wait_test',
+ 'cond_wait_test.cc',
+ EXTRA_LIBS=['pthread'])
+
node = env.CommandSelLdrTestNacl(
'cond_wait_test.out',
- command=[env.File('cond_wait_test.nexe')],
+ cond_wait_test_nexe,
size='small',
)
env.AddNodeToTestSuite(node, ['small_tests'], 'cond_wait_test',
is_broken=is_broken)
-env.ComponentProgram('thread_stack_test.nexe',
- 'thread_stack_test.c',
- EXTRA_LIBS=['pthread'],
- )
+thread_stack_test_nexe = env.ComponentProgram('thread_stack_test',
+ 'thread_stack_test.c',
+ EXTRA_LIBS=['pthread'])
+
node = env.CommandSelLdrTestNacl(
'thread_stack_test.out',
- command=[env.File('thread_stack_test.nexe')],
+ thread_stack_test_nexe,
size='small',
)
env.AddNodeToTestSuite(node, ['small_tests'], 'run_thread_stack_test',
is_broken=is_broken)
-test_prog = env.ComponentProgram('second_tls_test.nexe',
- env.RawSyscallObjects(['second_tls_test.c']),
- EXTRA_LIBS=['pthread'])
+second_tls_test_nexe = env.ComponentProgram(
+ 'second_tls_test',
+ env.RawSyscallObjects(['second_tls_test.c']),
+ EXTRA_LIBS=['pthread'])
+
node = env.CommandSelLdrTestNacl('second_tls_test.out',
- command=[env.File(test_prog)])
+ second_tls_test_nexe)
env.AddNodeToTestSuite(node, ['small_tests'], 'run_second_tls_test',
is_broken=is_broken)
« no previous file with comments | « tests/syscalls/nacl.scons ('k') | tests/time/nacl.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698