Skip to content

Commit

Permalink
[Runners] Add test about starting a bootstrap runner
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano committed Dec 2, 2021
1 parent 052bb8b commit b461ac8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "BinaryBuilderBase"
uuid = "7f725544-6523-48cd-82d1-3fa08ff4056e"
authors = ["Elliot Saba <staticfloat@gmail.com>"]
version = "1.0.4"
version = "1.0.5"

[deps]
CodecZlib = "944b1d66-785c-5afd-91f1-9de20f533193"
Expand Down
4 changes: 4 additions & 0 deletions test/runners.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,16 @@ end

@testset "hello world" begin
mktempdir() do dir
# Make sure we can start a shell in a runner when the bootstrap list is non-empty
@eval BinaryBuilderBase bootstrap_list = [:rootfs, :platform_support]
ur = preferred_runner()(dir; platform=Platform("x86_64", "linux"; libc="musl"))
iobuff = IOBuffer()
@test run(ur, `/bin/bash -c "echo test"`, iobuff)
seek(iobuff, 0)
# Test that we get the output we expect (e.g. the second line is `test`)
@test readlines(iobuff)[2] == "test"
# Restore empty bootstrap list
@eval BinaryBuilderBase bootstrap_list = Symbol[]
end
end

Expand Down

0 comments on commit b461ac8

Please sign in to comment.