basic.test 299 B

1234567891011121314151617181920
  1. #!/bin/sh
  2. . ./testlib.sh
  3. # Initialize and test one node
  4. $tinc $c1 init foo
  5. $tinc $c1 set DeviceType dummy
  6. $tinc $c1 set Port 0
  7. # Test running in the foreground
  8. (sleep 1; $tinc $c1 stop) &
  9. $tinc $c1 start $r1 -D
  10. # Test running tinc in the background
  11. $tinc $c1 start $r1
  12. sleep 1
  13. $tinc $c1 stop