forked from LibtraceTeam/wandio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-tests.sh
executable file
·30 lines (19 loc) · 917 Bytes
/
run-tests.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
set -x -e -o pipefail
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y curl apt-transport-https \
ssl-cert ca-certificates gnupg lsb-release git
apt-get upgrade -y
curl -1sLf 'https://dl.cloudsmith.io/public/wand/libwandio/cfg/setup/bash.deb.sh' | bash
apt-get update
apt-get install -y devscripts equivs
apt-get install -y zstd lzop xz-utils liblz4-tool
mk-build-deps --install --remove --tool "apt-get -o Debug::pkgProblemResolver=yes -y --no-install-recommends"
deb=`find packages/$1/libwandio1-dev* -maxdepth 1 -type f`
pkg_filename=$(basename "${deb}")
IFS=_ read pkg_name pkg_version pkg_arch <<< $(basename -s ".deb" "${pkg_filename}")
dpkg -i packages/$1/libwandio1_${pkg_version}_${pkg_arch}.deb
dpkg -i packages/$1/libwandio1-dev_${pkg_version}_${pkg_arch}.deb
dpkg -i packages/$1/wandio1-tools_${pkg_version}_${pkg_arch}.deb
cd test && ./do-basic-tests.sh