
Some of the tests depended on a working installation where modules are all located at the default paths. These tests now explicitly set the module directory which fixes the immediate problem. Disabled the starting of services in the service test as this will fail with real modules. The dummy internal modules aren't build and should be removed in a later commit. In general, it might be better to do service level testing outside the internal test suite.
23 lines
593 B
Bash
23 lines
593 B
Bash
#!/bin/bash
|
|
|
|
|
|
# these environment variables are set in .travis.yml
|
|
# MARIADB_URL=https://downloads.mariadb.org/interstitial/mariadb-5.5.48/bintar-linux-glibc_214-x86_64/mariadb-5.5.48\-linux-glibc_214-x86_64.tar.gz/from/http%3A//mirror.netinch.com/pub/mariadb/
|
|
# MARIADB_TAR=mariadb-5.5.48-linux-glibc_214-x86_64.tar.gz
|
|
# MARIADB_DIR=mariadb-5.5.48-linux-x86_64
|
|
|
|
|
|
echo TRAVIS_BUILD_DIR: ${TRAVIS_BUILD_DIR}
|
|
|
|
mkdir build
|
|
cd build
|
|
|
|
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=Y -DBUILD_AVRO=N
|
|
|
|
make
|
|
make test
|
|
sudo make install
|
|
|
|
sudo ./postinst
|
|
maxscale --version
|