Changeset 50efbf4
- Timestamp:
- 2021-03-31T10:37:18Z (4 years ago)
- Children:
- 1fb3406
- Parents:
- dde98bb2
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
.github/workflows/ci.yml
rdde98bb2 r50efbf4 15 15 sudo apt-get update -y 16 16 sudo apt-get install -y --no-install-recommends clang git make pkg-config libgnutls28-dev libgcrypt20-dev libglib2.0-dev prosody gcovr 17 #sudo prosodyctl stop17 sudo prosodyctl stop 18 18 19 19 - name: build bitlbee -
.tests/btlib.py
rdde98bb2 r50efbf4 14 14 15 15 SEPARATOR = "="*60 16 17 ALWAYSSHOWLOG = False 16 18 17 19 class IrcClient: … … 100 102 fail = not test_function(clis) 101 103 102 for cli in clis: 103 cli.receive() 104 if ALWAYSSHOWLOG or fail: 105 for cli in clis: 106 cli.receive() 107 print(SEPARATOR) 108 print("Test Log "+ cli.nick+":") 109 print(cli.tmplog) 104 110 print(SEPARATOR) 105 print("Test Log "+ cli.nick+":")106 print(cli.tmplog)107 print(SEPARATOR)108 111 109 112 if fail: … … 145 148 ret = junk.find(clis[1].nick) != -1 146 149 ret = ret & (junk.find("1 available") != -1) 147 ''' 150 return ret 151 152 def remove_buddy_test(clis): 153 ret = add_buddy_test(clis) 154 148 155 clis[0].send_priv_msg("&bitlbee", "remove " +clis[1].nick) 149 clis[0].send_priv_msg("&bitlbee", "blist") 156 clis[0].send_priv_msg("&bitlbee", "blist all") 157 time.sleep(0.5) 150 158 ret = ret & (clis[0].receive().find(clis[1].nick) == -1) 151 159 … … 153 161 clis[1].send_priv_msg("&bitlbee", "yes") 154 162 time.sleep(1) 155 clis[0].send_priv_msg("&bitlbee", "blist") 163 clis[0].send_priv_msg("&bitlbee", "blist all") 164 time.sleep(0.5) 156 165 junk = clis[0].receive() 157 166 ret = ret & (junk.find("1 available") != -1) 158 167 ret = ret & (junk.find(clis[1].nick) != -1) 159 '''160 168 return ret 161 169 -
.tests/cleanup_prosody.sh
rdde98bb2 r50efbf4 5 5 sudo prosodyctl deluser test1@localhost 6 6 sudo prosodyctl deluser test2@localhost 7 #sudo prosodyctl stop7 sudo prosodyctl stop -
.tests/setup_prosody.sh
rdde98bb2 r50efbf4 3 3 set -e 4 4 5 #sudo /etc/init.d/prosody start5 sudo /etc/init.d/prosody start 6 6 sudo prosodyctl register test1 localhost asd 7 7 sudo prosodyctl register test2 localhost asd
Note: See TracChangeset
for help on using the changeset viewer.