Skip to content

Commit

Permalink
test: add debug statements to tests to debug CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mchitre committed Aug 14, 2023
1 parent a133f9e commit 1308296
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ println("Starting tests...")
ips = string.(filter(x -> x isa IPv4, getipaddrs()))
println("IPs: $(ips)")
ip = first(ips)
run(`nc -w 1 $ip 1101`) # to check on CI that connection is OK

try

@testset "socket" begin
Expand Down
3 changes: 3 additions & 0 deletions test/sim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ DIR=`find . -name bin -print`

if [ "$1" == "start" ]; then
$DIR/unet $DIR/../../../2-node-network.groovy &
sleep 1
PID=`ps -o pid,command | grep unet | grep -v grep | cut -d' ' -f1`
echo "Started unet with PID $PID"
fi

if [ "$1" == "stop" ]; then
Expand Down

2 comments on commit 1308296

@mchitre
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/89600

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.3.0 -m "<description of version>" 1308296b69f9ce8345e4fd0ccc14cec8c15d3cdc
git push origin v0.3.0

Please sign in to comment.