Commit graph

298 commits

Author SHA1 Message Date
Leon Barrett
2d5e1b04de Fixed long line support in make-manifest. 2013-06-10 16:08:00 -07:00
Gary Fredericks
61091d44c3 Crash on :aot [does.not.exist]; also regression test; Fixes #1205
We want missing namespaces in :aot to not be silently ignored.
Implemented by removing the file-existence check from the function
that determines which namespaces need to be compiled.

This means we won't get the error if you compile an existing namespace
and subsequently delete the *.clj file. Oh well.
2013-06-04 16:39:58 -05:00
Leon Barrett
38090775f8 Fix a bug where the manifest is missing its last line.
Despite the documentation on java.util.jar.Manifest [1], the Manifest class
seems to require an endline in its input. If not, it drops the last line (on my
system, version [2], anyway).

[1] http://docs.oracle.com/javase/6/docs/technotes/guides/jar/jar.html
[2] $ java -version
java version "1.7.0_21"
OpenJDK Runtime Environment (IcedTea 2.3.9) (7u21-2.3.9-0ubuntu0.12.04.1)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
2013-05-31 10:51:51 -07:00
Colin Jones
3118083d44 Add custom-help to reply-options expectation 2013-05-27 22:20:51 -05:00
Gary Fredericks
71e609c8a1 Don't try static methods on lein run: better error msg
lein run tries to support invoking static methods on classes by
swallowing FileNotFoundExceptions when requiring the namespace to run,
which can obscure the real error when there's a real issue loading a
namespace.

Phil said he wasn't interested in keeping the (undocumented) feature
around, so the easiest fix to the error message problem was to remove
that feature.

Added a test as well.
2013-05-22 17:32:23 -05:00
AtKaaZ
533f4725db fix repo name should not contain path delims under windows so test won't
fail
all tests pass under windows
2013-05-16 05:32:38 +03:00
AtKaaZ
718cfc3f4c oops still forgot some parens on their own line 2013-05-15 06:34:40 +03:00
AtKaaZ
5b1b097c64 fix 2 test failures which only showed on windows 2013-05-15 06:16:47 +03:00
AtKaaZ
3521a21a9d moving 2 functions from utils to helper
merged all commits to date which required adding "dev-resources" so a
test wouldn't fail
`bin\lein test` tested under windows (currently 2 failures and 1 error)
2013-05-15 02:39:23 +03:00
AtKaaZ
6c34ce7e6f Merge branch 'master' into testsUnderWindows1 2013-05-15 01:53:44 +03:00
Phil Hagelberg
f40da67ece Make profile-scope-target-path work with anonymous profiles.
Also make it work in scenarios where the project map lacks :target-path.
2013-05-14 13:42:41 -07:00
AtKaaZ
a8e20e96ce fix some path errors in windows tests
lein test still has 2 failures and 1 error after this.
normalize-path should now handle absolute *nix paths correctly under
windows
addresses #1176
2013-05-13 08:15:55 +03:00
Colin Jones
b4660d52db Bump nrepl & clojure-complete dependencies 2013-05-12 15:19:07 -05:00
AtKaaZ
eb30389ff8 two strings were one for windows x86_64 test 2013-05-12 20:41:24 +03:00
Phil Hagelberg
9663106e84 Work around completely bonkers test failure.
Running deps on a project that includes ring causes an error
extracting the zip file for native deps, but only when you do it from
the first test in deps.clj and even then only when doing a full test
run.
2013-05-09 09:51:38 -07:00
Phil Hagelberg
01dd252b8a Fix a bunch of tests from reorg-repl. 2013-05-02 14:12:58 -07:00
Phil Hagelberg
02f1d5dc82 Merge branch 'reorg-repl'
Conflicts:
	leiningen-core/src/leiningen/core/main.clj
	leiningen-core/src/leiningen/core/project.clj
	src/leiningen/repl.clj
2013-05-02 13:13:55 -07:00
Colin Jones
4fe1b3df09 Update offline test metadata & run configuration 2013-04-27 12:15:24 -05:00
Colin Jones
9164c197d7 Don't bother trying to save the same source files 2013-04-27 12:15:24 -05:00
Joe Littlejohn
c78c7f7165 Add support for executable files to lein new templates
Paths that are marked with the additional option `:executable true`
will be set executable when template files are rendered.

