support/testing/tests: add NodeJS tests

This commit adds two new test cases:

 - TestNodeJSBasic which builds a target configuration with just
   NodeJS enabled, and which runs a very simple NodeJS script on the
   target.

 - TestNodeJSModule, which builds a target configuration with NodeJS
   enabled + the installation of one extra module, which means npm on
   the host (from host-nodejs) is used, and which runs a very simple
   NodeJS script on the target that uses this extra module.

Having both tests separately allows to validate that both nodejs-only
and nodejs+host-nodejs configurations behave correctly, at least in
minimal scenarios.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Tested-by: Romain Naour <romain.naour@smile.fr>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Thomas Petazzoni
2022-09-25 21:20:28 +02:00
committed by Yann E. MORIN
parent 0de216f95f
commit f25b0b6d1d
4 changed files with 65 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
var assert = require('assert');
assert.strictEqual(1, 1);
console.log("Hello World");