Skip to content

Commit 2105763

Browse files
committed
Run the testsuite for one platform as sanity check
1 parent 137605e commit 2105763

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/runners.jl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,3 +189,18 @@ end
189189
end
190190
end
191191
end
192+
193+
@testset "Shards" begin
194+
# Run the testsuite as sanity check
195+
@testset "testsuite" begin
196+
mktempdir() do dir
197+
ur = preferred_runner()(dir; platform=Platform("x86_64", "linux"; libc="glibc"), preferred_gcc_version=v"5", compilers=[:c, :rust, :go])
198+
iobuff = IOBuffer()
199+
test_script = raw"""
200+
set -e
201+
make -j${nproc} -sC /usr/share/testsuite install
202+
"""
203+
@test run(ur, `/bin/bash -c "$(test_script)"`, iobuff; tee_stream=devnull)
204+
end
205+
end
206+
end

0 commit comments

Comments
 (0)