nixpkgs/pkgs/development/interpreters/spidermonkey/test.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
229 B
Nix
Raw Normal View History

2022-07-04 18:49:53 +00:00
{ runCommand, spidermonkey }:
runCommand "spidermonkey-test-run" {
nativeBuildInputs = [
spidermonkey
];
} ''
diff -U3 --color=auto <(js <(echo "console.log('Hello, world\!')")) <(echo 'Hello, world!')
touch $out
''