quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

test1179 (664B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 cmdline
      5 wrong option
      6 </keywords>
      7 </info>
      8 
      9 #
     10 # Server-side
     11 <reply>
     12 </reply>
     13 
     14 #
     15 # Client-side
     16 <client>
     17 <server>
     18 none
     19 </server>
     20 # make this test require manual as the error message is different without it
     21 <features>
     22 manual
     23 </features>
     24 <name>
     25 error when using unknown command line option
     26 </name>
     27 <command>
     28 --never-implemented http://never.use.this.example.com/%TESTNUMBER
     29 </command>
     30 </client>
     31 
     32 #
     33 # Verify data after the test has been "shot"
     34 <verify>
     35 <errorcode>
     36 2
     37 </errorcode>
     38 <stderr mode="text">
     39 curl: option --never-implemented: is unknown
     40 curl: try 'curl --help' or 'curl --manual' for more information
     41 </stderr>
     42 </verify>
     43 </testcase>