File: ci-test.sh

package info (click to toggle)
l2tpns 2.4.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,892 kB
  • sloc: ansic: 22,125; sh: 177; perl: 139; makefile: 132
file content (19 lines) | stat: -rw-r--r-- 454 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env sh
# https://code.ffdn.org/l2tpns/l2tpns/-/issues/11

set -x
env
pwd

apt update -qqy
apt install -qqy build-essential libcli-dev git

make install
/usr/sbin/l2tpns -v || true

curr_version=$(grep -oP 'L2TPNS version *\K\S+' /var/log/l2tpns)
git_version=$(git describe --abbrev=0)
if [ "$curr_version" != "$git_version" ]; then
  echo "ERROR: L2TPNS version ($curr_version) is different than latest GIT version ($git_version)"
  exit 1
fi