Skip to content

Instantly share code, notes, and snippets.

@come-maiz
Last active October 27, 2016 05:11
Show Gist options
  • Save come-maiz/45032e7a6a0d23c117a62e44b14b4042 to your computer and use it in GitHub Desktop.
Save come-maiz/45032e7a6a0d23c117a62e44b14b4042 to your computer and use it in GitHub Desktop.
Errbot snap testing

Smoke tests for the Errbot snap

(based on http://errbot.io/en/latest/user_guide/setup.html)

First, build and install the snap:

$ sudo apt install git snapcraft
$ git clone https://github.com/elopio/errbot
$ cd errbot
$ git checkout snapcraft
$ snapcraft
$ sudo snap install *.snap --dangerous

Init the bot:

$ mkdir ~/errbot-test
$ cd ~/errbot-test
$ errbot --init
Your Errbot directory has been correctly initialized !
Just do "errbot" and it should start in text/development mode.

Try the bot prompt:

$ errbot
[...]
 >>> !tryme
It works !

 >>> !help
All commands

 Backup
 Backup related commands.
• !backup - Backup everything.
[...]
• !history - display the command history

 >>> !about
This is Errbot version 9.9.9
• Visit http://errbot.io/ for more information about errbot in general.
[...]
Errbot, without whom this project never would have grown into what it is today.

 >>> !shutdown --confirm
Roger that. I am shutting down.
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment