Commit bc5d205e authored by Shaishav Siddhpuria's avatar Shaishav Siddhpuria
Browse files

add test script to run a test case with systemc-clang.

- usage ./ <filename.cpp>
- needs SYSTEMC_HOME variable to be set to the systemc install directory.
parent 874f6112
if [ "$#" -ne 1 ]; then
echo "usage: runTest <filename.cpp>"
if [ -z $SYSTEMC_HOME ]; then
echo -e "environment variable \$SYSTEMC_HOME not defined, set the variable to SystemC directory\n(e.g. export SYSTEMC_HOME=\"/usr/local/systemc-2.3.1\")";
systemc-clang $1 -- -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I/usr/include/c++/4.2.1 -I/usr/include -I/$SYSTEMC_HOME/include;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment