Commit Graph

702 Commits

Author SHA1 Message Date
David Glasser
94683896b7 Don't ignore nonexistent settings file in run
Refactorings in 1.0.2 accidentally started ignoring errors related to
--settings.  Fixes #3757.
2015-02-17 16:36:39 -08:00
Avital Oliver
aa6e1b3909 Remove unused tag from self-test 2015-02-11 19:40:40 -08:00
Avital Oliver
e866f7ca8c Tag known failing Windows self-tests
This way we can start running `meteor self-test` for regression testing,
while in parallel addressing the failures that are tagged by this commit.
2015-02-10 13:33:14 -08:00
Sashko Stubailo
9ef49c60dc Comment out empty string arg tests
These don't work on Windows because of a Node bug that is fixed in a
newer release. These tests aren't super necessary anyway, so it's
better to comment the empty string ones to let the real ones run
2015-02-10 12:28:25 -08:00
Avital Oliver
dd5dc01e81 Fix bundler-asset tests on Windows 2015-02-10 12:27:13 -08:00
Sashko Stubailo
1bd5ea4cc5 Fix test that was broken by newline conversion
We used to convert newlines on readFile, and now we don't.
This broke the test, so I have manually inspected the output
and updated the hash.
2015-02-10 11:54:43 -08:00
Avital Oliver
08fccd4e27 Don't run tests with colon filenames on Windows
These tests are intended to guard against accidentally working with files
that have colons when on Mac/Linux, and then those packages not working on
Windows. There's nothing to test about the other direction.
2015-02-10 11:46:14 -08:00
Sashko Stubailo
23e71a764f Mark two tests as client-refresh 2015-02-10 11:42:36 -08:00
Avital Oliver
15e87e33e8 Fix tests hard-coding METEOR as release track
Now it reads the value from catalog.DEFAULT_TRACK, which is both more
correct and necessary for the current "preview" state of Windows.

Fixed the following self-tests on Windows:
- run: update during run
- releases: springboard

Unfortunately, the autoupdate self-test still fails, maybe due to a real
bug?
2015-02-10 11:21:17 -08:00
Sashko Stubailo
2eaa848bcc Convert __dirname to standard path 2015-02-09 13:49:57 -08:00
Sashko Stubailo
6aa9142e67 Fix some test bugs related to package names/dirs 2015-02-06 14:49:23 -08:00
Sashko Stubailo
e6a26bded0 Wrong method call in self test. (add flow plz) 2015-02-06 13:56:01 -08:00
Sashko Stubailo
497340498f Fix missing createPackage arguments in selftest 2015-02-06 13:53:24 -08:00
Avital Oliver
8fb583507f Make "run" selftest pass on Windows 2015-02-06 13:47:15 -08:00
David Glasser
30481e10bb Mongo 2.6 makes --nohttpinterface the default 2015-02-05 22:40:44 -08:00
David Glasser
2cc0d41ee2 Fix packages with organizations test 2015-02-05 22:32:42 -08:00
David Glasser
bcf2b58946 avoid use of shell
use execFile's callback instead of an event
2015-02-05 20:39:06 -08:00
Slava Kim
5948763bbb More windows cordova tests, fixes for every command 2015-02-05 16:07:49 -08:00
Slava Kim
a470dc99c2 Refine the windows cordova script once again 2015-02-05 15:31:50 -08:00
Slava Kim
91667d927f Make the cordova on windows test more nuanced on having whethear the app had
mobile platforms or not
2015-02-05 15:16:58 -08:00
Slava Kim
810eaa573d Add the underscore dependency to the test 2015-02-05 15:11:51 -08:00
Slava Kim
f4da8d4927 More Cordova on Windows self-tests 2015-02-05 15:09:11 -08:00
Slava Kim
2c1e27d973 Add a self-test for meteor script parsing 2015-02-05 14:05:17 -08:00
Sashko Stubailo
4d3938c5b0 Add Windows tag to self-test, use it on new test 2015-02-05 11:00:17 -08:00
Sashko Stubailo
85dcd56628 Add a self test for windows cordova message 2015-02-05 10:56:25 -08:00
Avital Oliver
23e249e392 Add the cordova tag to a few selftests
Tests with this tag are currently skipped in Windows
2015-02-05 00:12:10 -08:00
Avital Oliver
59b1e145c6 Fix selftests that create packages with colons
We used to create package directories with the same name as the package
name, but on windows you can't have directories with colons in them.

Now Sandbox.prototype.createPackage takes an additional argument
with the directory name, as distinct from the package name.

This commit updates all the tests that called createPackage to generate
a directory name with no colons.
2015-02-05 00:12:09 -08:00
Avital Oliver
c614ebd107 Fix selftests in Windows with fake warehouses
There were two issues:
1. The meteor.bat file we used to simulate symlinks in Windows didn't
   correctly deal with absolute paths
