Browse Source

Create a make target for the gcc unit test.

Don Porter 6 years ago
parent
commit
b87ba77f97

+ 4 - 0
LibOS/shim/test/apps/gcc/Makefile

@@ -90,6 +90,10 @@ obj/lib/$(MPC_OBJ): src/$(MPC_SRC)
 src/$(MPC_SRC): $(MPC_SRC).tar.gz src
 	cd src && tar -xzf ../$<
 
+regress_gcc: all
+	./gcc.manifest /test_files/helloworld.c -o hello
+	./hello
+
 src:
 	mkdir -p src
 

+ 4 - 0
LibOS/shim/test/apps/gcc/gcc.manifest.template

@@ -23,6 +23,10 @@ fs.mount.tmp.type = chroot
 fs.mount.tmp.path = /tmp
 fs.mount.tmp.uri = file:/tmp
 
+fs.mount.test_files.type = chroot
+fs.mount.test_files.path = /test_files
+fs.mount.test_files.uri = file:$(PWD)/test_files
+
 sgx.enclave_size = 1G
 
 sgx.trusted_files.ld = file:$(LIBCDIR)/ld-linux-x86-64.so.2