Sha256: e78844f830bd16551cc00a1becf4e3f78a3a241d23511e1575461e1f83da059b

Contents?: true

Size: 1.15 KB

Versions: 145

Compression:

Stored size: 1.15 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_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

145 entries across 145 versions & 1 rubygems

Version Path
autoproj-1.10.2 bin/autoproj_stress_test
autoproj-1.10.1 bin/autoproj_stress_test
autoproj-1.10 bin/autoproj_stress_test
autoproj-1.10.rc1 bin/autoproj_stress_test
autoproj-1.9.7.rc23 bin/autoproj_stress_test
autoproj-1.9.7.rc22 bin/autoproj_stress_test
autoproj-1.9.7.rc21 bin/autoproj_stress_test
autoproj-1.9.7.rc20 bin/autoproj_stress_test
autoproj-1.9.7.rc19 bin/autoproj_stress_test
autoproj-1.9.7.rc18 bin/autoproj_stress_test
autoproj-1.9.7.rc17 bin/autoproj_stress_test
autoproj-1.9.7.rc16 bin/autoproj_stress_test
autoproj-1.9.7.rc15 bin/autoproj_stress_test
autoproj-1.9.7.rc14 bin/autoproj_stress_test
autoproj-1.9.7.rc13 bin/autoproj_stress_test
autoproj-1.9.7.rc12 bin/autoproj_stress_test
autoproj-1.9.7.rc11 bin/autoproj_stress_test
autoproj-1.9.7.rc10 bin/autoproj_stress_test
autoproj-1.9.7.rc9 bin/autoproj_stress_test
autoproj-1.9.7.rc7 bin/autoproj_stress_test