mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 14:31:46 +00:00
37 lines
590 B
Bash
Executable File
Vendored
37 lines
590 B
Bash
Executable File
Vendored
#!/bin/sh
|
|
# author: deadc0de6 (https://github.com/deadc0de6)
|
|
# Copyright (c) 2017, deadc0de6
|
|
|
|
# stop on first error
|
|
#set -ev
|
|
set -e
|
|
|
|
rl="readlink -f"
|
|
if ! ${rl} "${0}" >/dev/null 2>&1; then
|
|
rl="realpath"
|
|
|
|
if ! hash ${rl}; then
|
|
echo "\"${rl}\" not found!" && exit 1
|
|
fi
|
|
fi
|
|
cur=`dirname $(${rl} "${0}")`
|
|
|
|
# test syntax
|
|
echo "checking syntax..."
|
|
${cur}/test-syntax.sh
|
|
|
|
# test doc
|
|
echo "checking documentation..."
|
|
${cur}/test-doc.sh
|
|
|
|
# unittest
|
|
echo "unittest..."
|
|
${cur}/test-unittest.sh
|
|
|
|
# tests-ng
|
|
echo "tests-ng..."
|
|
${cur}/test-ng.sh
|
|
|
|
## done
|
|
echo "All tests finished successfully"
|