|
72 | 72 |
|
73 | 73 | (eldev-ert-defargtest eldev-compile-test-files-1 (everything) |
74 | 74 | (nil t) |
75 | | - (eldev--test-without-files "project-a" (:eval `(,@(when everything '("project-a.elc")) "test/project-a.elc")) |
| 75 | + (eldev--test-without-files "project-a" ("project-a.elc" "test/project-a.elc") |
76 | 76 | (eldev--test-run nil ("compile" "--set" (if everything "all" "test")) |
77 | 77 | (eldev--test-assert-files project-dir preexisting-files (when everything "project-a.elc") "test/project-a.elc") |
78 | 78 | (should (= exit-code 0))))) |
79 | 79 |
|
80 | 80 | (eldev-ert-defargtest eldev-compile-test-files-2 (everything) |
81 | 81 | (nil t) |
82 | 82 | ;; This project has an additional loading root for tests. |
83 | | - (eldev--test-without-files "project-g" (:eval `(,@(when everything '("project-g.elc" "project-g-util.elc")) |
84 | | - "test/test-g-1.elc" "test/test-g-integration.elc" "test/test-g-util.elc")) |
| 83 | + (eldev--test-without-files "project-g" ("project-g.elc" "project-g-util.elc" |
| 84 | + "test/test-g-1.elc" "test/test-g-integration.elc" "test/test-g-util.elc") |
85 | 85 | (eldev--test-run nil ("compile" "--set" (if everything "all" "test")) |
86 | 86 | (eldev--test-assert-files project-dir preexisting-files |
87 | 87 | (when everything '("project-g.elc" "project-g-util.elc")) |
88 | 88 | "test/test-g-1.elc" "test/test-g-integration.elc" "test/test-g-util.elc") |
89 | 89 | (should (= exit-code 0))))) |
90 | 90 |
|
| 91 | +(eldev-ert-defargtest eldev-compile-test-files-3 (everything) |
| 92 | + (nil t) |
| 93 | + ;; This project has an additional dependency for tests. It is needed not only to run, |
| 94 | + ;; but also to compile them. |
| 95 | + (eldev--test-without-files "project-j" ("project-j-autoloads.el" "project-j.elc" "project-j-advanced.elc" |
| 96 | + "test/project-j.elc") |
| 97 | + (eldev--test-run nil ("compile" "--set" (if everything "all" "test")) |
| 98 | + (eldev--test-assert-files project-dir preexisting-files |
| 99 | + (when everything '("project-j-autoloads.el" "project-j.elc" "project-j-advanced.elc")) |
| 100 | + "test/project-j.elc") |
| 101 | + (should (= exit-code 0))))) |
| 102 | + |
91 | 103 |
|
92 | 104 | (ert-deftest eldev-compile-doesnt-load-when-not-asked-1 () |
93 | 105 | ;; `project-e-misc.el' is somewhat broken in that it cannot be |
|
0 commit comments