1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
|
(executables
(names error1 error2)
(modes exe js)
(foreign_stubs
(language c)
(names named_value_stubs))
(js_of_ocaml
(javascript_files runtime.js))
(libraries))
(rule
(target error1.js.actual)
(deps error1.html)
(alias runtest)
(action
(with-accepted-exit-codes
2
(with-outputs-to
%{target}
(run node %{dep:error1.bc.js})))))
(rule
(target error1.exe.actual)
(alias runtest)
(action
(with-accepted-exit-codes
2
(with-outputs-to
%{target}
(run %{dep:error1.exe})))))
(rule
(alias runtest)
(action
(diff %{dep:error1.expected} %{dep:error1.js.actual})))
(rule
(alias runtest)
(action
(diff %{dep:error1.expected} %{dep:error1.exe.actual})))
(rule
(target error1-unregister.js.actual)
(deps error1-unregister.html)
(alias runtest)
(action
(with-accepted-exit-codes
2
(with-outputs-to
%{target}
(run node %{dep:error1.bc.js} unregister)))))
(rule
(alias runtest)
(action
(diff %{dep:error1-unregister.expected} %{dep:error1-unregister.js.actual})))
(rule
(target error2.js.actual)
(deps error2.html)
(alias runtest)
(action
(with-accepted-exit-codes
2
(with-outputs-to
%{target}
(run node %{dep:error2.bc.js})))))
(rule
(target error2.exe.actual)
(alias runtest)
(action
(with-accepted-exit-codes
2
(with-outputs-to
%{target}
(run %{dep:error2.exe})))))
(rule
(alias runtest)
(enabled_if
(= %{profile} dev))
(action
(diff %{dep:error2.expected} %{dep:error2.js.actual})))
(rule
(alias runtest)
(enabled_if
(= %{profile} dev))
(action
(diff %{dep:error2.expected} %{dep:error2.exe.actual})))
(rule
(target error2-unregister.js.actual)
(deps error2-unregister.html)
(alias runtest)
(action
(with-accepted-exit-codes
2
(with-outputs-to
%{target}
(run node %{dep:error2.bc.js} unregister)))))
(rule
(alias runtest)
(action
(diff %{dep:error2-unregister.expected} %{dep:error2-unregister.js.actual})))
|