nes-proj/tests/10-ipv6-nbr/01-test-nbr-multi-addrs.sh
2018-10-24 07:03:10 -07:00

22 lines
509 B
Bash
Executable File

#!/bin/sh
TEST_NAME=01-test-nbr-multi-addrs
if [ $# -eq 1 ]; then
# a (relative) path to CONTIKI_DIR is supposed to be given as $1
TEST_DIR=$1/tests/10-ipv6-nbr
else
TEST_DIR=.//tests/10-ipv6-nbr
fi
SRC_DIR=${TEST_DIR}/nbr-multi-addrs
EXEC_FILE_NAME=test.native
make -C ${SRC_DIR} clean
echo "build the test program"...
make -C ${SRC_DIR} > ${TEST_NAME}.log
echo "run the test..."
${TEST_DIR}/${SRC_DIR}/${EXEC_FILE_NAME} | tee ${TEST_NAME}.log | \
grep -vE '^\[' >> ${TEST_NAME}.testlog