blob: b77927e0b7bb16211d258c6affeb47fc5a00a507 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
require "testing_env"
class BashTests < Homebrew::TestCase
def assert_valid_bash_syntax(files)
output = Utils.popen_read("/bin/bash -n #{files} 2>&1")
assert $?.success?, output
end
def test_bin_brew
assert_valid_bash_syntax "#{HOMEBREW_LIBRARY_PATH.parent.parent}/bin/brew"
end
def test_bash_cmds
assert_valid_bash_syntax "#{HOMEBREW_LIBRARY_PATH}/cmd/*.sh"
end
end
|