Sha256: 98b4b6732bbfab297756d024da07294c9f25b47bb43cb4349e80b64878c6604e
Contents?: true
Size: 502 Bytes
Versions: 1
Compression:
Stored size: 502 Bytes
Contents
#!/usr/bin/env ruby # simple test wrapper, must be run from __FILE__/. # subdirs of checks/ indicate which checks should pass, fail, and fail to run output = %x[../bin/hostlint -u -f config.yml] status = 0 output.each_line do |line| next if line =~ /^INFO/ r = /^ok.*\[CHECK_OK\]$|^fail.*\[CHECK_FAILED\]$|exec_fail.*\[.*FAILED_.*$/ unless line =~ r puts "error: line doesn't match expectations" puts line status = 1 end end if status == 0 puts "all tests pass" end exit status
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hostlint-0.0.1 | tests/test.rb |