Skip to content

Commit b14ff0e

Browse files
authored
Remove clash-cores from clash-testsuite (#2793)
1 parent 280905d commit b14ff0e

33 files changed

+1
-3694
lines changed

nix/overlay.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ let
194194
"clash-testsuite"
195195
../tests
196196
"--flag workaround-ghc-mmap-crash" {
197-
inherit (hfinal) clash-cores clash-ghc clash-lib clash-prelude;
197+
inherit (hfinal) clash-ghc clash-lib clash-prelude;
198198
};
199199
in
200200
unmodified.overrideAttrs (old: {

tests/Main.hs

Lines changed: 0 additions & 182 deletions
Original file line numberDiff line numberDiff line change
@@ -192,40 +192,6 @@ runClashTest = defaultMain $ clashTestRoot
192192
, expectClashFail=Just (def, "Template function for returned False")
193193
}
194194
]
195-
, clashTestGroup "Cores"
196-
[ clashTestGroup "Xilinx"
197-
[ clashTestGroup "VIO"
198-
[ runTest "DuplicateOutputNames" def{
199-
hdlTargets=[VHDL]
200-
, expectClashFail=Just (def, "Tried create a signal called 'a', but identifier generation returned")
201-
}
202-
, runTest "DuplicateInputNames" def{
203-
hdlTargets=[VHDL]
204-
, expectClashFail=Just (def, "Tried create a signal called 'a', but identifier generation returned")
205-
}
206-
, runTest "DuplicateInputOutputNames" def{
207-
hdlTargets=[VHDL]
208-
, expectClashFail=Just (def, "Tried create a signal called 'a', but identifier generation returned")
209-
}
210-
, runTest "OutputBusWidthExceeded" def{
211-
hdlTargets=[VHDL, Verilog, SystemVerilog]
212-
, expectClashFail=Just (def, "Probe signals must be been between 1 and 256 bits wide.")
213-
}
214-
, runTest "OutputProbesExceeded" def{
215-
hdlTargets=[VHDL, Verilog, SystemVerilog]
216-
, expectClashFail=Just (def, "At most 256 input/output probes are supported.")
217-
}
218-
, runTest "InputBusWidthExceeded" def{
219-
hdlTargets=[VHDL, Verilog, SystemVerilog]
220-
, expectClashFail=Just (def, "Probe signals must be been between 1 and 256 bits wide.")
221-
}
222-
, runTest "InputProbesExceeded" def{
223-
hdlTargets=[VHDL, Verilog, SystemVerilog]
224-
, expectClashFail=Just (def, "At most 256 input/output probes are supported.")
225-
}
226-
]
227-
]
228-
]
229195
, clashTestGroup "InvalidPrimitive"
230196
[ runTest "InvalidPrimitive" def{
231197
hdlTargets=[VHDL]
@@ -482,154 +448,6 @@ runClashTest = defaultMain $ clashTestRoot
482448
, clashTestGroup "BoxedFunctions"
483449
[ runTest "DeadRecursiveBoxed" def{hdlSim=[]}
484450
]
485-
, clashTestGroup "Cores"
486-
[ clashTestGroup "Xilinx"
487-
[ runTest "TdpBlockRam" def
488-
{ -- Compiling with VHDL gives:
489-
-- https://github.com/clash-lang/clash-compiler/issues/2446
490-
hdlTargets = [Verilog]
491-
, hdlLoad = [Vivado]
492-
, hdlSim = [Vivado]
493-
, clashFlags=["-fclash-hdlsyn", "Vivado"]
494-
, buildTargets=BuildSpecific [ "normalWritesTB", "writeEnableWritesTB" ]
495-
}
496-
, let _opts = def{ hdlTargets=[VHDL, Verilog]
497-
, hdlLoad=[Vivado]
498-
, hdlSim=[Vivado]
499-
-- addShortPLTB now segfaults :-(
500-
, buildTargets=BuildSpecific [ "addBasicTB"
501-
, "addEnableTB"
502-
-- , "addShortPLTB"
503-
, "subBasicTB"
504-
, "mulBasicTB"
505-
, "divBasicTB"
506-
, "compareBasicTB"
507-
, "compareEnableTB"
508-
, "fromUBasicTB"
509-
, "fromUEnableTB"
510-
, "fromSBasicTB"
511-
, "fromSEnableTB"
512-
]
513-
}
514-
in runTest "Floating" _opts
515-
, runTest "XpmCdcArraySingle" $ def
516-
{ hdlTargets=[VHDL, Verilog]
517-
, hdlLoad=[Vivado]
518-
, hdlSim=[Vivado]
519-
, buildTargets=BuildSpecific ["tb" <> show n | n <- [(0::Int)..7]]
520-
}
521-
, runTest "XpmCdcGray" $ def
522-
{ hdlTargets=[VHDL, Verilog]
523-
, hdlLoad=[Vivado]
524-
, hdlSim=[Vivado]
525-
, buildTargets=BuildSpecific ["tb" <> show n | n <- [(0::Int)..7]]
526-
}
527-
, runTest "XpmCdcHandshake" $ def
528-
{ hdlTargets=[VHDL, Verilog]
529-
, hdlLoad=[Vivado]
530-
, hdlSim=[Vivado]
531-
, buildTargets=BuildSpecific ["tb" <> show n | n <- [(0::Int)..6]]
532-
}
533-
, runTest "XpmCdcPulse" $ def
534-
{ hdlTargets=[VHDL, Verilog]
535-
, hdlLoad=[Vivado]
536-
, hdlSim=[Vivado]
537-
, buildTargets=BuildSpecific ["tb" <> show n | n <- [(0::Int)..7]]
538-
}
539-
, runTest "XpmCdcSingle" $ def
540-
{ hdlTargets=[VHDL, Verilog]
541-
, hdlLoad=[Vivado]
542-
, hdlSim=[Vivado]
543-
, buildTargets=BuildSpecific ["tb" <> show n | n <- [(0::Int)..7]]
544-
}
545-
, runTest "XpmCdcSyncRst" $ def
546-
{ hdlTargets=[VHDL, Verilog]
547-
, hdlLoad=[Vivado]
548-
, hdlSim=[Vivado]
549-
, buildTargets=BuildSpecific ["tb" <> show n | n <- [(0::Int)..7]]
550-
}
551-
, runTest "DnaPortE2" def
552-
{ hdlTargets=[VHDL, Verilog]
553-
, hdlLoad=[Vivado]
554-
, hdlSim=[Vivado]
555-
}
556-
, clashTestGroup "DcFifo"
557-
[ let _opts =
558-
def{ hdlTargets=[VHDL, Verilog]
559-
, hdlLoad=[Vivado]
560-
, hdlSim=[Vivado]
561-
}
562-
in runTest "Basic" _opts
563-
, let _opts = def{ hdlTargets=[VHDL, Verilog]
564-
, hdlLoad=[Vivado]
565-
, hdlSim=[Vivado]
566-
, buildTargets=BuildSpecific [ "testBench_17_2"
567-
, "testBench_2_17"
568-
, "testBench_2_2"
569-
]
570-
}
571-
in runTest "Lfsr" _opts
572-
]
573-
, let _opts =
574-
def{ hdlTargets=[VHDL, Verilog, SystemVerilog]
575-
, hdlLoad=[Vivado]
576-
, hdlSim=[Vivado]
577-
, buildTargets=BuildSpecific [ "noInputTrue"
578-
, "noInputFalse"
579-
, "noInputLow"
580-
, "noInputHigh"
581-
, "noInputSigned"
582-
, "noInputUnsigned"
583-
, "noInputBitVector"
584-
, "noInputPair"
585-
, "noInputVec"
586-
, "noInputCustom"
587-
, "noInputNested"
588-
, "singleInputBool"
589-
, "singleInputBit"
590-
, "singleInputSigned"
591-
, "singleInputUnsigned"
592-
, "singleInputBitVector"
593-
, "singleInputPair"
594-
, "singleInputVec"
595-
, "singleInputCustom"
596-
, "singleInputNested"
597-
, "multipleInputs"
598-
, "inputsAndOutputs"
599-
, "withSetName"
600-
, "withSetNameNoResult"
601-
]
602-
}
603-
in runTest "VIO" _opts
604-
, let _opts =
605-
def{ hdlTargets=[VHDL, Verilog, SystemVerilog]
606-
, hdlLoad=[Vivado]
607-
, hdlSim=[Vivado]
608-
, buildTargets=BuildSpecific [ "testWithDefaultsOne"
609-
, "testWithDefaultsThree"
610-
, "testWithLefts"
611-
, "testWithRights"
612-
, "testWithRightsSameCu"
613-
]
614-
}
615-
in runTest "Ila" _opts
616-
, let _opts =
617-
def{ hdlTargets=[VHDL, Verilog, SystemVerilog]
618-
, buildTargets=BuildSpecific [ "testWithDefaultsOne"
619-
, "testWithDefaultsThree"
620-
, "testWithLefts"
621-
, "testWithRights"
622-
, "testWithRightsSameCu"
623-
]
624-
}
625-
in outputTest "Ila" _opts
626-
, outputTest "VIO" def{
627-
hdlTargets=[VHDL]
628-
, buildTargets=BuildSpecific ["withSetName", "withSetNameNoResult"]
629-
}
630-
, runTest "T2549" def{hdlTargets=[Verilog],hdlSim=[]}
631-
]
632-
]
633451
, clashTestGroup "CSignal"
634452
[ runTest "MAC" def{hdlSim=[]}
635453
, runTest "CBlockRamTest" def{hdlSim=[]}

tests/clash-testsuite.cabal

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ common basic-config
6464
-- testsuite to compile, but we do when running it.
6565
-- Leaving it out will cause the testsuite to compile
6666
-- it anyway so we're better off doing it beforehand.
67-
clash-cores,
6867
clash-ghc,
6968
clash-lib,
7069
clash-prelude

tests/shouldfail/Cores/Xilinx/VIO/DuplicateInputNames.hs

Lines changed: 0 additions & 15 deletions
This file was deleted.

tests/shouldfail/Cores/Xilinx/VIO/DuplicateInputOutputNames.hs

Lines changed: 0 additions & 15 deletions
This file was deleted.

tests/shouldfail/Cores/Xilinx/VIO/DuplicateOutputNames.hs

Lines changed: 0 additions & 14 deletions
This file was deleted.

tests/shouldfail/Cores/Xilinx/VIO/InputBusWidthExceeded.hs

Lines changed: 0 additions & 15 deletions
This file was deleted.

tests/shouldfail/Cores/Xilinx/VIO/InputProbesExceeded.hs

Lines changed: 0 additions & 17 deletions
This file was deleted.

tests/shouldfail/Cores/Xilinx/VIO/OutputBusWidthExceeded.hs

Lines changed: 0 additions & 14 deletions
This file was deleted.

tests/shouldfail/Cores/Xilinx/VIO/OutputProbesExceeded.hs

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)