Browse code

core - test: reorganized the old files in test folder

- moved to subfolders in test/misc
- keep content of the test folder cleaner for travis and unit tests

Daniel-Constantin Mierla authored on 26/11/2015 22:30:51
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,34 +0,0 @@
1
-# test config file
2
-
3
-/* C style comment */
4
-
5
-/*
6
- * same thing but on multiple lines
7
- */
8
-
9
-/*
10
-  /* Nested
11
-    comment */
12
-*/
13
-
14
-
15
-debug=1
16
-dns=true #comment on the same line
17
-
18
-route{
19
-	(method==invite and src_ip==1.2.3.4/32 or (src_ip==4.3.2.1 and src_ip==11.12.13.14/24) ) log("test log\n"); forward("ape");
20
-	( uri=~"test\n" &  ! src_ip=~"dorian") forward(dorian.fokus.gmd.de);
21
-
22
-	(src_ip==192.168.0.0/255.255.0.0 or dst_ip==127.0.0.1 and uri=~"s$") \
23
-		error("440","not forwarding"); log(2,"droping..."); drop;
24
-
25
-	src_ip==127.0.0.1 route(3); drop;
26
-}
27
-
28
-fork=no
29
-
30
-route[3]{
31
-	(src_ip==0.0.0.0/0) exec('/bin/ls >/tmp/x'); send(4.3.2.1,8000); /* catch all */
32
-}
33
-
34
-/* eof */
Browse code

- fixed the cfg. files, added a new sip msg

Andrei Pelinescu-Onciul authored on 25/09/2001 23:09:08
Showing 1 changed files
... ...
@@ -17,9 +17,9 @@ dns=true #comment on the same line
17 17
 
18 18
 route{
19 19
 	(method==invite and src_ip==1.2.3.4/32 or (src_ip==4.3.2.1 and src_ip==11.12.13.14/24) ) log("test log\n"); forward("ape");
20
-	( uri~="test\n" &  ! src_ip~="dorian") forward(dorian.fokus.gmd.de);
20
+	( uri=~"test\n" &  ! src_ip=~"dorian") forward(dorian.fokus.gmd.de);
21 21
 
22
-	(src_ip==192.168.0.0/255.255.0.0 or dst_ip==127.0.0.1 and uri~="s$") \
22
+	(src_ip==192.168.0.0/255.255.0.0 or dst_ip==127.0.0.1 and uri=~"s$") \
23 23
 		error("440","not forwarding"); log(2,"droping..."); drop;
24 24
 
25 25
 	src_ip==127.0.0.1 route(3); drop;
Browse code

- bitlen mask fixes

Andrei Pelinescu-Onciul authored on 22/09/2001 02:20:24
Showing 1 changed files
... ...
@@ -16,7 +16,7 @@ debug=1
16 16
 dns=true #comment on the same line
17 17
 
18 18
 route{
19
-	(method==invite and src_ip==1.2.3.4 or (src_ip==4.3.2.1 and src_ip==11.12.13.14/24) ) log("test log\n"); forward("ape");
19
+	(method==invite and src_ip==1.2.3.4/32 or (src_ip==4.3.2.1 and src_ip==11.12.13.14/24) ) log("test log\n"); forward("ape");
20 20
 	( uri~="test\n" &  ! src_ip~="dorian") forward(dorian.fokus.gmd.de);
21 21
 
22 22
 	(src_ip==192.168.0.0/255.255.0.0 or dst_ip==127.0.0.1 and uri~="s$") \
Browse code

- added test configs & packets

Andrei Pelinescu-Onciul authored on 21/09/2001 21:42:52
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,34 @@
1
+# test config file
2
+
3
+/* C style comment */
4
+
5
+/*
6
+ * same thing but on multiple lines
7
+ */
8
+
9
+/*
10
+  /* Nested
11
+    comment */
12
+*/
13
+
14
+
15
+debug=1
16
+dns=true #comment on the same line
17
+
18
+route{
19
+	(method==invite and src_ip==1.2.3.4 or (src_ip==4.3.2.1 and src_ip==11.12.13.14/24) ) log("test log\n"); forward("ape");
20
+	( uri~="test\n" &  ! src_ip~="dorian") forward(dorian.fokus.gmd.de);
21
+
22
+	(src_ip==192.168.0.0/255.255.0.0 or dst_ip==127.0.0.1 and uri~="s$") \
23
+		error("440","not forwarding"); log(2,"droping..."); drop;
24
+
25
+	src_ip==127.0.0.1 route(3); drop;
26
+}
27
+
28
+fork=no
29
+
30
+route[3]{
31
+	(src_ip==0.0.0.0/0) exec('/bin/ls >/tmp/x'); send(4.3.2.1,8000); /* catch all */
32
+}
33
+
34
+/* eof */