#!/bin/sh -ex

# Before run test generate or specify another enclave-key.pem manually
npm install binding

gramine-manifest -Dlog_level=error node.manifest.template > node.manifest
gramine-sgx-sign --manifest node.manifest --output node.manifest.sgx
gramine-sgx-get-token --output node.token --sig node.sig

gramine-sgx node test.js
