[ { "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" } ]