mlxcc: use test DSL
This commit is contained in:
parent
728a5f774b
commit
112ff1e361
1 changed files with 3 additions and 6 deletions
|
@ -12,11 +12,8 @@ class Mlxcc < Formula
|
|||
system "make install"
|
||||
end
|
||||
|
||||
def test
|
||||
mktemp do
|
||||
(Pathname.pwd / "test.c").write("int main(void) { return 0; }")
|
||||
|
||||
system ENV.cc, "-lmlxcc", "test.c"
|
||||
end
|
||||
test do
|
||||
(testpath/"test.c").write("int main(void) { return 0; }")
|
||||
system ENV.cc, "-lmlxcc", "test.c"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue