X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=test%2Fbasic.test;fp=test%2Fbasic.test;h=1277fb0d157fa531f4dd15c0fa08637350426a1b;hb=05a7f0b2fb07f8ee7752604a2a87b85f2430aaa3;hp=0000000000000000000000000000000000000000;hpb=d01ab07f78f84d7d30c5788416c8d4ca0e1f74bf;p=tinc diff --git a/test/basic.test b/test/basic.test new file mode 100755 index 00000000..1277fb0d --- /dev/null +++ b/test/basic.test @@ -0,0 +1,22 @@ +#!/bin/sh + +. ./testlib.sh + +# Initialize and test one node + +rm -rf config1 + +$tinc $c1 init foo +$tinc $c1 set DeviceType dummy +$tinc $c1 set Port 0 + +# Test running in the foreground + +(sleep 1; $tinc $c1 stop) & +$tinc $c1 start $r1 -D + +# Test running tinc in the background + +$tinc $c1 start $r1 +sleep 1 +$tinc $c1 stop