增加配置更新的测试用例。

This commit is contained in:
zhengchao
2016-12-26 17:20:59 +08:00
parent d3cf39e698
commit 621ae259fa
30 changed files with 191 additions and 8 deletions

View File

@@ -0,0 +1,13 @@
0000000012
123 1 1 1 1 0 anything 1
124 1 1 1 1 0 anything 1
125 1 1 1 1 0 anything 1
126 1 1 1 1 0 anything 1
127 1 1 1 1 0 anything 1
128 1 1 1 1 0 anything 1
129 1 1 1 1 0 utf8_中文 1
130 1 1 1 1 0 utf8_维语 1
131 1 1 1 1 0 utf8_维语2 1
132 1 1 1 1 0 string\bunescape 1
133 1 1 1 1 0 table_conjunction_test_part1 1
134 1 1 1 1 0 table_conjunction_test_part2 1

View File

@@ -0,0 +1,3 @@
0000000002
3 2 100 500 1
6 5 2014 2016 1

View File

@@ -0,0 +1,2 @@
0000000001
7 6 1160164 12288:UChtbFS6pypdTy4m2[0:1160163] 3 1

View File

@@ -0,0 +1,16 @@
0000000015
0 123 1
1 123 1
0 124 1
2 124 1
3 125 1
4 126 1
5 126 1
6 127 1
7 128 1
8 129 1
9 130 1
10 131 1
11 132 1
12 133 1
13 134 1

View File

@@ -0,0 +1,2 @@
0000000001
13 12 www.3300av.com 0 0 0 1

View File

@@ -0,0 +1,2 @@
0000000001
8 7 URL abckkk&123 1 0 0 1

View File

@@ -0,0 +1,6 @@
0000000005
2 1 abckkk&123 1 0 0 1
4 3 action=search\&query=(.*) 2 0 0 1
5 4 should_not_hit_any_rule 0 0 0 1
9 8 C#中国 0 0 0 1
14 13 novel&27122.txt 1 0 0 1

View File

@@ -0,0 +1,3 @@
0000000002
0 0 4 10.0.6.201 255.255.0.0 0 65535 0.0.0.0 255.255.255.255 0 65535 6 0 1
1 0 6 2001:da8:205:1::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:0000 0 65535 0::0 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 0 65535 6 0 1

View File

@@ -0,0 +1,4 @@
0000000003
10 9 2010&يىلىدىكى 1 0 0 1
11 10 سىياسىي 1 0 0 1
12 11 Take\bme\bHome&Batman\ 1 0 0 1

View File

@@ -0,0 +1,4 @@
0000000003
1 192.168.0.1 101
2 192.168.0.2 101
3 192.168.1.1 102

View File

@@ -0,0 +1,4 @@
0000000003
1 3388 99 1
2 3355 66 1
3 cccc 11 1

View File

@@ -0,0 +1,4 @@
0000000003
1 plugname1 1
2 plugname2 1
3 plugname3 1

View File

@@ -0,0 +1 @@
0000000000

View File

@@ -0,0 +1,11 @@
COMPILE 12 ./rule/full/COMPILE.local
GROUP 15 ./rule/full/GROUP.local
TEST_PLUGIN_TABLE 3 ./rule/full/TEST_PLUGIN_TABLE.local
HTTP_REGION 1 ./rule/full/HTTP_REGION.local
IP_CONFIG 2 ./rule/full/IP_CONFIG.local
CONTENT_SIZE 2 ./rule/full/CONTENT_SIZE.local
HTTP_URL 5 ./rule/full/HTTP_URL.local
HTTP_HOST 1 ./rule/full/HTTP_HOST.local
QD_ENTRY_INFO 3 ./rule/full/QD_ENTRY_INFO.local
FILE_DIGEST 1 ./rule/full/FILE_DIGEST.local
KEYWORDS_TABLE 3 ./rule/full/KEYWORDS_TABLE.local

View File

@@ -0,0 +1,13 @@
0000000012
123 1 1 1 1 0 anything 1
124 1 1 1 1 0 anything 1
125 1 1 1 1 0 anything 1
126 1 1 1 1 0 anything 1
127 1 1 1 1 0 anything 1
128 1 1 1 1 0 anything 1
129 1 1 1 1 0 utf8_中文 1
130 1 1 1 1 0 utf8_维语 1
131 1 1 1 1 0 utf8_维语2 1
132 1 1 1 1 0 string\bunescape 1
133 1 1 1 1 0 table_conjunction_test_part1 1
134 1 1 1 1 0 table_conjunction_test_part2 1

View File

@@ -0,0 +1,3 @@
0000000002
3 2 100 500 1
6 5 2014 2016 1

View File

@@ -0,0 +1,2 @@
0000000001
7 6 1160164 12288:UChtbFS6pypdTy4m2[0:1160163] 3 1

16
test/rule/inc/GROUP.local Normal file
View File

@@ -0,0 +1,16 @@
0000000015
0 123 1
1 123 1
0 124 1
2 124 1
3 125 1
4 126 1
5 126 1
6 127 1
7 128 1
8 129 1
9 130 1
10 131 1
11 132 1
12 133 1
13 134 1

View File

@@ -0,0 +1,2 @@
0000000001
13 12 www.3300av.com 0 0 0 1

View File

@@ -0,0 +1,2 @@
0000000001
8 7 URL abckkk&123 1 0 0 1

View File

@@ -0,0 +1,6 @@
0000000005
2 1 abckkk&123 1 0 0 1
4 3 action=search\&query=(.*) 2 0 0 1
5 4 should_not_hit_any_rule 0 0 0 1
9 8 C#中国 0 0 0 1
14 13 novel&27122.txt 1 0 0 1

View File

@@ -0,0 +1,3 @@
0000000002
0 0 4 10.0.6.201 255.255.0.0 0 65535 0.0.0.0 255.255.255.255 0 65535 6 0 1
1 0 6 2001:da8:205:1::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:0000 0 65535 0::0 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 0 65535 6 0 1

View File

@@ -0,0 +1,3 @@
0000000003
10 9 2010&يىلىدىكى 1 0 0 1
11 10 سىياسىي 1 0 0 1

View File

@@ -0,0 +1,4 @@
0000000003
1 192.168.0.1 101
2 192.168.0.2 101
3 192.168.1.1 102

View File

@@ -0,0 +1,4 @@
0000000003
1 3388 99 1
2 3355 66 1
3 cccc 11 1

View File

@@ -0,0 +1,4 @@
0000000003
1 plugname1 1
2 plugname2 1
3 plugname3 1

View File

@@ -0,0 +1 @@
0000000000

View File

@@ -0,0 +1,10 @@
COMPILE 12 ./rule/inc/COMPILE.local
GROUP 15 ./rule/inc/GROUP.local
HTTP_REGION 1 ./rule/inc/HTTP_REGION.local
IP_CONFIG 2 ./rule/inc/IP_CONFIG.local
CONTENT_SIZE 2 ./rule/inc/CONTENT_SIZE.local
HTTP_URL 5 ./rule/inc/HTTP_URL.local
HTTP_HOST 1 ./rule/inc/HTTP_HOST.local
QD_ENTRY_INFO 3 ./rule/inc/QD_ENTRY_INFO.local
FILE_DIGEST 1 ./rule/inc/FILE_DIGEST.local
KEYWORDS_TABLE 2 ./rule/inc/KEYWORDS_TABLE.local