about summary refs log tree commit diff
path: root/unicorn_mode/samples/c/sample_all.sh
blob: 01daf365816e9899c1d8d7a124e465ebef3acb4e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

[ -z "${UNAME}" ] && UNAME=$(uname)

DIR=`dirname $0`

if [ "$UNAME" = Darwin ]; then
  export DYLD_LIBRARY_PATH=../../unicorn
else
  export LD_LIBRARY_PATH=../../unicorn
fi



if [ ! test -e $DIR/harness]; then
  echo "[!] harness not found in $DIR"
  exit 1
fi