aboutsummaryrefslogtreecommitdiffstats
path: root/Godeps/_workspace/src/github.com/ethereum/ethash/test/test.sh
blob: fd3508609e987875ae611385a1056f14819f55d8 (plain) (blame)
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
#!/bin/bash

# Strict mode
set -e

SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do
  DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
  SOURCE="$(readlink "$SOURCE")"
  [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
done
TEST_DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"

echo -e "\n################# Testing JS ##################"
# TODO: Use mocha and real testing tools instead of rolling our own
cd $TEST_DIR/../js 
if [ -x "$(which nodejs)" ] ; then 
    nodejs test.js
fi
if [ -x "$(which node)" ] ; then 
    node test.js
fi

echo -e "\n################# Testing C ##################"
$TEST_DIR/c/test.sh

echo -e "\n################# Testing Python ##################"
$TEST_DIR/python/test.sh

#echo "################# Testing Go ##################"
#$TEST_DIR/go/test.sh