plugin_cover.mk 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516
  1. # Common Test plugin.
  2. COVER_TARGETS = $(call list_targets,cover)
  3. .PHONY: cover $(COVER_TARGETS)
  4. cover: $(COVER_TARGETS)
  5. cover-ct: init
  6. $i "Bootstrap a new OTP application named $(APP)"
  7. $t mkdir $(APP)/
  8. $t cp ../erlang.mk $(APP)/
  9. $t $(MAKE) -C $(APP) -f erlang.mk bootstrap $v
  10. $i "Generate a Common Test suite"
  11. $t mkdir $(APP)/test
  12. $t printf "%s\n" \
  13. "-module($(APP)_SUITE)." \
  14. "-export([all/0, ok/1])." \
  15. "all() -> [ok]." \
  16. "ok(_) -> application:start($(APP))." > $(APP)/test/$(APP)_SUITE.erl
  17. $i "Run Common Test with code coverage enabled"
  18. $t $(MAKE) -C $(APP) ct COVER=1 $v
  19. $i "Check that the generated files exist"
  20. $t test -f $(APP)/cover/ct.coverdata
  21. $t test -f $(APP)/test/ct.cover.spec
  22. $i "Check that the generated files are removed on clean"
  23. $t $(MAKE) -C $(APP) clean $v
  24. $t test ! -e $(APP)/cover/ct.coverdata
  25. $t test ! -e $(APP)/test/ct.cover.spec
  26. cover-ct-incl-apps: init
  27. $i "Bootstrap a new OTP application named $(APP)"
  28. $t mkdir $(APP)/
  29. $t cp ../erlang.mk $(APP)/
  30. $t $(MAKE) -C $(APP) -f erlang.mk bootstrap $v
  31. $i "Create a new application app_one"
  32. $t $(MAKE) -C $(APP) new-app in=app_one $v
  33. $i "Create a new application app_two"
  34. $t $(MAKE) -C $(APP) new-app in=app_two $v
  35. $i "Create a new application app_three"
  36. $t $(MAKE) -C $(APP) new-app in=app_three $v
  37. $i "Add all three apps to LOCAL_DEPS"
  38. $t perl -ni.bak -e 'print;if ($$.==1) {print "LOCAL_DEPS = app_one app_two app_three\n"}' $(APP)/Makefile
  39. ifdef LEGACY
  40. $i "Add all three apps to the applications key in the .app.src file"
  41. $t perl -ni.bak -e 'print;if ($$.==7) {print "\t\tapp_one,\n\t\tapp_two,\n\t\tapp_three,\n"}' $(APP)/src/$(APP).app.src
  42. endif
  43. $i "Add app_one and app_three to the code coverage"
  44. $t perl -ni.bak -e 'print;if ($$.==1) {print "COVER_APPS = app_one app_three\n"}' $(APP)/Makefile
  45. $i "Generate a Common Test suite"
  46. $t mkdir $(APP)/test
  47. $t printf "%s\n" \
  48. "-module($(APP)_SUITE)." \
  49. "-export([all/0, ok/1])." \
  50. "all() -> [ok]." \
  51. "ok(_) -> application:ensure_all_started($(APP))." > $(APP)/test/$(APP)_SUITE.erl
  52. $i "Run Common Test with code coverage enabled"
  53. $t $(MAKE) -C $(APP) ct COVER=1 $v
  54. $i "Check that app_one and app_three were covered, but app_two wasn't"
  55. $t test -f $(APP)/logs/ct_run.*/app_one_app.COVER.html
  56. $t test -f $(APP)/logs/ct_run.*/app_three_app.COVER.html
  57. $t ! test -e $(APP)/logs/ct_run.*/app_two_app.COVER.html
  58. cover-ct-incl-apps-default: init
  59. $i "Bootstrap a new OTP application named $(APP)"
  60. $t mkdir $(APP)/
  61. $t cp ../erlang.mk $(APP)/
  62. $t $(MAKE) -C $(APP) -f erlang.mk bootstrap $v
  63. $i "Create a new application app_one"
  64. $t $(MAKE) -C $(APP) new-app in=app_one $v
  65. $i "Create a new application app_two"
  66. $t $(MAKE) -C $(APP) new-app in=app_two $v
  67. $i "Create a new application app_three"
  68. $t $(MAKE) -C $(APP) new-app in=app_three $v
  69. $i "Add all three apps to LOCAL_DEPS"
  70. $t perl -ni.bak -e 'print;if ($$.==1) {print "LOCAL_DEPS = app_one app_two app_three\n"}' $(APP)/Makefile
  71. ifdef LEGACY
  72. $i "Add all three apps to the applications key in the .app.src file"
  73. $t perl -ni.bak -e 'print;if ($$.==7) {print "\t\tapp_one,\n\t\tapp_two,\n\t\tapp_three,\n"}' $(APP)/src/$(APP).app.src
  74. endif
  75. $i "Generate a Common Test suite"
  76. $t mkdir $(APP)/test
  77. $t printf "%s\n" \
  78. "-module($(APP)_SUITE)." \
  79. "-export([all/0, ok/1])." \
  80. "all() -> [ok]." \
  81. "ok(_) -> application:ensure_all_started($(APP))." > $(APP)/test/$(APP)_SUITE.erl
  82. $i "Run Common Test with code coverage enabled"
  83. $t $(MAKE) -C $(APP) ct COVER=1 $v
  84. $i "Check that all apps were covered by default"
  85. $t test -f $(APP)/logs/ct_run.*/app_one_app.COVER.html
  86. $t test -f $(APP)/logs/ct_run.*/app_two_app.COVER.html
  87. $t test -f $(APP)/logs/ct_run.*/app_three_app.COVER.html
  88. cover-ct-incl-deps: init
  89. $i "Bootstrap a new OTP application named $(APP)"
  90. $t mkdir $(APP)/
  91. $t cp ../erlang.mk $(APP)/
  92. $t $(MAKE) -C $(APP) -f erlang.mk bootstrap $v
  93. $i "Add Cowboy 1.0.0 to the list of dependencies"
  94. $t perl -ni.bak -e 'print;if ($$.==1) {print "DEPS = cowboy\ndep_cowboy_commit = 1.0.0\n"}' $(APP)/Makefile
  95. ifdef LEGACY
  96. $i "Add Cowboy to the applications key in the .app.src file"
  97. $t perl -ni.bak -e 'print;if ($$.==7) {print "\t\tcowboy,\n"}' $(APP)/src/$(APP).app.src
  98. endif
  99. $i "Add Cowboy and Cowlib to the code coverage"
  100. $t perl -ni.bak -e 'print;if ($$.==1) {print "COVER_DEPS = cowboy cowlib\n"}' $(APP)/Makefile
  101. $i "Generate a Common Test suite"
  102. $t mkdir $(APP)/test
  103. $t printf "%s\n" \
  104. "-module($(APP)_SUITE)." \
  105. "-export([all/0, ok/1])." \
  106. "all() -> [ok]." \
  107. "ok(_) -> application:ensure_all_started($(APP))." > $(APP)/test/$(APP)_SUITE.erl
  108. $i "Run Common Test with code coverage enabled"
  109. $t $(MAKE) -C $(APP) ct COVER=1 $v
  110. $i "Check that Cowboy and Cowlib were covered, but Ranch wasn't"
  111. $t test -f $(APP)/logs/ct_run.*/cowboy_app.COVER.html
  112. $t test -f $(APP)/logs/ct_run.*/cow_http_hd.COVER.html
  113. $t ! test -e $(APP)/logs/ct_run.*/ranch_app.COVER.html
  114. cover-ct-single-suite: init
  115. $i "Bootstrap a new OTP application named $(APP)"
  116. $t mkdir $(APP)/
  117. $t cp ../erlang.mk $(APP)/
  118. $t $(MAKE) -C $(APP) -f erlang.mk bootstrap $v
  119. $i "Generate a Common Test suite"
  120. $t mkdir $(APP)/test
  121. $t printf "%s\n" \
  122. "-module($(APP)_SUITE)." \
  123. "-export([all/0, ok/1])." \
  124. "all() -> [ok]." \
  125. "ok(_) -> application:start($(APP))." > $(APP)/test/$(APP)_SUITE.erl
  126. $i "Run Common Test against this specific test suite with code coverage enabled"
  127. $t $(MAKE) -C $(APP) ct-$(APP) COVER=1 $v
  128. $i "Check that the generated files exist"
  129. $t test -f $(APP)/cover/ct.coverdata
  130. $t test -f $(APP)/test/ct.cover.spec
  131. $i "Check that the generated files are removed on clean"
  132. $t $(MAKE) -C $(APP) clean $v
  133. $t test ! -e $(APP)/cover/ct.coverdata
  134. $t test ! -e $(APP)/test/ct.cover.spec
  135. cover-custom-dir: init
  136. $i "Bootstrap a new OTP application named $(APP)"
  137. $t mkdir $(APP)/
  138. $t cp ../erlang.mk $(APP)/
  139. $t $(MAKE) -C $(APP) -f erlang.mk bootstrap-lib $v
  140. $i "Set COVER_DATA_DIR in the Makefile"
  141. $t perl -ni.bak -e 'print;if ($$.==1) {print "COVER_DATA_DIR = custom_dir\n"}' $(APP)/Makefile
  142. $i "Generate a module containing EUnit tests"
  143. $t printf "%s\n" \
  144. "-module($(APP))." \
  145. "-ifdef(TEST)." \
  146. "-include_lib(\"eunit/include/eunit.hrl\")." \
  147. "ok_test() -> ok." \
  148. "-endif." > $(APP)/src/$(APP).erl
  149. $i "Generate a Common Test suite"
  150. $t mkdir $(APP)/test
  151. $t printf "%s\n" \
  152. "-module($(APP)_SUITE)." \
  153. "-export([all/0, ok/1])." \
  154. "all() -> [ok]." \
  155. "ok(_) -> ok." > $(APP)/test/$(APP)_SUITE.erl
  156. $i "Run Common Test with code coverage enabled"
  157. $t $(MAKE) -C $(APP) ct COVER=1 $v
  158. $i "Run EUnit with code coverage enabled"
  159. $t $(MAKE) -C $(APP) eunit COVER=1 $v
  160. $i "Check that the generated file exists"
  161. $t test -f $(APP)/custom_dir/ct.coverdata
  162. $t test -f $(APP)/custom_dir/eunit.coverdata
  163. $i "Merge coverdata files into all.coverdata"
  164. $t $(MAKE) -C $(APP) all.coverdata $v
  165. $t test -f $(APP)/custom_dir/all.coverdata
  166. $i "Check that the generated file is removed on clean"
  167. $t $(MAKE) -C $(APP) clean $v
  168. $t test ! -e $(APP)/custom_dir/eunit.coverdata
  169. $t test ! -e $(APP)/custom_dir/ct.coverdata
  170. $t test ! -e $(APP)/custom_dir/all.coverdata
  171. $i "Check that the custom dir is removed on distclean"
  172. $t $(MAKE) -C $(APP) distclean $v
  173. $t test ! -e $(APP)/custom_dir/
  174. $i "Check that the custom dir is not removed if not empty"
  175. $t mkdir $(APP)/custom_dir
  176. $t touch $(APP)/custom_dir/file
  177. $t $(MAKE) -C $(APP) distclean $v
  178. $t test -f $(APP)/custom_dir/file
  179. cover-eunit: init
  180. $i "Bootstrap a new OTP application named $(APP)"
  181. $t mkdir $(APP)/
  182. $t cp ../erlang.mk $(APP)/
  183. $t $(MAKE) -C $(APP) -f erlang.mk bootstrap-lib $v
  184. $i "Generate a module containing EUnit tests"
  185. $t printf "%s\n" \
  186. "-module($(APP))." \
  187. "-ifdef(TEST)." \
  188. "-include_lib(\"eunit/include/eunit.hrl\")." \
  189. "ok_test() -> ok." \
  190. "-endif." > $(APP)/src/$(APP).erl
  191. $i "Run EUnit with code coverage enabled"
  192. $t $(MAKE) -C $(APP) eunit COVER=1 $v
  193. $i "Check that the generated file exists"
  194. $t test -f $(APP)/cover/eunit.coverdata
  195. $i "Check that the generated file is removed on clean"
  196. $t $(MAKE) -C $(APP) clean $v
  197. $t test ! -e $(APP)/cover/eunit.coverdata
  198. cover-eunit-apps-only: init
  199. $i "Create a multi application repository with no root application"
  200. $t mkdir $(APP)/
  201. $t cp ../erlang.mk $(APP)/
  202. $t echo "include erlang.mk" > $(APP)/Makefile
  203. $i "Create a new application named my_app"
  204. $t $(MAKE) -C $(APP) new-app in=my_app $v
  205. $i "Generate a module containing EUnit tests in my_app"
  206. $t printf "%s\n" \
  207. "-module(my_app)." \
  208. "-ifdef(TEST)." \
  209. "-include_lib(\"eunit/include/eunit.hrl\")." \
  210. "ok_test() -> ok." \
  211. "-endif." > $(APP)/apps/my_app/src/my_app.erl
  212. $i "Run EUnit with code coverage enabled"
  213. $t $(MAKE) -C $(APP) eunit COVER=1 $v
  214. $i "Check that no file was generated in the top-level directory"
  215. $t ! test -f $(APP)/cover/eunit.coverdata
  216. $i "Check that the generated file exists"
  217. $t test -f $(APP)/apps/my_app/cover/eunit.coverdata
  218. cover-eunit-incl-apps: init
  219. $i "Bootstrap a new OTP application named $(APP)"
  220. $t mkdir $(APP)/
  221. $t cp ../erlang.mk $(APP)/
  222. $t $(MAKE) -C $(APP) -f erlang.mk bootstrap $v
  223. $i "Create a new application app_one"
  224. $t $(MAKE) -C $(APP) new-app in=app_one $v
  225. $i "Create a new application app_two"
  226. $t $(MAKE) -C $(APP) new-app in=app_two $v
  227. $i "Create a new application app_three"
  228. $t $(MAKE) -C $(APP) new-app in=app_three $v
  229. $i "Add all three apps to LOCAL_DEPS"
  230. $t perl -ni.bak -e 'print;if ($$.==1) {print "LOCAL_DEPS = app_one app_two app_three\n"}' $(APP)/Makefile
  231. ifdef LEGACY
  232. $i "Add all three apps to the applications key in the .app.src file"
  233. $t perl -ni.bak -e 'print;if ($$.==7) {print "\t\tapp_one,\n\t\tapp_two,\n\t\tapp_three,\n"}' $(APP)/src/$(APP).app.src
  234. endif
  235. $i "Add app_one and app_three to the code coverage"
  236. $t perl -ni.bak -e 'print;if ($$.==1) {print "COVER_APPS = app_one app_three\n"}' $(APP)/Makefile
  237. $i "Generate a module containing EUnit tests"
  238. $t printf "%s\n" \
  239. "-module($(APP))." \
  240. "-ifdef(TEST)." \
  241. "-include_lib(\"eunit/include/eunit.hrl\")." \
  242. "ok_test() -> application:ensure_all_started($(APP))." \
  243. "-endif." > $(APP)/src/$(APP).erl
  244. $i "Run EUnit with code coverage enabled"
  245. $t $(MAKE) -C $(APP) eunit COVER=1 $v
  246. $i "Build the cover report"
  247. $t $(MAKE) -C $(APP) cover-report $v
  248. $i "Check that app_one and app_three were covered, but app_two wasn't"
  249. $t test -f $(APP)/cover/app_one_app.COVER.html
  250. $t test -f $(APP)/cover/app_three_app.COVER.html
  251. $t ! test -e $(APP)/cover/app_two_app.COVER.html
  252. cover-eunit-incl-apps-default: init
  253. $i "Bootstrap a new OTP application named $(APP)"
  254. $t mkdir $(APP)/
  255. $t cp ../erlang.mk $(APP)/
  256. $t $(MAKE) -C $(APP) -f erlang.mk bootstrap $v
  257. $i "Create a new application app_one"
  258. $t $(MAKE) -C $(APP) new-app in=app_one $v
  259. $i "Create a new application app_two"
  260. $t $(MAKE) -C $(APP) new-app in=app_two $v
  261. $i "Create a new application app_three"
  262. $t $(MAKE) -C $(APP) new-app in=app_three $v
  263. $i "Add all three apps to LOCAL_DEPS"
  264. $t perl -ni.bak -e 'print;if ($$.==1) {print "LOCAL_DEPS = app_one app_two app_three\n"}' $(APP)/Makefile
  265. ifdef LEGACY
  266. $i "Add all three apps to the applications key in the .app.src file"
  267. $t perl -ni.bak -e 'print;if ($$.==7) {print "\t\tapp_one,\n\t\tapp_two,\n\t\tapp_three,\n"}' $(APP)/src/$(APP).app.src
  268. endif
  269. $i "Generate a module containing EUnit tests"
  270. $t printf "%s\n" \
  271. "-module($(APP))." \
  272. "-ifdef(TEST)." \
  273. "-include_lib(\"eunit/include/eunit.hrl\")." \
  274. "ok_test() -> application:ensure_all_started($(APP))." \
  275. "-endif." > $(APP)/src/$(APP).erl
  276. $i "Run EUnit with code coverage enabled"
  277. $t $(MAKE) -C $(APP) eunit COVER=1 $v
  278. $i "Build the cover report"
  279. $t $(MAKE) -C $(APP) cover-report $v
  280. $i "Check that all apps were covered by default"
  281. $t test -f $(APP)/cover/app_one_app.COVER.html
  282. $t test -f $(APP)/cover/app_two_app.COVER.html
  283. $t test -f $(APP)/cover/app_three_app.COVER.html
  284. cover-eunit-incl-deps: init
  285. $i "Bootstrap a new OTP application named $(APP)"
  286. $t mkdir $(APP)/
  287. $t cp ../erlang.mk $(APP)/
  288. $t $(MAKE) -C $(APP) -f erlang.mk bootstrap $v
  289. $i "Add Cowboy 1.0.0 to the list of dependencies"
  290. $t perl -ni.bak -e 'print;if ($$.==1) {print "DEPS = cowboy\ndep_cowboy_commit = 1.0.0\n"}' $(APP)/Makefile
  291. ifdef LEGACY
  292. $i "Add Cowboy to the applications key in the .app.src file"
  293. $t perl -ni.bak -e 'print;if ($$.==7) {print "\t\tcowboy,\n"}' $(APP)/src/$(APP).app.src
  294. endif
  295. $i "Add Cowboy and Cowlib to the code coverage"
  296. $t perl -ni.bak -e 'print;if ($$.==1) {print "COVER_DEPS = cowboy cowlib\n"}' $(APP)/Makefile
  297. $i "Generate a module containing EUnit tests"
  298. $t printf "%s\n" \
  299. "-module($(APP))." \
  300. "-ifdef(TEST)." \
  301. "-include_lib(\"eunit/include/eunit.hrl\")." \
  302. "ok_test() -> application:ensure_all_started($(APP))." \
  303. "-endif." > $(APP)/src/$(APP).erl
  304. $i "Run EUnit with code coverage enabled"
  305. $t $(MAKE) -C $(APP) eunit COVER=1 $v
  306. $i "Build the cover report"
  307. $t $(MAKE) -C $(APP) cover-report $v
  308. $i "Check that Cowboy and Cowlib were covered, but Ranch wasn't"
  309. $t test -f $(APP)/cover/cowboy_app.COVER.html
  310. $t test -f $(APP)/cover/cow_http_hd.COVER.html
  311. $t ! test -e $(APP)/cover/ranch_app.COVER.html
  312. cover-proper: init
  313. $i "Bootstrap a new OTP application named $(APP)"
  314. $t mkdir $(APP)/
  315. $t cp ../erlang.mk $(APP)/
  316. $t $(MAKE) -C $(APP) -f erlang.mk bootstrap-lib $v
  317. $i "Add PropEr to the list of dependencies"
  318. $t perl -ni.bak -e 'print;if ($$.==1) {print "DEPS = proper\n"}' $(APP)/Makefile
  319. $i "Generate a module containing Proper properties"
  320. $t printf "%s\n" \
  321. "-module($(APP))." \
  322. "-ifdef(TEST)." \
  323. "-include_lib(\"proper/include/proper.hrl\")." \
  324. "prop_foo() -> ?FORALL(_, any(), true)." \
  325. "-endif." > $(APP)/src/$(APP).erl
  326. $i "Run PropEr with code coverage enabled"
  327. $t $(MAKE) -C $(APP) proper COVER=1 $v
  328. $i "Check that the generated file exists"
  329. $t test -f $(APP)/cover/proper.coverdata
  330. $i "Check that the generated file is removed on clean"
  331. $t $(MAKE) -C $(APP) clean $v
  332. $t test ! -e $(APP)/cover/proper.coverdata
  333. cover-report-and-merge: init
  334. $i "Bootstrap a new OTP application named $(APP)"
  335. $t mkdir $(APP)/
  336. $t cp ../erlang.mk $(APP)/
  337. $t $(MAKE) -C $(APP) -f erlang.mk bootstrap-lib $v
  338. $i "Generate a Common Test suite"
  339. $t mkdir $(APP)/test
  340. $t printf "%s\n" \
  341. "-module($(APP)_SUITE)." \
  342. "-export([all/0, ok/1])." \
  343. "all() -> [ok]." \
  344. "ok(_) -> ok." > $(APP)/test/$(APP)_SUITE.erl
  345. $i "Generate a module containing EUnit tests"
  346. $t printf "%s\n" \
  347. "-module($(APP))." \
  348. "-ifdef(TEST)." \
  349. "-include_lib(\"eunit/include/eunit.hrl\")." \
  350. "ok_test() -> ok." \
  351. "-endif." > $(APP)/src/$(APP).erl
  352. $i "Run tests with code coverage enabled"
  353. $t $(MAKE) -C $(APP) tests COVER=1 $v
  354. $i "Check that the generated files exist"
  355. $t test -f $(APP)/cover/$(APP).COVER.html
  356. $t test -f $(APP)/cover/index.html
  357. $t test -f $(APP)/cover/ct.coverdata
  358. $t test -f $(APP)/cover/eunit.coverdata
  359. $t test -f $(APP)/test/ct.cover.spec
  360. $i "Merge coverdata files into all.coverdata"
  361. $t $(MAKE) -C $(APP) all.coverdata $v
  362. $t test -f $(APP)/cover/all.coverdata
  363. $i "Check that the generated files are removed on clean"
  364. $t $(MAKE) -C $(APP) clean $v
  365. $t test ! -e $(APP)/cover/all.coverdata
  366. $t test ! -e $(APP)/cover/ct.coverdata
  367. $t test ! -e $(APP)/cover/eunit.coverdata
  368. $t test ! -e $(APP)/test/ct.cover.spec
  369. $i "Check that the cover report is removed on distclean"
  370. $t $(MAKE) -C $(APP) distclean $v
  371. $t test ! -e $(APP)/cover/
  372. cover-triq: init
  373. $i "Bootstrap a new OTP application named $(APP)"
  374. $t mkdir $(APP)/
  375. $t cp ../erlang.mk $(APP)/
  376. $t $(MAKE) -C $(APP) -f erlang.mk bootstrap-lib $v
  377. $i "Add Triq to the list of dependencies"
  378. $t perl -ni.bak -e 'print;if ($$.==1) {print "DEPS = triq\n"}' $(APP)/Makefile
  379. $i "Generate a module containing Triq properties"
  380. $t printf "%s\n" \
  381. "-module($(APP))." \
  382. "-ifdef(TEST)." \
  383. "-include_lib(\"triq/include/triq.hrl\")." \
  384. "prop_foo() -> ?FORALL(_, any(), true)." \
  385. "-endif." > $(APP)/src/$(APP).erl
  386. $i "Run Triq with code coverage enabled"
  387. $t $(MAKE) -C $(APP) triq COVER=1 $v
  388. $i "Check that the generated file exists"
  389. $t test -f $(APP)/cover/triq.coverdata
  390. $i "Check that the generated file is removed on clean"
  391. $t $(MAKE) -C $(APP) clean $v
  392. $t test ! -e $(APP)/cover/triq.coverdata