test: base64 encode/decode

pull/1/head
Michael Santos 7 years ago
parent 7d1fb8fdb8
commit ad39d23c05

@ -39,4 +39,4 @@ clean:
-@$(RM) xmppipe
test:
PATH=.:$$PATH bats test
-@PATH=.:$$PATH bats test

@ -37,3 +37,8 @@
'test123: &(*)_+' &
xmppipe -r user2 -o xmppipe-test-2 -s | egrep "^m:groupchat:[^/]+/user1:[^:]+:test123%3A%20%26%28%2A%29_%2B%0A"
}
@test "send/receive message: base64 stdin" {
(sleep 10; echo 'test123: ~!@#$' | xmppipe -x -o xmppipe-test-1 -r user1 -u "$XMPPIPE_TEST_USERNAME" -p "$XMPPIPE_TEST_PASSWORD") &
xmppipe -x -o xmppipe-test-1 -s | egrep "^m:groupchat:[^/]+/user1:[^:]+:test123%3A%20~%21@%23%24%0A"
}

Loading…
Cancel
Save