test1654 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <testcase>
  2. <info>
  3. <keywords>
  4. unittest
  5. alt-svc
  6. altsvc
  7. </keywords>
  8. </info>
  9. <client>
  10. <server>
  11. none
  12. </server>
  13. <features>
  14. unittest
  15. alt-svc
  16. </features>
  17. # This date is exactly "20190124 22:34:21" UTC
  18. <setenv>
  19. CURL_TIME=1548369261
  20. </setenv>
  21. <name>
  22. alt-svc
  23. </name>
  24. <command>
  25. %LOGDIR/%TESTNUMBER
  26. </command>
  27. <file name="%LOGDIR/%TESTNUMBER" mode="text">
  28. h2 example.com 443 h3 shiny.example.com 8443 "20191231 00:00:00" 0 1
  29. # a comment
  30. h2 foo.example.com 443 h3 shiny.example.com 8443 "20291231 23:30:00" 0 1
  31. h1 example.com 443 h3 shiny.example.com 8443 "20121231 00:00:01" 0 1
  32. h3 example.com 443 h3 shiny.example.com 8443 "20131231 00:00:00" 0 1
  33. # also a comment
  34. bad example.com 443 h3 shiny.example.com 8443 "20191231 00:00:00" 0 1
  35. rubbish
  36. </file>
  37. </client>
  38. <verify>
  39. <file name="%LOGDIR/%TESTNUMBER-out" mode="text">
  40. # Your alt-svc cache. https://curl.se/docs/alt-svc.html
  41. # This file was generated by libcurl! Edit at your own risk.
  42. h2 example.com 443 h3 shiny.example.com 8443 "20191231 00:00:00" 0 1
  43. h2 foo.example.com 443 h3 shiny.example.com 8443 "20291231 23:30:00" 0 1
  44. h1 example.com 443 h3 shiny.example.com 8443 "20121231 00:00:01" 0 1
  45. h3 example.com 443 h3 shiny.example.com 8443 "20131231 00:00:00" 0 1
  46. h1 example.org 8080 h2 example.com 8080 "20190125 22:34:21" 0 0
  47. h1 2.example.org 8080 h3 2.example.org 8080 "20190125 22:34:21" 0 0
  48. h1 3.example.org 8080 h2 example.com 8080 "20190125 22:34:21" 0 0
  49. h1 3.example.org 8080 h3 yesyes.com 8080 "20190125 22:34:21" 0 0
  50. h2 example.org 80 h2 example.com 443 "20190124 22:36:21" 0 0
  51. h2 example.net 80 h2 example.net 443 "20190124 22:37:21" 0 0
  52. </file>
  53. </verify>
  54. </testcase>