uiua: add passthru.tests.run

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
This commit is contained in:
Christina Sørensen 2023-10-08 10:01:37 +02:00
parent 4a9a9df47c
commit df8b8d4808
No known key found for this signature in database
GPG Key ID: 26C542FD97F965CE

View File

@ -6,6 +6,10 @@
, audioSupport ? true
, darwin
, alsa-lib
# passthru.tests.run
, runCommand
, uiua
}:
rustPlatform.buildRustPackage rec {
@ -37,6 +41,12 @@ rustPlatform.buildRustPackage rec {
buildFeatures = lib.optional audioSupport "audio";
passthru.tests.run = runCommand "uiua-test-run" {nativeBuildInputs = [uiua];} ''
uiua init;
diff -U3 --color=auto <(uiua run main.ua) <(echo '"Hello, World!"')
touch $out;
'';
meta = with lib; {
description = "A stack-oriented array programming language with a focus on simplicity, beauty, and tacit code";
longDescription = ''