# this basic test makes sure mailutil is properly built and linked against its library
Test-Command: mailutil | grep "mailutil version"
Depends: @

# can run a basic function, with the default INBOX
Test-Command: mailutil check | grep INBOX
Depends: @

# can run a basic function, create another mailbox
Test-Command: mailutil create TEST_INBOX
Depends: @

# can run a basic function, check another mailbox
Test-Command: mailutil check TEST_INBOX | grep "No new messages, 0 total in TEST_INBOX"
Depends: @

# can run a basic function, delete another mailbox
Test-Command: mailutil delete TEST_INBOX
Depends: @

# can't delete mailbox that doesn't exists
Test-Command: mailutil delete MISSING_INBOX 2>&1 | grep "Can't delete mailbox MISSING_INBOX: no such mailbox"
Depends: @

# fails to check a mailbox that doesn't exists
Test-Command: mailutil check MISSING_INBOX 2>&1 | grep "Can't get status of mailbox MISSING_INBOX: no such mailbox"
Depends: @

# can rename an inbox
Test-Command: mailutil create SOME_INBOX && mailutil rename SOME_INBOX SOME_INBOX2 && mailutil check SOME_INBOX2
Depends: @
