Changeset 50efbf4


Ignore:
Timestamp:
2021-03-31T10:37:18Z (3 years ago)
Author:
/ <>
Children:
1fb3406
Parents:
dde98bb2
Message:

remove bud

Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • .github/workflows/ci.yml

    rdde98bb2 r50efbf4  
    1515        sudo apt-get update -y
    1616        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 stop
     17        sudo prosodyctl stop
    1818
    1919    - name: build bitlbee
  • .tests/btlib.py

    rdde98bb2 r50efbf4  
    1414
    1515SEPARATOR = "="*60
     16
     17ALWAYSSHOWLOG = False
    1618
    1719class IrcClient:
     
    100102    fail = not test_function(clis)
    101103
    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)
    104110        print(SEPARATOR)
    105         print("Test Log "+ cli.nick+":")
    106         print(cli.tmplog)
    107     print(SEPARATOR)
    108111   
    109112    if fail:
     
    145148    ret = junk.find(clis[1].nick) != -1
    146149    ret = ret & (junk.find("1 available") != -1)
    147     '''
     150    return ret
     151
     152def remove_buddy_test(clis):
     153    ret = add_buddy_test(clis)
     154
    148155    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)
    150158    ret = ret & (clis[0].receive().find(clis[1].nick) == -1)
    151159
     
    153161    clis[1].send_priv_msg("&bitlbee", "yes")
    154162    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)
    156165    junk = clis[0].receive()
    157166    ret = ret & (junk.find("1 available") != -1)
    158167    ret = ret & (junk.find(clis[1].nick) != -1)
    159     '''
    160168    return ret
    161169
  • .tests/cleanup_prosody.sh

    rdde98bb2 r50efbf4  
    55sudo prosodyctl deluser test1@localhost
    66sudo prosodyctl deluser test2@localhost
    7 #sudo prosodyctl stop
     7sudo prosodyctl stop
  • .tests/setup_prosody.sh

    rdde98bb2 r50efbf4  
    33set -e
    44
    5 #sudo /etc/init.d/prosody start
     5sudo /etc/init.d/prosody start
    66sudo prosodyctl register test1 localhost asd
    77sudo prosodyctl register test2 localhost asd
Note: See TracChangeset for help on using the changeset viewer.