Sha256: f68f87e5b77a17638b23051c9122836a05fd04d9867d03408dd16caefbce92d3

Contents?: true

Size: 1.16 KB

Versions: 48

Compression:

Stored size: 1.16 KB

Contents

#! /usr/bin/env ruby

require 'autoproj'
require 'autoproj/cmdline'

root_dir = Autoproj::CmdLine.initialize_root_directory
Autoproj::CmdLine.initialize_and_load([])
manifest = Autoproj.manifest

manifest_path = File.join(Autoproj.config_dir, 'manifest')
manifest_data = YAML.load(File.read(manifest_path))
manifest_data['layout'] = Array.new

packages = manifest.each_autobuild_package.map(&:name)

while !packages.empty?
    pkg = packages[rand(packages.size)]
    next if !pkg
    packages.delete(pkg)

    manifest_data['layout'] << pkg
    File.open(manifest_path, 'w') do |io|
        io.write YAML.dump(manifest_data)
    end

    STDERR.puts
    STDERR.puts
    STDERR.puts
    STDERR.puts "=================================================="
    STDERR.puts "==== added #{pkg}"
    if !system('autoproj', 'full-build', '--randomize-layout', pkg)
        File.open(File.join(root_dir, 'failures.txt'), 'a') do |io|
            io.puts "the following layout failed:"
            io.puts "  - " + manifest_data['layout'].join("\n  - ")
        end
        STDERR.puts "the following layout failed:"
        STDERR.puts "  - " + manifest_data['layout'].join("\n  - ")
    end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
autoproj-1.13.7 bin/autoproj_stress_test
autoproj-1.13.6 bin/autoproj_stress_test
autoproj-1.13.5 bin/autoproj_stress_test
autoproj-1.13.5.rc1 bin/autoproj_stress_test
autoproj-1.13.4 bin/autoproj_stress_test
autoproj-1.13.3 bin/autoproj_stress_test
autoproj-1.13.3.b2 bin/autoproj_stress_test
autoproj-1.13.3.b1 bin/autoproj_stress_test
autoproj-1.13.2.b4 bin/autoproj_stress_test
autoproj-1.13.2.b3 bin/autoproj_stress_test
autoproj-1.13.2.b2 bin/autoproj_stress_test
autoproj-1.13.2.b1 bin/autoproj_stress_test
autoproj-1.13.2 bin/autoproj_stress_test
autoproj-1.13.1 bin/autoproj_stress_test
autoproj-1.13.0 bin/autoproj_stress_test
autoproj-1.12.6 bin/autoproj_stress_test
autoproj-1.13.0.b8 bin/autoproj_stress_test
autoproj-1.13.0.b7 bin/autoproj_stress_test
autoproj-1.13.0.b6 bin/autoproj_stress_test
autoproj-1.13.0.b5 bin/autoproj_stress_test