This is an automated email from the ASF dual-hosted git repository.

dingyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-teaclave-sgx-sdk.git


The following commit(s) were added to refs/heads/master by this push:
     new 658ef23  chore(samplecode): init test input for wasmi from makefile
     new 879d5af  Merge pull request #300 from sammyne/master
658ef23 is described below

commit 658ef23d5009cc756b2ad9ec11f999b6f19e776f
Author: sammyne <[email protected]>
AuthorDate: Tue Dec 15 09:26:56 2020 +0800

    chore(samplecode): init test input for wasmi from makefile
---
 .gitmodules                 | 3 ---
 samplecode/wasmi/.gitignore | 1 +
 samplecode/wasmi/Makefile   | 6 +++++-
 samplecode/wasmi/test_input | 1 -
 4 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/.gitmodules b/.gitmodules
deleted file mode 100644
index ec67b71..0000000
--- a/.gitmodules
+++ /dev/null
@@ -1,3 +0,0 @@
-[submodule "samplecode/wasmi/test_input"]
-       path = samplecode/wasmi/test_input
-       url = https://github.com/WebAssembly/testsuite
diff --git a/samplecode/wasmi/.gitignore b/samplecode/wasmi/.gitignore
new file mode 100644
index 0000000..f51338b
--- /dev/null
+++ b/samplecode/wasmi/.gitignore
@@ -0,0 +1 @@
+/test_input/
diff --git a/samplecode/wasmi/Makefile b/samplecode/wasmi/Makefile
index 32ecf55..c3e9c2f 100644
--- a/samplecode/wasmi/Makefile
+++ b/samplecode/wasmi/Makefile
@@ -149,7 +149,11 @@ $(Signed_RustEnclave_Name): $(RustEnclave_Name)
 
 .PHONY: enclave
 enclave:
-       (cd ../.. && git submodule init && git submodule update)
+       @if [ ! -d test_input ]; then\
+               git clone https://github.com/WebAssembly/testsuite test_input 
&&\
+               cd test_input &&\
+               git checkout c6a690f ;\
+       fi
        $(MAKE) -C ./enclave/
 
 
diff --git a/samplecode/wasmi/test_input b/samplecode/wasmi/test_input
deleted file mode 160000
index c6a690f..0000000
--- a/samplecode/wasmi/test_input
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit c6a690f89a0dda3c79700aa6377d8b5d8a970eba


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to