# Running unit tests for Julia proper on home PC stalls computer

**URL:** <https://discourse.julialang.org/t/running-unit-tests-for-julia-proper-on-home-pc-stalls-computer/54248>\
**Category:** General Usage\
**Created:** [January 30, 2021, 3:12am UTC](https://discourse.julialang.org/t/running-unit-tests-for-julia-proper-on-home-pc-stalls-computer/54248 "2021-01-30T03:12:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![BioTurboNick](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bioturbonick/32/6380_2.png) [@BioTurboNick](https://discourse.julialang.org/u/BioTurboNick)\
**Post date:** [January 30, 2021, 3:12am UTC](https://discourse.julialang.org/t/running-unit-tests-for-julia-proper-on-home-pc-stalls-computer/54248/1 "2021-01-30T03:12:20Z")

</div>

Whenever I try running the tests for Julia itself on my home computer, the system completely stalls out.

Is there a way to keep it from blowing up my system and complete normally?

---

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [January 30, 2021, 3:17am UTC](https://discourse.julialang.org/t/running-unit-tests-for-julia-proper-on-home-pc-stalls-computer/54248/2 "2021-01-30T03:17:44Z")

</div>

How are you running the tests for Julia itself?

---

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [January 30, 2021, 3:25am UTC](https://discourse.julialang.org/t/running-unit-tests-for-julia-proper-on-home-pc-stalls-computer/54248/3 "2021-01-30T03:25:38Z")

</div>

It may be useful to see how [build.julialang.org](http://build.julialang.org) works.

From tester\_linux64:

```julia
bin/julia rr_capture.jl 163 2a0368e8dc bin/julia -e 'include(joinpath(Sys.BINDIR, Base.DATAROOTDIR, "julia", "test", "choosetests.jl")); Base.runtests(append!(choosetests()[1], ["LibGit2/online", "download"]); ncores=min(Sys.CPU_THREADS, 8, 6))'

```

From tester\_win64:

```julia
bin\julia.exe autodump.jl 157 2a0368e8dc bin\julia.exe -e ^"include^(joinpath^(Sys.BINDIR, Base.DATAROOTDIR, \^"julia\^", \^"test\^", \^"choosetests.jl\^"^)^); Base.runtests^(append!^(choosetests^(^)[1], [\^"LibGit2/online\^", \^"download\^"]^); ncores=min^(Sys.CPU_THREADS, 8, 9^)^)^"

```

The build bot scripts and configuration are located in [https://github.com/JuliaCI/julia-buildbot](https://github.com/JuliaCI/julia-buildbot) .

If I’m building Julia, then I might run `make -j8 testall` where 8 is the number of cores I have available.

---

<div class="post-metadata">

**Author:** ![BioTurboNick](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bioturbonick/32/6380_2.png) [@BioTurboNick](https://discourse.julialang.org/u/BioTurboNick)\
**Post date:** [January 30, 2021, 3:48am UTC](https://discourse.julialang.org/t/running-unit-tests-for-julia-proper-on-home-pc-stalls-computer/54248/4 "2021-01-30T03:48:41Z")

</div>

I’ve just been doing `include("test/runtests.jl")` in the REPL. I’ll try that, thanks!

---

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [January 30, 2021, 4:37am UTC](https://discourse.julialang.org/t/running-unit-tests-for-julia-proper-on-home-pc-stalls-computer/54248/5 "2021-01-30T04:37:37Z")

</div>

Also see `Base.runtests()`: [Unit Testing · The Julia Language](https://docs.julialang.org/en/v1/stdlib/Test/#Testing-Base-Julia)
