Skip to content

Commit

Permalink
Add NodeJS hello world to e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewMerrill committed Oct 2, 2020
1 parent 1fafb9b commit 7935f84
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/e2e/e2e.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions tests/e2e/hello/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ python3 test_python3.py

gcc test_c.c -o ./hello_c
./hello_c

node test_node.js
1 change: 1 addition & 0 deletions tests/e2e/hello/test_node.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log('Hello, NodeJS!');

0 comments on commit 7935f84

Please sign in to comment.