Unverified Commit 2d4db506 authored by kladko's avatar kladko

SKALE-2502

parent 0c447453
...@@ -4,9 +4,8 @@ set -x ...@@ -4,9 +4,8 @@ set -x
source /opt/intel/sgxsdk/environment source /opt/intel/sgxsdk/environment
if [ -f "/dev/random" ] if [[ ! -f "/dev/random" ]]
then then
else
echo "SGX wallet error. No /dev/random."; echo "SGX wallet error. No /dev/random.";
echo "If you are running raw docker without docker compose please make sure"; echo "If you are running raw docker without docker compose please make sure";
echo "the command line includes -v /dev/urandom:/dev/random"; echo "the command line includes -v /dev/urandom:/dev/random";
...@@ -21,7 +20,7 @@ ls /root/.rnd; ...@@ -21,7 +20,7 @@ ls /root/.rnd;
cd /usr/src/sdk; cd /usr/src/sdk;
if [ -f "/var/hwmode" ] if [[ -f "/var/hwmode" ]]
then then
echo "Running in SGX hardware mode" echo "Running in SGX hardware mode"
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/opt/intel/sgxpsw/aesm/ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/opt/intel/sgxpsw/aesm/
...@@ -34,7 +33,7 @@ echo "Running in SGX simulation mode" ...@@ -34,7 +33,7 @@ echo "Running in SGX simulation mode"
fi fi
if [ "$1" = -t ]; then if [[ "$1" == "-t" ]]; then
echo "Test run requested" echo "Test run requested"
#./testw [bls-key-encrypt] #./testw [bls-key-encrypt]
./testw [bls-key-encrypt-decrypt] ./testw [bls-key-encrypt-decrypt]
......
Markdown is supported
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