blob: fd260d441aa2784e65e3b1e21fcafa5490098718 (
plain)
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
|
#!/bin/sh
echo "############ Running Wolfssl Ptest ##########"
log_file=ptest.log
temp_dir=$(mktemp -d /tmp/wolfss_temp.XXXXXX)
echo "Wolfssl ptest logs are stored in ${temp_dir}/${log_file}"
./test/unit.test > "$temp_dir/$log_file" 2>&1
ret=$?
echo "Test script returned: $ret"
MAGIC_SENTENCE=$(grep "unit_test: Success for all configured tests." $temp_dir/$log_file)
if [ -n "$MAGIC_SENTENCE" ]; then
echo "$MAGIC_SENTENCE"
echo "PASS: Wolfssl"
else
echo "#### Issue with at least one test !####"
echo "FAIL: Wolfssl"
fi
NUM_FAILS=$(grep -c "Failed" $temp_dir/$log_file)
exit $ret
|