From 7935f8424bfa04849cd6da567bc2bc876f98d445 Mon Sep 17 00:00:00 2001 From: Matthew Merrill Date: Fri, 2 Oct 2020 14:40:23 -0700 Subject: [PATCH] Add NodeJS hello world to e2e tests --- tests/e2e/e2e.bash | 2 +- tests/e2e/hello/test.sh | 2 ++ tests/e2e/hello/test_node.js | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 tests/e2e/hello/test_node.js diff --git a/tests/e2e/e2e.bash b/tests/e2e/e2e.bash index 360666c676..db4f9b3080 100755 --- a/tests/e2e/e2e.bash +++ b/tests/e2e/e2e.bash @@ -71,7 +71,7 @@ if [ ! -d "$FS" ]; then ./tools/fakefsify.py e2e_out/alpine.tar.gz "$FS" echo "###### Configuring iSH and installing base libraries" grep -E "^nameserver" /etc/resolv.conf | head -1 | $ISH /bin/sed -n "w /etc/resolv.conf" - $ISH /bin/sh -c "apk update && apk add build-base python2 python3" + $ISH /bin/sh -c "apk update && apk add build-base python2 python3 nodejs" ;; No) exit 1;; esac diff --git a/tests/e2e/hello/test.sh b/tests/e2e/hello/test.sh index 7fe421f908..a7d07d5152 100644 --- a/tests/e2e/hello/test.sh +++ b/tests/e2e/hello/test.sh @@ -6,3 +6,5 @@ python3 test_python3.py gcc test_c.c -o ./hello_c ./hello_c + +node test_node.js diff --git a/tests/e2e/hello/test_node.js b/tests/e2e/hello/test_node.js new file mode 100644 index 0000000000..886a35f63d --- /dev/null +++ b/tests/e2e/hello/test_node.js @@ -0,0 +1 @@ +console.log('Hello, NodeJS!');