<commit_before>using Base.Test

function runtests()
    nprocs = min(4, CPU_CORES)
    exename = joinpath(JULIA_HOME, Base.julia_exename())
    testfiles = sort(filter(x->x!="runtests.jl", readdir(dirname(@__FILE__))))
    nfail = 0
    for f in testfiles
        nfail += !success(`mpirun -np $nprocs $exename $f`)
    end
    return nfail
end

exit(runtests())<commit_msg>show which tests pass / fail, try to run all tests<commit_after>using Base.Test

function runtests()
    nprocs = min(4, CPU_CORES)
    exename = joinpath(JULIA_HOME, Base.julia_exename())
    testfiles = sort(filter(x->x!="runtests.jl", readdir(dirname(@__FILE__))))
    nfail = 0
    print_with_color(:white, "Running MPI.jl tests\n")
    for f in testfiles
        try
            if success(`mpirun -np $nprocs $exename $f`)
                Base.with_output_color(:green,STDOUT) do io
                    println(io,"\tSUCCESS: $f")
                end
            else
                Base.with_output_color(:red,STDERR) do io
                    println("\tFAILED: $f")
                end
                nfail += 1
            end
        catch ex
            Base.with_output_color(:red,STDERR) do io
                println(io,"\tError: $f")
                showerror(io,ex,backtrace())
            end
            nfail += 1
        end
    end
    return nfail
end

exit(runtests())
{'fraction_non_alphanumeric': 0.11476608187134503, 'fraction_numerical': 0.0043859649122807015, 'mean_word_length': 2.0287610619469025, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1629053', 'n_tokens_mistral': 463, 'n_tokens_neox': 442, 'n_words': 101}