forked from janies/ipset
-
Notifications
You must be signed in to change notification settings - Fork 47
/
tile-test
executable file
·35 lines (31 loc) · 1.24 KB
/
tile-test
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
31
32
33
34
35
#!/usr/bin/env bash
if [ ! -x $TILERA_ROOT/bin/tile-monitor ]; then
# If no tile-monitor is installed, then there is nothing to test.
echo "No tile-monitor installed in $TILERA_ROOT/bin"
exit 1
fi
export TEST_DIR="/tmp/test"
export TILERA_COMMON_ARGS=" \
--debug-on-crash \
--mkdir $TEST_DIR/build \
--mkdir $TEST_DIR/tests \
--tile standard \
--mount-tile /usr \
--mount-tile /lib \
--upload . $TEST_DIR/build \
--upload ../tests $TEST_DIR/tests \
--env LD_LIBRARY_PATH="$TEST_DIR/build/src:/usr/local/lib:/usr/lib:/lib" \
--env PATH="/usr/local/bin:$PATH" \
--cd $TEST_DIR/build \
--run -+- ctest -+- --quit"
# Note: we assume the Tilera processor is connected to the MDE by an IP
# connection and has a hostname of 'tilera'. Trust us - you don't want
# to run tests over the serial connection.
export TILERA_DEV_ARGS="$TILERA_COMMON_ARGS --net tilera --resume"
$TILERA_ROOT/bin/tile-monitor $TILERA_DEV_ARGS
## Uncomment the following four lines and comment the previous two if
## you want to run the tests on the Tilera simulator.
#export SIM_IMAGE_SIZE="4x4"
#export TILERA_SIM_ARGS=" \
# --image $SIM_IMAGE_SIZE $TILERA_COMMON_ARGS --functional"
#$TILERA_ROOT/bin/tile-monitor $TILERA_SIM_ARGS