mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 00:41:59 +01:00
aee2c78638
Signed-off-by: Janos SUTO <sj@acts.hu>
35 lines
508 B
Bash
Executable File
35 lines
508 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -o errexit
|
|
set -o pipefail
|
|
set -o nounset
|
|
set -x
|
|
|
|
SCRIPT_PATH="$(readlink -f "$0")"
|
|
SCRIPT_DIR="${SCRIPT_PATH%/*}"
|
|
|
|
echo "Running unit tests"
|
|
|
|
export LD_LIBRARY_PATH=../src
|
|
|
|
pushd "$SCRIPT_DIR"
|
|
|
|
setup_mysql() {
|
|
service mysql start
|
|
mysql -u piler -ppiler123 piler1 < ../util/db-mysql.sql
|
|
}
|
|
|
|
if [[ -v BUILD_NUMBER ]]; then
|
|
setup_mysql
|
|
fi
|
|
|
|
./check_parser_utils
|
|
./check_parser
|
|
./check_rules
|
|
./check_digest
|
|
./check_mydomains
|
|
./check_misc
|
|
./check_hash
|
|
./check_decoder
|
|
./check_attachments
|