uiua: add passthru.tests.run
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
This commit is contained in:
parent
4a9a9df47c
commit
df8b8d4808
1 changed files with 10 additions and 0 deletions
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue