Sha256: 7809978db7e2556d4cf9da26858df7ab671352d7e14d4b93e08ec15215cb0f0e
Contents?: true
Size: 1.06 KB
Versions: 95
Compression:
Stored size: 1.06 KB
Contents
# ********** Copyright Viacom, Inc. Apache 2.0 ********** require_relative "test_helper.rb" module RokuBuilder class InspectorIntergrationTest < Minitest::Test include Helpers def setup @config = build_config(InspectorIntergrationTest) @uuid = SecureRandom.uuid build_uuid_script end def teardown FileUtils.rm(@config) if File.exist?(@config) cleanup_uuid_script end def test_inspector target = File.join(testfiles_path(InspectorIntergrationTest), "test.pkg") output = `bin/roku --inspect --in #{target} --password CvOqcutO3X419INdUbOyqw== --config #{@config}` assert output =~ /App Name:/ assert output =~ /Dev ID:/ assert output =~ /Creation Date:/ assert output =~ /dev.zip:/ end def test_screencapture target = File.join(testfiles_path(InspectorIntergrationTest), "out.jpg") `#{roku} --sideload --working` assert_log @uuid `#{roku} --screencapture --out #{target}` wait_assert(15) {File.exist?(target)} FileUtils.rm(target) end end end
Version data entries
95 entries across 95 versions & 1 rubygems