diff --git a/tests/e2e/e2e.bash b/tests/e2e/e2e.bash index 75753e4643..95fc935f1c 100755 --- a/tests/e2e/e2e.bash +++ b/tests/e2e/e2e.bash @@ -71,7 +71,7 @@ if [ ! -d "$FS" ]; then ./build/tools/fakefsify 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/expected.txt b/tests/e2e/hello/expected.txt index 6544581e4f..dda8f6a207 100644 --- a/tests/e2e/hello/expected.txt +++ b/tests/e2e/hello/expected.txt @@ -2,3 +2,4 @@ Hello, sh! Hello, Python 2! Hello, Python 3! Hello, C! +Hello, NodeJS! diff --git a/tests/e2e/hello/test.sh b/tests/e2e/hello/test.sh index 7fe421f908..27f5aefcd8 100644 --- a/tests/e2e/hello/test.sh +++ b/tests/e2e/hello/test.sh @@ -6,3 +6,6 @@ python3 test_python3.py gcc test_c.c -o ./hello_c ./hello_c + +# node stdout is weird and scary +node test_node.js | cat 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!');