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

Unified Diff: test/module/gyptest-default.py

Issue 256020: Make scons 'loadable_module' output consistent with make output location... (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: '' Created 11 years, 3 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 | « pylib/gyp/generator/scons.py ('k') | test/module/src/lib1.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/module/gyptest-default.py
===================================================================
--- test/module/gyptest-default.py (revision 0)
+++ test/module/gyptest-default.py (revision 0)
@@ -0,0 +1,24 @@
+#!/usr/bin/env python
+
+"""
+Verifies simple build of a "Hello, world!" program with loadable modules. The
+default for all platforms should be to output the loadable modules to the same
+path as the executable.
+"""
+
+import TestGyp
+
+test = TestGyp.TestGyp()
+
+test.run_gyp('module.gyp', chdir='src')
+
+test.build_all('module.gyp', chdir='src')
+
+expect = """\
+Hello from program.c
+Hello from lib1.c
+Hello from lib2.c
+"""
+test.run_built_executable('program', chdir='src', stdout=expect)
+
+test.pass_test()
« no previous file with comments | « pylib/gyp/generator/scons.py ('k') | test/module/src/lib1.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698