diff options
author | Richard van Velzen <rvanvelzen@experty.com> | 2016-06-20 16:57:40 +0200 | ||
---|---|---|---|---|
committer | Richard van Velzen <rvanvelzen@experty.com> | 2016-07-01 09:46:05 +0200 | ||
commit | 2020-03-22 | system: Add kernel-loadable-modules to operating-system.•••* gnu/system.scm (<operating-system>): Add kernel-loadable-modules. (operating-system-directory-base-entries): Use it. * doc/guix.texi (operating-system Reference): Document KERNEL-LOADABLE-MODULES. * gnu/build/linux-modules.scm (depmod): New procedure. (make-linux-module-directory): New procedure. Export it. * guix/profiles.scm (linux-module-database): New procedure. Export it. * gnu/tests/linux-modules.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. * gnu/packages/linux.scm (make-linux-libre*)[arguments]<#:phases>[install]: Disable depmod. Remove "build" and "source" symlinks. [native-inputs]: Remove kmod. | Danny Milosavljevic |
Introduce a test that tests the --self build
-rw-r--r-- | test/mocha/cli.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/mocha/cli.js b/test/mocha/cli.js new file mode 100644 index 00000000..38b57cd7 --- /dev/null +++ b/test/mocha/cli.js @@ -0,0 +1,22 @@ +var assert = require("assert"); +var exec = require("child_process").exec; + +describe("bin/uglifyjs", function () { + it("should produce a functional build when using --self", function (done) { + this.timeout(5000); + + var uglifyjs = '"' + process.argv[0] + '" bin/uglifyjs'; + var command = uglifyjs + ' --self -cm --wrap WrappedUglifyJS'; + + exec(command, function (err, stdout) { + if (err) throw err; + + eval(stdout); + + assert.strictEqual(typeof WrappedUglifyJS, 'object'); + assert.strictEqual(true, WrappedUglifyJS.parse('foo;') instanceof WrappedUglifyJS.AST_Node); + + done(); + }); + }); +}); |