orbitzs 3e5a6ea51e add esp8266 project files 4 vuotta sitten
..
.gitignore 3e5a6ea51e add esp8266 project files 4 vuotta sitten
README.rst 3e5a6ea51e add esp8266 project files 4 vuotta sitten
example_config_for_tests.py 3e5a6ea51e add esp8266 project files 4 vuotta sitten
runtests.sh 3e5a6ea51e add esp8266 project files 4 vuotta sitten
test_base.py 3e5a6ea51e add esp8266 project files 4 vuotta sitten
test_blocking_input_thing.py 3e5a6ea51e add esp8266 project files 4 vuotta sitten
test_blocking_output_thing.py 3e5a6ea51e add esp8266 project files 4 vuotta sitten
test_bokeh.py 3e5a6ea51e add esp8266 project files 4 vuotta sitten
test_csv_adapters.py 3e5a6ea51e add esp8266 project files 4 vuotta sitten
test_descheduling.py 3e5a6ea51e add esp8266 project files 4 vuotta sitten
test_external_event_stream.py 3e5a6ea51e add esp8266 project files 4 vuotta sitten
test_fatal_error_handling.py 3e5a6ea51e add esp8266 project files 4 vuotta sitten
test_fatal_error_in_private_loop.py 3e5a6ea51e add esp8266 project files 4 vuotta sitten
test_functional_api.py 3e5a6ea51e add esp8266 project files 4 vuotta sitten
test_influxdb.py 3e5a6ea51e add esp8266 project files 4 vuotta sitten
test_iterable_as_output_thing.py 3e5a6ea51e add esp8266 project files 4 vuotta sitten
test_linq.py 3e5a6ea51e add esp8266 project files 4 vuotta sitten
test_mqtt.py 3e5a6ea51e add esp8266 project files 4 vuotta sitten
test_mqtt_async.py 3e5a6ea51e add esp8266 project files 4 vuotta sitten
test_multiple_output_ports.py 3e5a6ea51e add esp8266 project files 4 vuotta sitten
test_pandas.py 3e5a6ea51e add esp8266 project files 4 vuotta sitten
test_postgres_adapters.py 3e5a6ea51e add esp8266 project files 4 vuotta sitten
test_predix.py 3e5a6ea51e add esp8266 project files 4 vuotta sitten
test_rpi_adapters.py 3e5a6ea51e add esp8266 project files 4 vuotta sitten
test_scheduler_cancel.py 3e5a6ea51e add esp8266 project files 4 vuotta sitten
test_solar_heater_scenario.py 3e5a6ea51e add esp8266 project files 4 vuotta sitten
test_tcp_stream.py 3e5a6ea51e add esp8266 project files 4 vuotta sitten
test_timeout.py 3e5a6ea51e add esp8266 project files 4 vuotta sitten
test_tracing.py 3e5a6ea51e add esp8266 project files 4 vuotta sitten
test_transducer.py 3e5a6ea51e add esp8266 project files 4 vuotta sitten
utils.py 3e5a6ea51e add esp8266 project files 4 vuotta sitten

README.rst

============================
Antevents Tests
============================

This directory contains unit tests for the antlab infrastructure and
adapters. Use the script runtests.sh to run all the tests. If will stop
on the first error it encounters (as signified by a non-zero return code
from the test program).

As much as possible, the tests are standalone and do not require external
dependencies. However, tests of specific adapters will often require some
software to be installed and configured. To support this, we do the following:

1. Any configuration variables (e.g. usernames, passwords, connect strings)
go into the file config_for_tests.py. This file is NOT checked into
git, since it may contain sensitive data. Instead copy the file
example_config_for_tests.py to config_for_tests.py and adjust it for
your environment.
2. Tests with external dependencies use the @unittest.skipUnless decorator
to check for the dependencies and skip the test if the requirements are
not met.

Dependencies
-------------
Here are the commands used to install all the dependencies on Ubuntu::

sudo apt-get install postgresql
sudo apt-get install libpq-dev python3-dev
pip install psycopg2
# In the following, replace USER with your linux user name
sudo -u postgres psql < create user USER;
create database iot;
grant all on database iot to USER;
\q
!
sudo apt-get install mosquitto
pip install paho-mqtt
pip install hbmqtt