diff options
Diffstat (limited to 'pkgs/development/compilers/ghdl/test-simple.nix')
-rw-r--r-- | pkgs/development/compilers/ghdl/test-simple.nix | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/pkgs/development/compilers/ghdl/test-simple.nix b/pkgs/development/compilers/ghdl/test-simple.nix deleted file mode 100644 index 8d3c3d3095f2..000000000000 --- a/pkgs/development/compilers/ghdl/test-simple.nix +++ /dev/null @@ -1,23 +0,0 @@ -{ stdenv, ghdl-llvm, ghdl-mcode, backend }: - -let - ghdl = if backend == "llvm" then ghdl-llvm else ghdl-mcode; -in -stdenv.mkDerivation { - name = "ghdl-test-simple"; - meta.timeout = 300; - nativeBuildInputs = [ ghdl ]; - buildCommand = '' - cp ${./simple.vhd} simple.vhd - cp ${./simple-tb.vhd} simple-tb.vhd - mkdir -p ghdlwork - ghdl -a --workdir=ghdlwork --ieee=synopsys simple.vhd simple-tb.vhd - ghdl -e --workdir=ghdlwork --ieee=synopsys -o sim-simple tb - '' + (if backend == "llvm" then '' - ./sim-simple --assert-level=warning > output.txt - '' else '' - ghdl -r --workdir=ghdlwork --ieee=synopsys tb > output.txt - '') + '' - diff output.txt ${./expected-output.txt} && touch $out - ''; -} |