forked from janies/ipset
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch provides build and test script updates for the Tilera platform. The cmake scripts autodetect if you are configuring on a system with a Tilera MDE installed, so you can use the normal `cmake` command in a build directory with standard cmake options. Note that we turn off building the documentation on Tilera, even if Sphinx is installed. The major modification to our standard workflow is testing: replace `make test` with `./tile-test`. This assumes there is a working connection to a Tilera device. Installation requires sudo access, i.e., `sudo make install`. If you intend to use these files regularly, then you should use an installation prefix that includes `$TILERA_ROOT/tile`. One good example is `$TILERA_ROOT/tile/usr/local`, but you can use any directory you want that is supported by the various `tile-monitor` upload and mount options.
- Loading branch information
John Zachary
committed
Mar 15, 2013
1 parent
5c93a90
commit 49e2bbb
Showing
4 changed files
with
67 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/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" | ||
|
||
export TILERA_DEV_ARGS="--resume $TILERA_COMMON_ARGS" | ||
$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 |