Sha256: d97e8ec2d1cdc217cd55712638d042f4e5ccd6a6077d7aea833b1716360ef622
Contents?: true
Size: 1.77 KB
Versions: 76
Compression:
Stored size: 1.77 KB
Contents
# ********** Copyright Viacom, Inc. Apache 2.0 ********** require_relative "test_helper.rb" module RokuBuilder class ProfilerIntergrationTest < Minitest::Test include Helpers def setup @config = build_config(ProfilerIntergrationTest) @uuid = SecureRandom.uuid build_uuid_script end def teardown FileUtils.rm(@config) if File.exist?(@config) cleanup_uuid_script end def test_profile_stats `#{roku} --sideload --working` assert_log @uuid output = `#{roku} --profile stats` assert_match(/Name \| Count/, output) assert_match(/Total \|\s*5/, output) assert_match(/Default \|\s*1/, output) assert_match(/RectangleExample \|\s*1/, output) assert_match(/Poster \|\s*1/, output) assert_match(/Node \|\s*1/, output) assert_match(/Rectangle \|\s*1/, output) end def test_profile_all `#{roku} --sideload --working` assert_log @uuid output = `#{roku} --profile all` assert_match(/RectangleExample/, output) end def test_profile_roots `#{roku} --sideload --working` assert_log @uuid output = `#{roku} --profile roots` assert_match(/Default/, output) end def test_profile_node `#{roku} --sideload --working` assert_log @uuid output = `#{roku} --profile exampleRectangle` assert_match(/name="exampleRectangle"/, output) end def test_profile_images `#{roku} --sideload --working` assert_log @uuid output = `#{roku} --profile images` assert_match(/Available memory/, output) end def test_profile_textures `#{roku} --sideload --working` assert_log @uuid output = `#{roku} --profile textures` assert_match(/System textures/, output) end end end
Version data entries
76 entries across 76 versions & 1 rubygems