Commit Graph

20 Commits

Author SHA1 Message Date
blois@google.com 5871625004 Adding the ability for the test server to listen on non-loopback addrs.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18489 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 22:27:30 +00:00
efortuna@google.com c6179a50c0 Revert "Change the location of the output directory" plus one other fix.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18295 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-09 02:07:19 +00:00
kustermann@google.com 3396dc77a9 Change the location of the output directory of generated tests to be inside build directory, but not relative to the dart root.
This is causing issues on dartium builders where we actually only run because there is a build/Release (and out/Release or xcodebuild/Release for mac/linux) on the bot that has been created inside src/dart.

Also, fix the http server in the testing script to serve files from the output directory - otherwise the tests will not be accessible if an alternative build directory is used.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18176 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-06 16:38:09 +00:00
kustermann@google.com 0a5a3306f7 Added '--package-root' to http_server.dart.
Review URL: https://codereview.chromium.org//12087130

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17968 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-01 10:22:55 +00:00
ricow@google.com 746d3664db Revert revision 17848 - this is breaking dartium testing
Review URL: https://codereview.chromium.org//12087086

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17850 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-30 15:27:52 +00:00
ricow@google.com 5947bba6cc Change the location of the output directory of generated tests to be inside output directory, but not relative to the dart root.
This is causing issues on dartium builders where we actually only run because there is a build/Release (and out/Release or xcodebuild/Release for mac/linux) on the bot that has been created inside src/dart.

Also, fix the http server in the testing script to serve files from the output directory - otherwise the tests will not be accessible if an alternative build directory is used.
Review URL: https://codereview.chromium.org//11896031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17848 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-30 14:38:47 +00:00
efortuna@google.com 0345368d65 Unbreak local browser testing.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17176 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-17 00:35:23 +00:00
ahe@google.com 0aa3c7b35f Make test.dart self-contained again.
Review URL: https://codereview.chromium.org//11961017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17139 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-16 15:21:22 +00:00
ricow@google.com 6f53169ec1 Don't exit test script on an error in the http server.
This often happens if the client closes the connection unexpectedly
Review URL: https://codereview.chromium.org//11971012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17128 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-16 09:57:35 +00:00
whesse@google.com 747f79ce1f Upload new Dart binaries and re-enable unit tests for test scripts.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17031 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-14 20:45:42 +00:00
efortuna@google.com 7bc4cb245e Delete debugging change that slipped in.
Review URL: https://codereview.chromium.org//11889002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17008 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-13 01:42:58 +00:00
efortuna@google.com 4622dc3e76 Make browser tests all run from a server instead of the local filesystem.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17007 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-13 01:11:07 +00:00
efortuna@google.com 274ac61643 Reverting everything because package root + dartium is causing serious problems.
DART_PACKAGE_ROOT environment variable is set for drt, but not dartium, and is location is problematic with respect to serving the files in the dartium checkout.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16678 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-05 05:20:06 +00:00
efortuna@google.com 1d3b0c4b3b Add cross-origin test with credentials. I modified the test framework slightly
as well to Enable Cross-origin requests while testing from local files.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16671 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-05 02:43:31 +00:00
blois@google.com d14fcf38fd Adding test for validating that formdata is sent.
BUG=7152

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16524 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-27 22:28:00 +00:00
kustermann@google.com 62c83a4443 Moved the testing scripts to the new import/library/part syntax
Review URL: https://codereview.chromium.org//11575028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16163 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-14 14:19:01 +00:00
ager@google.com 0fed52bd2d Only start http server for browser tests.
This reduces the annoyance of the fixed port number used and allows
non-browser test configurations to be run in parallel (or one browser
configuration in parallel with a bunch of non-browser configurations).

R=ahe@google.com,ricow@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14403 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-01 12:58:44 +00:00
ager@google.com 33b4a0ac44 Fix issues with test.dart that appeared on Mac.
The issue was that we did not properly wait for subprocesses to
die. This was hidden by the fact that we always used exit to exit from
test.dart. I have removed all exit(0) calls from test.dart to keep us
honest. If nothing went wrong test.dart should terminate with exit
code 0 automatically.

R=ricow@google.com,ahe@google.com
BUG=dartbug.com/5644

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13286 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-05 11:41:47 +00:00
ager@google.com f8308cb913 Temporary fix to mac buildbot issue. We need to figure out why
the socket is not immediately available for reuse on the mac.

R=sgjesse@google.com,ahe@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13234 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-04 14:43:47 +00:00
ager@google.com c4c4b7f08c Add in-process http server to the dart test scripts.
Removed support for extra commands. Change pkg/intl test to use
builtin http server.

Fixed regression in test runner so the test script terminates when
passing in an unknown selector.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13217 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-04 10:43:48 +00:00