Changeset 93 for trunk/src/compiler_test.erl
- Timestamp:
- 01/29/10 07:56:02 (2 years ago)
- File:
-
- 1 edited
-
trunk/src/compiler_test.erl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/compiler_test.erl
r86 r93 13 13 -export ([notifies_removed_files_even_if_never_compiled/0]). 14 14 -export ([provides_all_binaries_not_just_latest_when_all_compiled/0]). 15 -export ([can_be_given_include_directories/0]). 15 16 -include_lib("stdlib/include/ms_transform.hrl"). 16 17 … … 63 64 ok = fixtures: use_tree (Tree, F). 64 65 66 can_be_given_include_directories () -> 67 Src = "-module(inc).\n-include(\"inc.hrl\").", 68 Inc = "-define(yo,\"YO\").", 69 Tree = [{directory, "include", [{file, "inc.hrl", Inc}]}, 70 {directory, "src", [{file, "inc.erl", Src}]}], 71 ok = fixtures: use_tree (Tree, fun include_no_directory/2), 72 ok = fixtures: use_tree (Tree, fun include_with_directory/2). 73 65 74 provides_binaries_when_all_compiled (Root, _) -> 66 75 Compiler = spawn_link (compiler, init, [notify_me (), Root]), … … 136 145 ok. 137 146 147 include_no_directory (Root, _) -> 148 Src = filename: join (Root, "src"), 149 Compiler = spawn_link (compiler, init, [notify_me (), Src]), 150 Compiler ! check, 151 [{1, 0, 0}, {_, _}, {1, 1, 0}] = receive_all (), 152 Compiler ! {self (), stop}, 153 ok. 154 155 include_with_directory (Root, _) -> 156 Src = filename: join (Root, "src"), 157 Inc = filename: join (Root, "include"), 158 Compiler = spawn_link (compiler, init, [notify_me (), Src, [{i, Inc}]]), 159 Compiler ! check, 160 [{1, 0, 0}, {1, 1, 1}, {{binaries, _}, _}] = receive_all (), 161 Compiler ! {self (), stop}, 162 ok. 163 138 164 check ([{Total, 0, 0} | _] = Xs, unknown) -> 139 165 check (Xs, Total);
Note: See TracChangeset
for help on using the changeset viewer.
