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.11.0.rc5 bin/autoproj_stress_test
autoproj-1.11.0.rc4 bin/autoproj_stress_test
autoproj-1.11.0.rc3 bin/autoproj_stress_test
autoproj-1.11.0.rc2 bin/autoproj_stress_test
autoproj-1.11.0.rc1 bin/autoproj_stress_test
autoproj-1.11.0.b3 bin/autoproj_stress_test
autoproj-1.11.0.b2 bin/autoproj_stress_test
autoproj-1.11.0.b1 bin/autoproj_stress_test