-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
() | ||
chr: 65 | ||
int: 123456 | ||
int: -123456 | ||
lon: 1234567890 | ||
lon: -1234567890 | ||
str: "a string" | ||
str: "" | ||
str: None | ||
buf: Some([98, 117, 102, 102, 101, 114]) | ||
buf: None | ||
ptr: 0x1234abcd | ||
ptr: 0x0 | ||
tim: 1321993456 | ||
arr: [ str: "abc", str: "de", ] | ||
arr: [ int: 123, int: 456, int: 789, ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# Runs a quick test to make sure basic functionality is working. | ||
# This starts weechat, adds an insecure relay, then quits weechat, | ||
# so do not run it outside of a testing environment. | ||
if [ "$1" != "I understand what this script does." ] ; then | ||
echo "Do not run this script without reading and understanding it." | ||
exit 1 | ||
fi | ||
|
||
weechat-headless -r '/secure set relay mypassword ; /set relay.network.password "${sec.data.relay}" ; /relay add weechat 9500' & | ||
cargo run --features=cli -- --host localhost:9500 --init "mypassword" -s test/test.ws > test/out.txt | ||
diff test/out.txt test/expected.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
test | ||
input core.weechat /quit | ||
quit |