ftjam: add test (#4750)
This commit is contained in:
parent
ceb716d89a
commit
057773b7a2
1 changed files with 19 additions and 0 deletions
|
@ -18,4 +18,23 @@ class Ftjam < Formula
|
|||
system "make"
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"Jamfile").write <<-EOS.undent
|
||||
Main ftjamtest : ftjamtest.c ;
|
||||
EOS
|
||||
|
||||
(testpath/"ftjamtest.c").write <<-EOS.undent
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
printf("FtJam Test\\n");
|
||||
return 0;
|
||||
}
|
||||
EOS
|
||||
|
||||
assert_match "Cc ftjamtest.o", shell_output(bin/"jam")
|
||||
assert_equal "FtJam Test\n", shell_output("./ftjamtest")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue