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

Version Path
roku_builder-4.30.0 intergration/roku_builder/test_inspector.rb
roku_builder-4.29.9 intergration/roku_builder/test_inspector.rb
roku_builder-4.29.8 intergration/roku_builder/test_inspector.rb
roku_builder-4.29.7 intergration/roku_builder/test_inspector.rb
roku_builder-4.29.6 intergration/roku_builder/test_inspector.rb
roku_builder-4.29.4 intergration/roku_builder/test_inspector.rb
roku_builder-4.29.2 intergration/roku_builder/test_inspector.rb
roku_builder-4.29.1 intergration/roku_builder/test_inspector.rb
roku_builder-4.28.0 intergration/roku_builder/test_inspector.rb
roku_builder-4.27.2 intergration/roku_builder/test_inspector.rb
roku_builder-4.27.1 intergration/roku_builder/test_inspector.rb
roku_builder-4.27.0 intergration/roku_builder/test_inspector.rb
roku_builder-4.26.2 intergration/roku_builder/test_inspector.rb
roku_builder-4.26.1 intergration/roku_builder/test_inspector.rb
roku_builder-4.26.0 intergration/roku_builder/test_inspector.rb
roku_builder-4.25.6 intergration/roku_builder/test_inspector.rb
roku_builder-4.25.5 intergration/roku_builder/test_inspector.rb
roku_builder-4.25.4 intergration/roku_builder/test_inspector.rb
roku_builder-4.25.3 intergration/roku_builder/test_inspector.rb
roku_builder-4.25.1 intergration/roku_builder/test_inspector.rb