From b06cdcdfcc7499fd326e6797718d59d1bfb1ee90 Mon Sep 17 00:00:00 2001 From: Chia-Che Tsai Date: Wed, 20 Sep 2017 18:26:12 -0400 Subject: [PATCH 1/2] fix the problem that hello.token is not created whe running make SGX_RUN=1'' in the lmbench directory --- LibOS/shim/test/apps/lmbench/Makefile.lmbench | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LibOS/shim/test/apps/lmbench/Makefile.lmbench b/LibOS/shim/test/apps/lmbench/Makefile.lmbench index 24034b4b..5db8db53 100644 --- a/LibOS/shim/test/apps/lmbench/Makefile.lmbench +++ b/LibOS/shim/test/apps/lmbench/Makefile.lmbench @@ -4,7 +4,8 @@ lmbench_tests = lat_syscall lat_connect lat_fcntl \ lat_tcp lat_udp lat_unix_connect lat_pagefault \ bw_tcp bw_mem bw_unix lat_proc lat_ctx lat_rpc \ lat_unix lat_sig lat_http lat_pipe \ - bw_pipe bw_file_rd bw_mmap_rd lmhttp lmdd sh.manifest + bw_pipe bw_file_rd bw_mmap_rd lmhttp lmdd \ + sh.manifest hello.manifest exec_target = $(lmbench_tests) target = $(manifests) From 41c1500f52f709a7ec9873516526f20dded8cb4b Mon Sep 17 00:00:00 2001 From: Chia-Che Tsai Date: Wed, 20 Sep 2017 19:39:19 -0400 Subject: [PATCH 2/2] Add "make regression" rule to the Python directory --- LibOS/shim/test/apps/python/Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/LibOS/shim/test/apps/python/Makefile b/LibOS/shim/test/apps/python/Makefile index 39b658c8..1331d7b3 100644 --- a/LibOS/shim/test/apps/python/Makefile +++ b/LibOS/shim/test/apps/python/Makefile @@ -26,6 +26,29 @@ $(PYTHON_SRC)/configure: $(PYTHON_SRC).tgz benchmarks: benchmarks.tar.gz tar -xzf $< +regression: + @echo "\n\nBuilding Python..." + @$(MAKE) >> /dev/null 2>&1 + + @echo "\n\nRun helloworld.py:" + ./python.manifest scripts/helloworld.py > OUTPUT + grep -q "Hello World" OUTPUT + @rm OUTPUT + + @echo "\n\nRun fibonacci.py:" + ./python.manifest scripts/fibonacci.py > OUTPUT + grep -q "fib2 55" OUTPUT + @rm OUTPUT + + @echo "\n\nRun test-http.py:" + ./python.manifest scripts/test-http.py > OUTPUT + wget -q http://google.com/ -O OUTPUT2 + @DS=`sdiff -B -b -s OUTPUT OUTPUT2 | wc -c`; \ + TS=`stat -c%s OUTPUT2`; \ + awk "BEGIN{ percentage = 100.0 * $$DS / $$TS; printf(\"%.3f%% is different\\n\", percentage); if (percentage > 10.0) { exit 1; }}" + @rm OUTPUT OUTPUT2 + + BENCHMARK = all,-rietveld,-spitfire,-tornado_http clean-tmp: