MetaData Sharing
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

44 lines
1.1 KiB

  1. [
  2. {
  3. "title": "gen ident",
  4. "cmd": [ "genident", "name=A Test User" ],
  5. "exit": 0
  6. },
  7. {
  8. "title": "Test auto detection of file",
  9. "cmd": [ "auto", "test.txt" ],
  10. "stdin": "y\n",
  11. "stdout": "Set:\n\tmimetype:\ttext/plain; charset=us-ascii\n\nApply (y/N)?\n"
  12. },
  13. {
  14. "title": "Verify modification",
  15. "cmd": [ "list", "test.txt" ],
  16. "stdin": "y\n",
  17. "stdout_re": "mimetype:\ttext/plain; charset=us-ascii"
  18. },
  19. {
  20. "title": "Test auto detection of jpeg file",
  21. "cmd": [ "auto", "z.jpg" ],
  22. "stdin": "y\n",
  23. "stdout": "Set:\n\tmimetype:\timage/jpeg\n\nApply (y/N)?\n"
  24. },
  25. {
  26. "title": "Verify modification",
  27. "cmd": [ "list", "z.jpg" ],
  28. "stdin": "y\n",
  29. "stdout_re": "mimetype:\timage/jpeg"
  30. },
  31. {
  32. "title": "Test auto detection of two files",
  33. "cmd": [ "auto", "z.jpg", "test.txt" ],
  34. "stdin": "y\ny\n",
  35. "stdout": "Set:\n\tmimetype:\timage/jpeg\n\nApply (y/N)?\nSet:\n\tmimetype:\ttext/plain; charset=us-ascii\n\nApply (y/N)?\n"
  36. },
  37. {
  38. "title": "Verify modification",
  39. "cmd": [ "list", "z.jpg", "test.txt" ],
  40. "stdin": "y\n",
  41. "stdout_re": "hashes:.*\nmimetype:\timage/jpeg.*\nsig:.*\nhashes:.*\nmimetype:\ttext/plain.*\nsig:.*\n"
  42. }
  43. ]