From 5da4a1ae999de789859d6b908ec8050b594c396a Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 5 Jun 2019 10:19:20 -0700 Subject: [PATCH] Move testing into a bash file on the side (#266) --- Dockerfile | 9 +-------- test.sh | 8 ++++++++ 2 files changed, 9 insertions(+), 8 deletions(-) create mode 100644 test.sh diff --git a/Dockerfile b/Dockerfile index 22adc1c..2d21321 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,14 +10,7 @@ RUN cd /root/ \ && apt-get update \ && apt-get install -y python python3 cmake build-essential openjdk-9-jre-headless \ && /root/emsdk/emsdk update-tags \ - && echo "test the standard workflow (as close as possible to how a user would do it, in the shell)" \ - && /root/emsdk/emsdk install latest \ - && /root/emsdk/emsdk activate latest \ - && source /root/emsdk/emsdk_env.sh --build=Release \ - && emcc hello_world.cpp \ - && emcc hello_world.cpp -s WASM=0 \ - && emcc --clear-cache \ - && echo "run addition tests in python" \ && cd /root/emsdk/ \ + && bash test.sh \ && python test.py diff --git a/test.sh b/test.sh new file mode 100644 index 0000000..3d2c9aa --- /dev/null +++ b/test.sh @@ -0,0 +1,8 @@ +echo "test the standard workflow (as close as possible to how a user would do it, in the shell)" +./emsdk install latest +./emsdk activate latest +source ./emsdk_env.sh --build=Release +emcc hello_world.cpp +emcc hello_world.cpp -s WASM=0 +emcc --clear-cache +