Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
luajit: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
jacknagel committed Nov 12, 2013
1 parent fab0c0b commit dca614b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Library/Formula/luajit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,12 @@ def install

system 'make', 'amalg', 'install', *args
end

test do
system "#{bin}/luajit", "-e", <<-EOS.strip
local ffi = require("ffi")
ffi.cdef("int printf(const char *fmt, ...);")
ffi.C.printf("Hello %s!\\n", "#{ENV['USER']}")
EOS
end
end

0 comments on commit dca614b

Please sign in to comment.