projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sourcehut CI: change build system to meson
[tinc]
/
test
/
basic.test
diff --git
a/test/basic.test
b/test/basic.test
index
1277fb0
..
87c5784
100755
(executable)
--- a/
test/basic.test
+++ b/
test/basic.test
@@
-2,21
+2,24
@@
. ./testlib.sh
. ./testlib.sh
-
#
Initialize and test one node
+
echo [STEP]
Initialize and test one node
-rm -rf config1
+tinc foo <<EOF
+init foo
+set DeviceType dummy
+set Port 0
+EOF
-$tinc $c1 init foo
-$tinc $c1 set DeviceType dummy
-$tinc $c1 set Port 0
+echo [STEP] Test running in the foreground
-# Test running in the foreground
+create_script foo tinc-up '
+ tinc foo stop &
+'
+start_tinc foo -D
-(sleep 1; $tinc $c1 stop) &
-$tinc $c1 start $r1 -D
+echo [STEP] Test running tinc in the background
-# Test running tinc in the background
-
-$tinc $c1 start $r1
-sleep 1
-$tinc $c1 stop
+create_script foo tinc-up '
+ tinc foo stop &
+'
+start_tinc foo