2. The way we overrided DEFAULT_TRACK in Windows led to some other piece
   of code not doing the right thing, presumably because it compared
   a track to DEFAULT_TRACK which wasn't overridden in Windows.
2015-02-04 20:25:27 -08:00
Sashko Stubailo
a75cae93ed Merge branch 'devel' into windows-r
Conflicts:
	packages/package-version-parser/package.js
	tools/bundler.js
	tools/server/boot.js
2015-02-04 15:50:31 -08:00
Sashko Stubailo
b3cb7a49f7 Merge branch 'devel' into windows-cr
Conflicts:
	packages/application-configuration/package.js
	packages/ctl-helper/package.js
	packages/ctl/package.js
	packages/dev-bundle-fetcher/package.js
	packages/follower-livedata/package.js
	packages/jquery/package.js
	packages/star-translate/package.js
	packages/test-in-browser/package.js
	tools/bundler.js
	tools/compiler.js
	tools/package-client.js
	tools/package-source.js
	tools/package-version-parser.js
	tools/server/boot.js
2015-02-04 13:56:54 -08:00
Avital Oliver
5570c31da7 Add clarifying comment 2015-02-04 13:25:20 -08:00
Avital Oliver
7b82a31b9b Use correct path types when using Run in selftest
Originally from a code review comment of Sashko's.
Part of this commit is making explicit the contract
for arguments passed to `Run`.
2015-02-04 13:08:04 -08:00
Slava Kim
8232db93dc Fix bugs introduced with includeNodeModules option change 2015-02-03 18:58:40 -08:00
David Greenspan
6705025880 Kill old version-parser test, rescue another
I found this entire file of commented-out self-tests.  The
version-parsing part seems out-dated now, but there are tests of 
utils.defaultOrderKeyForReleaseVersion in there that seem legit, which
I re-enabled.
2015-02-02 13:20:45 -08:00
David Greenspan
45752e3203 parseConstraint -> parsePackageConstraint
In the return value, `name` has been changed to `package`,
and `vConstraint` is now `versionConstraint`.

`constraint.package` is better than `constraint.name`, where
`constraint` is a PackageConstraint.  It's also more consistent
with functions like parsePackageAtVersion which return an object
like `{package, version}`.

`vConstraint` was too cryptic.

Changes were discussed with Glasser in a code review.

Troposphere does not call parseConstraint or work with constraint
objects, so it doesn't need to change.

This is a breaking change to the package-version-parser API (or one
method of it, at least), but it is considered an internal API so we
are not worrying too much about it.
2015-02-02 13:13:31 -08:00
Avital Oliver
fe243a3268 Add "cordova" tag to self-test
And automatically skip it on Windows, on which
the build tool doesn't support Cordova commands
2015-02-02 11:33:55 -08:00
Avital Oliver
d174d0d134 Fix two self-tests on Windows via files.convertToOSPath 2015-02-02 10:50:44 -08:00
Avital Oliver
67a7a1be50 Don't test symlinked bundled on Windows
(symlinks don't work on Windows)
2015-02-02 10:49:36 -08:00
Sashko Stubailo
e1dc24a045 Add directions to publish a new version of the package 2015-01-30 15:52:32 -08:00
Sashko Stubailo
3d47829e87 Fix tests and scheme validation 2015-01-29 14:27:42 -08:00
David Glasser
62037959fe Clean up comments about legacy code 2015-01-29 14:03:11 -08:00
Sashko Stubailo
2f85ef8da2 Add test that we can't build packages with colons 2015-01-29 11:15:11 -08:00
David Glasser
2771483390 Show 'admin' in top level 'meteor help'
Addresses #3474.
2015-01-27 18:44:03 -08:00
David Glasser
074087be8a meteor login --email was supposed to be boolean!
See #3532.

We honestly should probably just drop the option and allow you to type
either a username or a password, just like in accounts-ui.

Because options have to be consistently bool or not across commands (so
that you can put them before the command name), change the testing-only
dummy command's string option to a different nonsense name.
2015-01-27 14:17:41 -08:00
Slava Kim
2d7aa3f80e Fix test broken by changing package skeleton 2015-01-21 14:04:07 -08:00
Sashko Stubailo
5c2eb0761b Fix test by including JS image 2015-01-20 22:34:24 -08:00
Sashko Stubailo
6583c6d417 Some small changes 2015-01-20 22:34:23 -08:00
Sashko Stubailo
9d1c10aae2 Add test about unpacking packages as-is 2015-01-20 22:34:23 -08:00
Sashko Stubailo
74ecb02d13 Add test for disallowing colons in packages 2015-01-20 22:34:23 -08:00
Slava Kim
8cafda074c Reduce the generality of meteor-npm's execFileSync 2015-01-20 22:03:24 -08:00