Jeremie Dimino
3a2e136e5c
Add a more complex test
2018-05-16 13:54:12 +01:00
Jeremie Dimino
2033b34983
Update tests
...
- remove tests that were creating files outside the test directory
- add tests with cycles longer than 1
2018-05-16 13:12:45 +01:00
Jérémie Dimino
95d9cf0415
Refactor Jbuild.Scope_info.Name and Dune_project.name ( #775 )
2018-05-15 14:07:02 +01:00
Rudi Grinberg
241ec87a2b
Add test for symlinking outside workspace
2018-05-15 19:42:33 +07:00
Rudi Grinberg
ac078fcdbb
add cycle and max depth to symlink following
2018-05-15 19:29:20 +07:00
Rudi Grinberg
c9916f4a76
Add some more test cases for symlinks
2018-05-15 17:33:51 +07:00
Rudi Grinberg
540a22315b
Refactor symlink following
...
Correctly resolve relative symlinks and add better error handling. Also move the
logic to the path module.
2018-05-15 17:33:51 +07:00
Rudi Grinberg
c1f81bef64
Add test for #764
2018-05-15 17:33:27 +07:00
Rudi Grinberg
7580b8e16f
Detect circular sym links
...
Fix #764
2018-05-15 17:33:27 +07:00
Jérémie Dimino
60c7f6fde4
Collect projects in the file tree directly ( #774 )
2018-05-15 09:46:07 +01:00
François Pottier
d444aeefea
Cleanup of [src/menhir.ml]. ( #770 )
...
This is purely for the sake of readability;
there should be no change in functionality.
Code is now shared between the case where [--base]
is used and the case where it isn't.
2018-05-14 13:07:48 +01:00
Jeremie Dimino
76ab05d620
Use Utils.executable_object_directory instead of inlining it in gen_rules.ml
2018-05-14 13:06:32 +01:00
Jeremie Dimino
ea9e1f94b6
Fix broken link
2018-05-14 12:56:47 +01:00
Rudi Grinberg
19825ae012
Merge pull request #751 from rgrinberg/is-in-build-dir-weird-behavior
...
Path.is_in_build_dir test
2018-05-14 17:01:06 +07:00
Rudi Grinberg
4b798c048c
Remove try/with from Path unit tests
2018-05-14 16:48:06 +07:00
Rudi Grinberg
dc3310c3a0
Remove try/with from Path unit tests
2018-05-12 22:31:20 +07:00
Jérémie Dimino
bc19e14b35
Add ignored_subdirs stanza ( #767 )
2018-05-12 15:38:22 +02:00
Marc Lasson
0705a6647a
Fix broken links in faq.rst ( #768 )
2018-05-12 11:25:28 +02:00
Rudi Grinberg
33a99884e4
Improve tests of Path.descendant
...
It should test cases where the paths are build dirs
2018-05-12 12:50:43 +07:00
Rudi Grinberg
a80a6f18b2
Merge pull request #765 from rgrinberg/add-spec-path
...
Fix off by 1 error in descendent check
2018-05-11 16:54:43 +07:00
Rudi Grinberg
3a8e4cf54d
Fix off by 1 in Path.is_descendant
2018-05-11 10:30:21 +07:00
Rudi Grinberg
b6851d7cd7
Add tests Path.is_descendant
...
Notabley, Path.is_descendant is broken for some relative paths
2018-05-11 10:24:12 +07:00
Rudi Grinberg
909142cf6c
Add tests for Path.drop_build_context
2018-05-11 09:43:30 +07:00
Rudi Grinberg
f9f15ceacf
Use exceptions over result type in expect test
...
There's no need to hide stack traces since we turned them off
2018-05-11 09:43:27 +07:00
Rudi Grinberg
a57013c3f3
Add check for relative path in Local.relative
...
this is to prevent an infinite loop in explode_path
2018-05-11 09:37:39 +07:00
Rudi Grinberg
f4a5413c46
Don't record backtraces
2018-05-11 09:37:31 +07:00
Jeremie Dimino
bffd5407ce
Fix #734
2018-05-10 11:31:39 +01:00
Jeremie Dimino
30d05eb4f1
Add test for #734
2018-05-10 11:31:39 +01:00
Jeremie Dimino
ef7a5519aa
Fix #761
2018-05-10 11:27:56 +01:00
Jeremie Dimino
ba78e05d95
Add a test for #761
2018-05-10 11:27:56 +01:00
Rudi Grinberg
229007a891
Merge pull request #760 from diml/fix-759
...
Fix #759
2018-05-10 13:24:27 +07:00
Jeremie Dimino
7c1e1923a0
Fix #759
2018-05-09 16:32:35 +01:00
Jeremie Dimino
4ffa88726a
Add a test for #759
2018-05-09 16:21:01 +01:00
Rudi Grinberg
fc5ecdac9d
Merge pull request #756 from rgrinberg/path-parent-option
...
Path parent option
2018-05-09 18:39:47 +07:00
Rudi Grinberg
7a1b3954d7
Change path tests not to include line numbers in stack traces
...
Only include exception names
2018-05-09 17:58:12 +07:00
Rudi Grinberg
f7f22cbf52
Make Path.parent return option
...
Use _exn whenever we know the parent exists
2018-05-09 17:56:50 +07:00
Rudi Grinberg
7e9be66e6f
Don't check if path is root directly
2018-05-09 17:54:52 +07:00
Rudi Grinberg
28f451f33c
Merge pull request #757 from rgrinberg/path-refactors
...
Path refactorings.
2018-05-09 17:53:56 +07:00
Rudi Grinberg
ad4bc43a9f
Merge pull request #755 from rgrinberg/rm-rf-safety
...
Rm -rf safety
2018-05-09 17:45:06 +07:00
Rudi Grinberg
c563fc1db8
Re-implement many path functions using kind
...
This will make it easier to port them to symbolic paths as this check is also
necessary there.
2018-05-09 17:33:05 +07:00
Rudi Grinberg
92b351de30
Small refactoring to call Path.absolute one less time
2018-05-09 17:32:36 +07:00
Rudi Grinberg
46d74e1a96
Implement Path.explode_exn in terms of Path.explode
2018-05-09 17:32:33 +07:00
Rudi Grinberg
65385bbaa4
Remove Path.drop_prefix
...
not used anywhere
2018-05-09 17:29:19 +07:00
Rudi Grinberg
47d54854e4
Safety feature for Path.rm_rf
2018-05-09 17:11:09 +07:00
Rudi Grinberg
08b33331ea
Path.rm_rf test
2018-05-09 17:10:41 +07:00
Jérémie Dimino
5ac3acf195
Add File_tree.Dir.dune_file ( #749 )
2018-05-09 09:18:01 +01:00
Rudi Grinberg
5112c23e3f
Merge pull request #746 from rgrinberg/alias0-build-dir
...
Alias0.dir is always in build_dir
2018-05-09 14:50:55 +07:00
Rudi Grinberg
2dcd95d3dd
Merge pull request #754 from rgrinberg/path-append-behavior
...
Unit tests for current Path.append behavior
2018-05-09 14:50:30 +07:00
Rudi Grinberg
7d17a30a99
Unit tests for current Path.append behavior
2018-05-09 09:14:21 +07:00
Rudi Grinberg
78612e0649
Move of_user_written_path to Alias0.T
...
This is done to avoid double check of the path being in build dir
2018-05-09 08:10:41 +07:00