aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-protocols/freediameter/files/run-ptest
blob: 7d0648935c900f002c225aaad255897d2ef43cf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

if ! lsmod | grep -q sctp && ! modprobe sctp 2>/dev/null; then
        echo "Couldn't load kernel module sctp."
        echo "Test cases testsctp and testcnx will fail."
        echo
fi

cmake  -E cmake_echo_color --cyan "Running tests..."
if ctest --force-new-ctest-process ; then
        echo "PASS: freediameter"
else
        echo "FAIL: freediameter"
fi