xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
2 | <info> | ||||
3 | <keywords> | ||||
4 | SMB | ||||
5 | </keywords> | ||||
6 | </info> | ||||
7 | |||||
8 | # | ||||
9 | # Server-side | ||||
10 | <reply> | ||||
11 | <data nocheck="yes"> | ||||
12 | Basic SMB test complete | ||||
13 | </data> | ||||
14 | </reply> | ||||
15 | |||||
16 | # | ||||
17 | # Client-side | ||||
18 | <client> | ||||
19 | <server> | ||||
20 | smb | ||||
21 | </server> | ||||
22 | <features> | ||||
23 | smb | ||||
24 | </features> | ||||
25 | <name> | ||||
26 | Basic SMB request | ||||
27 | </name> | ||||
28 | <command> | ||||
29 | -u 'curltest:curltest' smb://%HOSTIP:%SMBPORT/TESTS/%TESTNUMBER | ||||
30 | </command> | ||||
31 | <precheck> | ||||
32 | python3 -c "__import__('pkgutil').find_loader('impacket') or (__import__('sys').stdout.write('Test only works if Python package impacket is installed\n'), __import__('sys').exit(1))" | ||||
33 | </precheck> | ||||
34 | </client> | ||||
35 | |||||
36 | # | ||||
37 | # Verify data after the test has been "shot" | ||||
38 | <verify> | ||||
39 | <stdout> | ||||
40 | Basic SMB test complete | ||||
41 | </stdout> | ||||
42 | </verify> | ||||
43 | </testcase> |