Fixes #976.
2013-04-16 22:09:19 +01:00
Marko Topolnik
277b25b698 Adapt tests to code change 2013-04-11 10:13:23 +02:00
Marko Topolnik
fa95200da0 Don't explicitly check user profile in repl task
it should have already been merged
2013-04-10 14:54:29 +02:00
Marko Topolnik
3f4e64f888 Support :ack-port config option 2013-04-05 12:21:51 +02:00
Marko Topolnik
4280f2bb1f update-in: use resolve-and-apply (honor aliases) 2013-04-03 16:32:22 +02:00
Marko Topolnik
cd906e6bf0 update-in: vary meta project :without-profiles 2013-04-03 15:06:38 +02:00
Marko Topolnik
d2fccebb04 Formatting in test code 2013-03-29 14:09:21 +01:00
Marko Topolnik
de673e44d4 Test options-for-reply 2013-03-29 14:05:37 +01:00
Marko Topolnik
dfac3ce369 Tests for repl 2013-03-27 16:52:58 +01:00
Jean Niklas L'orange
dba0815138 Add guard rails for lein new newline handling. 2013-03-26 03:05:11 +01:00
Colin Jones
8bf417a0d0 Make slurp-resource 2.0.0-compatible again
closes #1102
2013-03-25 17:31:17 -05:00
Phil Hagelberg
4a5032f111 Reorganize most of repl.clj. 2013-03-24 15:40:08 -07:00
Phil Hagelberg
9043e3b5c7 Fix repl test. 2013-03-24 14:19:33 -07:00
Joshua P. Tilles
437e63daab Adjust compile task to make use of regex fns
Also update documentation.
2013-03-19 16:12:08 -07:00
Phil Hagelberg
ededa95c2d Merge remote-tracking branch 'marcliberatore/natives-update-java-library-path' 2013-03-19 14:25:48 -07:00
Marc Liberatore
d9e943e519 fix error in test introduced in 43581e2 2013-03-19 16:07:06 -04:00
Phil Hagelberg
4f4e66e01b Tag tests which require network access. 2013-03-19 10:24:56 -07:00
Phil Hagelberg
b8a6a090fe Remove outdated link to GitHub downloads page. 2013-03-19 10:24:56 -07:00
Tim McCormack
d14f5149f1 #949 Allow specification of artifact signing key.
Add :signing {:gpg-key "..."} option to project maps (global value)
and to :deploy-repositories maps (per-repo value). Does not yet work
in :repositories specs.

Also:
* Document per-repo :sign-releases option
* Delete unused defn deploy/signature-for
2013-03-19 10:24:56 -07:00
Phil Hagelberg
0e132292b7 Merge remote-tracking branch 'hyPiRion/read-nonblocking'
Conflicts:
	src/leiningen/deploy.clj
2013-03-17 08:05:11 -07:00
Jean Niklas L'orange
e42e44911d Add expected :input-stream in repl test. 2013-03-16 23:47:31 +01:00
Phil Hagelberg
41df82ba5c Fix repl test. 2013-03-14 21:15:26 -07:00
Colin Jones
50dd466255 Specify :root in repl test so the stub works 2013-03-14 10:47:28 -05:00
Michael Klishin
1e32278061 Add tests for #1017 2013-02-23 23:09:51 +04:00
Gabriel Horner
3c8b95d5b6 add resources dir to default new template, close #1016 2013-02-21 22:07:41 -05:00
Phil Hagelberg
52ae933cfa Fix tests to no longer look for shouty output prefix. 2013-02-21 13:35:21 -08:00
Phil Hagelberg
3b3573b47b Revert "Logging warnings to stderr and editing for consistency"
This reverts commit 4f05a44a0e.

Conflicts:
	leiningen-core/src/leiningen/core/project.clj
	src/leiningen/deploy.clj
	src/leiningen/test.clj
	src/leiningen/with_profile.clj
2013-02-21 13:29:48 -08:00
Phil Hagelberg
cc4045b932 Merge remote-tracking branch 'hugoduncan/feature/fix-recursive-alias-993'
Conflicts:
	leiningen-core/test/leiningen/core/test/project.clj
2013-02-21 12:04:19 -08:00
Gabriel Horner
2a9b50de5b fix tests broken by change in error format 2013-02-19 08:12:13 -05:00
Jean Niklas L'orange
6aed6d377f Resolve failing test introduced by *warn*.
Also move abort-msg up to leiningen core and call it from the leiningen
test helpers package instead.
2013-02-18 00:07:53 +01:00
Jean Niklas L'orange
55dd6b3fd4 Replace main ns with log where forgotten. 2013-02-17 23:39:40 +01:00