Merge branch 'cli/unit-test'
This commit is contained in:
@@ -3,6 +3,13 @@
|
||||
set -eu
|
||||
|
||||
VDN_SYSTEM=bigboss
|
||||
FILES=oki
|
||||
|
||||
for target; do
|
||||
if [ "$target" == 'coverage.html' ] || [ "$target" == 'oki-test' ]; then
|
||||
FILES="$FILES $target"
|
||||
fi
|
||||
done
|
||||
|
||||
vdn-set-network-dir ~vdn/vdn/networks/demo
|
||||
if ! vdn-alive $VDN_SYSTEM; then
|
||||
@@ -15,18 +22,20 @@ fi
|
||||
currentDate=$(date -u +'%F %H:%M:%S')
|
||||
vdn-ssh root@$VDN_SYSTEM "date -s '$currentDate' &> /dev/null"
|
||||
|
||||
rsync -av src -e vdn-ssh root@$VDN_SYSTEM:
|
||||
rsync -av src test -e vdn-ssh root@$VDN_SYSTEM:
|
||||
vdn-scp configure.sh root@$VDN_SYSTEM:
|
||||
vdn-scp Makefile root@$VDN_SYSTEM:
|
||||
vdn-ssh root@$VDN_SYSTEM << EOF
|
||||
route del default gw 192.168.2.1
|
||||
route add default gw 10.0.2.2
|
||||
export http_proxy=http://193.49.118.36:8080/
|
||||
./configure.sh -d
|
||||
if ! pkg-config nlohmann_json --exists || ! pkg-config libcurl --exists || ! pkg-config minizip --exists; then
|
||||
apt-get install -y nlohmann-json3-dev libcurl4-openssl-dev libminizip-dev
|
||||
if ! pkg-config nlohmann_json --exists || ! pkg-config libcurl --exists || ! pkg-config minizip --exists || ! command -v gcovr &> /dev/null || ! [ -f /usr/include/doctest/doctest.h ]; then
|
||||
apt-get install -y nlohmann-json3-dev libcurl4-openssl-dev libminizip-dev doctest-dev gcovr
|
||||
fi
|
||||
make
|
||||
./configure.sh -d
|
||||
make $*
|
||||
EOF
|
||||
vdn-scp root@$VDN_SYSTEM:oki .
|
||||
|
||||
for file in $FILES; do
|
||||
vdn-scp root@$VDN_SYSTEM:"$file" . 2> /dev/null
|
||||
done
|
||||
|
Reference in New Issue
Block a user