Unverified Commit df8b8d48 authored by Christina Sørensen's avatar Christina Sørensen
Browse files

uiua: add passthru.tests.run

parent 4a9a9df4
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -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 = ''