Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BIBO tests
10-12-2020, 12:33 AM (This post was last modified: 10-12-2020 12:47 AM by lingu.)
Post: #23
RE: BIBO tests
(10-11-2020 08:49 PM)zhihao Wrote:  首文添加 test_inquire_shen.sh:
test_inquire_shen.sh: 用于测试处理20288个字符的查询请求时,是否会出现没有返回值的情况

triage()用jq获得casetype,但似乎jq处理相关网络请求json报错。

Code:
[sage@limbo30-1 typical]$ cp ../newcase/newcase.txt /thinker/net/udata/all/
[sage@limbo30-1 typical]$ jq '.type' /thinker/net/udata/all/newcase.txt
parse error: Invalid numeric literal at line 1, column 6197
[sage@limbo30-1 typical]$

但处理该json原始文件不报错。
Code:
[sage@limbo30-1 typical]$ jq '.type' /thinker/globe/soft/bibo/app/test/processed/query_shenmou.json
"query"
[sage@limbo30-1 typical]$

两个文件不同。
Code:
[sage@limbo30-1 typical]$ ll /thinker/globe/soft/bibo/app/test/processed/query_shenmou.json
-rw-rw-r-- 1 sage lingu 29771 Oct 11 21:52 /thinker/globe/soft/bibo/app/test/processed/query_shenmou.json
[sage@limbo30-1 typical]$ ll /thinker/net/udata/all/newcase.txt
-rw-rw-r-- 1 sage sage 29746 Oct 11 23:31 /thinker/net/udata/all/newcase.txt
[sage@limbo30-1 typical]$

看2文件开头没有什么不同。
Code:
[sage@limbo30-1 typical]$ od -c /thinker/net/udata/all/newcase.txt  |head
0000000   {   "   t   y   p   e   "   :   "   q   u   e   r   y   "   ,
0000020   "   q   u   e   r   y   "   :   " 344 270 212 346 265 267 345
0000040 270 202 346 237 220 345 214 272 344 272 272 346 260 221 346 243
0000060 200 345 257 237 351 231 242 345 205 254 350 257 211 346 241 210
0000100 344 273 266 345 256 241 346 237 245 346 212 245 345 221 212 346
0000120 224 266 346 241 210 346 227 266 351 227 264 357 274 232   2   0
0000140   1   9 345 271 264   7 346 234 210   3   0 346 227 245 344 276
0000160 246 346 237 245 346 234 272 345 205 263 357 274 232 344 270 212
0000200 346 265 267 345 270 202 345 205 254 345 256 211 345 261 200 346
0000220 237 220 345 210 206 345 261 200 347 247 273 351 200 201 345 215
[sage@limbo30-1 typical]$ od -c /thinker/globe/soft/bibo/app/test/processed/query_shenmou.json |head
0000000   {   "   t   y   p   e   "   :   "   q   u   e   r   y   "   ,
0000020   "   q   u   e   r   y   "   :   " 344 270 212 346 265 267 345
0000040 270 202 346 237 220 345 214 272 344 272 272 346 260 221 346 243
0000060 200 345 257 237 351 231 242 345 205 254 350 257 211 346 241 210
0000100 344 273 266 345 256 241 346 237 245 346 212 245 345 221 212 346
0000120 224 266 346 241 210 346 227 266 351 227 264 357 274 232   2   0
0000140   1   9 345 271 264   7 346 234 210   3   0 346 227 245 344 276
0000160 246 346 237 245 346 234 272 345 205 263 357 274 232 344 270 212
0000200 346 265 267 345 270 202 345 205 254 345 256 211 345 261 200 346
0000220 237 220 345 210 206 345 261 200 347 247 273 351 200 201 345 215

把二者全部od出来,发现差异在有 A z " 的地方开始。
Code:
742  od -c /thinker/net/udata/all/newcase.txt  > /tmp/newcase.od
  743  od -c /thinker/globe/soft/bibo/app/test/processed/query_shenmou.json > /tmp/shen.od
  744  diff /tmp/newcase.od /tmp/shen.od
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
BIBO tests - lingu - 09-26-2020, 01:49 PM
RE: BIBO tests - lingu - 09-26-2020, 01:53 PM
RE: BIBO tests - zhihao - 09-26-2020, 07:11 PM
RE: BIBO tests - zhihao - 09-26-2020, 09:38 PM
RE: BIBO tests - lingu - 09-27-2020, 12:00 PM
RE: BIBO tests - zhihao - 10-07-2020, 09:44 PM
RE: BIBO tests - zhihao - 09-26-2020, 09:57 PM
RE: BIBO tests - lingu - 09-27-2020, 12:14 PM
RE: BIBO tests - zhihao - 10-07-2020, 11:01 PM
RE: BIBO tests - zhihao - 09-26-2020, 10:04 PM
RE: BIBO tests - lingu - 09-27-2020, 12:15 PM
RE: BIBO tests - zhihao - 10-07-2020, 11:21 PM
RE: BIBO tests - zhihao - 09-26-2020, 10:14 PM
RE: BIBO tests - lingu - 09-27-2020, 12:16 PM
RE: BIBO tests - zhihao - 10-07-2020, 11:29 PM
RE: BIBO tests - zhihao - 09-27-2020, 11:46 AM
RE: BIBO tests - lingu - 09-27-2020, 12:20 PM
RE: BIBO tests - zhihao - 10-07-2020, 11:38 PM
RE: BIBO tests - lingu - 10-09-2020, 12:16 PM
RE: BIBO tests - lingu - 10-09-2020, 05:09 PM
RE: BIBO tests - zhihao - 10-09-2020, 05:33 PM
RE: BIBO tests - zhihao - 10-11-2020, 08:49 PM
RE: BIBO tests - lingu - 10-12-2020 12:33 AM
RE: BIBO tests - lingu - 10-12-2020, 04:27 AM
RE: BIBO tests - lingu - 11-30-2020, 05:19 PM
RE: BIBO tests - zhihao - 05-22-2021, 01:50 PM
RE: BIBO tests - lingu - 11-30-2020, 05:22 PM
RE: BIBO tests - lingu - 05-22-2021, 11:26 AM
RE: BIBO tests - zhihao - 08-13-2021, 01:27 AM

Forum Jump: