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:
committed by
Yann E. MORIN
parent
0de216f95f
commit
f25b0b6d1d
3
support/testing/tests/package/sample_nodejs_basic.js
Normal file
3
support/testing/tests/package/sample_nodejs_basic.js
Normal file
@@ -0,0 +1,3 @@
|
||||
var assert = require('assert');
|
||||
assert.strictEqual(1, 1);
|
||||
console.log("Hello World");
|
||||
Reference in New Issue
Block a user