Skip to content
Snippets Groups Projects
Commit df60fc47 authored by Marcus Greiff's avatar Marcus Greiff
Browse files

Add dummy test to make pipeline run

parent d1a76170
No related branches found
No related tags found
No related merge requests found
Pipeline #
#BB side
function startbb()
@async begin
server = listen(2001)
while true
sock = accept(server)
println("accepted")
@async while isopen(sock)
l = deserialize(sock);
println(typeof(l))
#print("Read: ");
println(l);
serialize(sock,l)
end
end
end
end
using Base.Test
#Computer side
clientside = connect(ip"192.168.7.2", 2001)
function getminor(t)
println(Int64(t))
t2 = UInt64(floor(UInt64,t/1e9)*1e9)
tsmall = Int32(t-t2)
end
function runcomp(clientside)
@async while isopen(clientside)
l = deserialize(clientside)::Int32;
#print("Read:");
t = time_ns()
#println(t)
t2 = getminor(t)
println((t2-l)/1e6)
end
#Fixture
@testset "Dummy test to make pipeline run" begin
@test true==true
end
serialize(clientside, getminor(time_ns()))
end # module
#BB side
function startbb()
@async begin
server = listen(2001)
while true
sock = accept(server)
println("accepted")
@async while isopen(sock)
l = deserialize(sock);
println(typeof(l))
#print("Read: ");
println(l);
serialize(sock,l)
end
end
end
end
#Computer side
clientside = connect(ip"192.168.7.2", 2001)
function getminor(t)
println(Int64(t))
t2 = UInt64(floor(UInt64,t/1e9)*1e9)
tsmall = Int32(t-t2)
end
function runcomp(clientside)
@async while isopen(clientside)
l = deserialize(clientside)::Int32;
#print("Read:");
t = time_ns()
#println(t)
t2 = getminor(t)
println((t2-l)/1e6)
end
end
serialize(clientside, getminor(time_ns()))
end # module
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment