|
- [
- {
- "title": "gen ident",
- "cmd": [ "genident", "name=A Test User" ],
- "exit": 0
- },
- {
- "title": "Test auto detection of file",
- "cmd": [ "auto", "test.txt" ],
- "stdin": "y\n",
- "stdout": "Set:\n\tmimetype:\ttext/plain; charset=us-ascii\n\nApply (y/N)?\n"
- },
- {
- "title": "Verify modification",
- "cmd": [ "list", "test.txt" ],
- "stdin": "y\n",
- "stdout_re": "mimetype:\ttext/plain; charset=us-ascii"
- },
- {
- "title": "Test auto detection of jpeg file",
- "cmd": [ "auto", "z.jpg" ],
- "stdin": "y\n",
- "stdout": "Set:\n\tmimetype:\timage/jpeg\n\nApply (y/N)?\n"
- },
- {
- "title": "Verify modification",
- "cmd": [ "list", "z.jpg" ],
- "stdin": "y\n",
- "stdout_re": "mimetype:\timage/jpeg"
- },
- {
- "title": "Test auto detection of two files",
- "cmd": [ "auto", "z.jpg", "test.txt" ],
- "stdin": "y\ny\n",
- "stdout": "Set:\n\tmimetype:\timage/jpeg\n\nApply (y/N)?\nSet:\n\tmimetype:\ttext/plain; charset=us-ascii\n\nApply (y/N)?\n"
- },
- {
- "title": "Verify modification",
- "cmd": [ "list", "z.jpg", "test.txt" ],
- "stdin": "y\n",
- "stdout_re": "hashes:.*\nmimetype:\timage/jpeg.*\nsig:.*\nhashes:.*\nmimetype:\ttext/plain.*\nsig:.*\n"
- }
- ]
|