Here's an initial start at this (mainly in the tests/ directory):
https://github.com/von-forks/password-store/tree/testing

Its mainly a smoke test at this point, but the harness is working. I'll
keep working on it rest of the weekend but any feedback welcome.

BTW, to save a bunch of work in launching a gpg-agent, I'm just using an
unencrypted test key. That might be confusing pass (e.g. 'pass init' works
but returns non-zero), hence the work-around in pass_init() at the moment.
Clearly a bug in some way - if pass isn't going to allow this, it should do
so more cleanly.

Von




On Thu, Apr 17, 2014 at 10:06 PM, Von Welch <[email protected]> wrote:

> I'd be willing to take a stab at this this weekend if no one else jumps on
> it.
>
> I've got no experience with test frameworks for bash scripts. The cgit
> make-based one looks simple but reasonable. Google turns up a number of
> options. Any opinions welcome.
>
> Von
>
>
>
> On Thu, Apr 17, 2014 at 7:37 PM, Jason A. Donenfeld <[email protected]>wrote:
>
>> Hey guys,
>>
>> Pass is getting complex. There are lots of edge cases now. I think I'd
>> like an automated testing suite, like what we have with cgit (copying Lukas
>> on this mail).
>>
>> Would somebody step up and make a really nice automated test suite? I'd
>> be happy to give you commit access to that subfolder of the repo if you'd
>> be up for this. It shouldn't be a lot of work and would help the project
>> tons.
>>
>> Thanks,
>> Jason
>>
>> _______________________________________________
>> Password-Store mailing list
>> [email protected]
>> http://lists.zx2c4.com/mailman/listinfo/password-store
>>
>>
>
_______________________________________________
Password-Store mailing list
[email protected]
http://lists.zx2c4.com/mailman/listinfo/password-store

Reply via email to