Skip to content

Trigger abc segfault for testing #4963

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 53 additions & 52 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -832,64 +832,65 @@ endif

# Tests that generate .mk with tests/gen-tests-makefile.sh
MK_TEST_DIRS =
MK_TEST_DIRS += tests/arch/anlogic
MK_TEST_DIRS += tests/arch/ecp5
MK_TEST_DIRS += tests/arch/efinix
MK_TEST_DIRS += tests/arch/gatemate
MK_TEST_DIRS += tests/arch/gowin
MK_TEST_DIRS += tests/arch/ice40
MK_TEST_DIRS += tests/arch/intel_alm
MK_TEST_DIRS += tests/arch/machxo2
MK_TEST_DIRS += tests/arch/microchip
MK_TEST_DIRS += tests/arch/nanoxplore
MK_TEST_DIRS += tests/arch/nexus
MK_TEST_DIRS += tests/arch/quicklogic/pp3
MK_TEST_DIRS += tests/arch/quicklogic/qlf_k6n10f
MK_TEST_DIRS += tests/arch/xilinx
MK_TEST_DIRS += tests/opt
MK_TEST_DIRS += tests/sat
MK_TEST_DIRS += tests/sim
MK_TEST_DIRS += tests/svtypes
MK_TEST_DIRS += tests/techmap
MK_TEST_DIRS += tests/various
ifeq ($(ENABLE_VERIFIC),1)
ifneq ($(YOSYS_NOVERIFIC),1)
MK_TEST_DIRS += tests/verific
endif
endif
MK_TEST_DIRS += tests/verilog
# MK_TEST_DIRS += tests/arch/anlogic
# MK_TEST_DIRS += tests/arch/ecp5
# MK_TEST_DIRS += tests/arch/efinix
# MK_TEST_DIRS += tests/arch/gatemate
# MK_TEST_DIRS += tests/arch/gowin
# MK_TEST_DIRS += tests/arch/ice40
# MK_TEST_DIRS += tests/arch/intel_alm
# MK_TEST_DIRS += tests/arch/machxo2
# MK_TEST_DIRS += tests/arch/microchip
# MK_TEST_DIRS += tests/arch/nanoxplore
# MK_TEST_DIRS += tests/arch/nexus
# MK_TEST_DIRS += tests/arch/quicklogic/pp3
# MK_TEST_DIRS += tests/arch/quicklogic/qlf_k6n10f
# MK_TEST_DIRS += tests/arch/xilinx
# MK_TEST_DIRS += tests/opt
# MK_TEST_DIRS += tests/sat
# MK_TEST_DIRS += tests/sim
# MK_TEST_DIRS += tests/svtypes
# MK_TEST_DIRS += tests/techmap
# MK_TEST_DIRS += tests/various
# ifeq ($(ENABLE_VERIFIC),1)
# ifneq ($(YOSYS_NOVERIFIC),1)
# MK_TEST_DIRS += tests/verific
# endif
# endif
# MK_TEST_DIRS += tests/verilog

# Tests that don't generate .mk
SH_TEST_DIRS =
SH_TEST_DIRS += tests/simple
SH_TEST_DIRS += tests/simple_abc9
SH_TEST_DIRS += tests/hana
SH_TEST_DIRS += tests/asicworld
# SH_TEST_DIRS += tests/realmath
SH_TEST_DIRS += tests/share
SH_TEST_DIRS += tests/opt_share
SH_TEST_DIRS += tests/fsm
SH_TEST_DIRS += tests/memlib
SH_TEST_DIRS += tests/bram
SH_TEST_DIRS += tests/svinterfaces
SH_TEST_DIRS += tests/xprop
SH_TEST_DIRS += tests/select
SH_TEST_DIRS += tests/proc
SH_TEST_DIRS += tests/blif
SH_TEST_DIRS += tests/arch
SH_TEST_DIRS += tests/rpc
SH_TEST_DIRS += tests/memfile
SH_TEST_DIRS += tests/fmt
SH_TEST_DIRS += tests/cxxrtl
ifeq ($(ENABLE_FUNCTIONAL_TESTS),1)
SH_TEST_DIRS += tests/functional
endif
SH_TEST_DIRS += tests/abc_segfault
# SH_TEST_DIRS += tests/simple
# SH_TEST_DIRS += tests/simple_abc9
# SH_TEST_DIRS += tests/hana
# SH_TEST_DIRS += tests/asicworld
# # SH_TEST_DIRS += tests/realmath
# SH_TEST_DIRS += tests/share
# SH_TEST_DIRS += tests/opt_share
# SH_TEST_DIRS += tests/fsm
# SH_TEST_DIRS += tests/memlib
# SH_TEST_DIRS += tests/bram
# SH_TEST_DIRS += tests/svinterfaces
# SH_TEST_DIRS += tests/xprop
# SH_TEST_DIRS += tests/select
# SH_TEST_DIRS += tests/proc
# SH_TEST_DIRS += tests/blif
# SH_TEST_DIRS += tests/arch
# SH_TEST_DIRS += tests/rpc
# SH_TEST_DIRS += tests/memfile
# SH_TEST_DIRS += tests/fmt
# SH_TEST_DIRS += tests/cxxrtl
# ifeq ($(ENABLE_FUNCTIONAL_TESTS),1)
# SH_TEST_DIRS += tests/functional
# endif

# Tests that don't generate .mk and need special args
SH_ABC_TEST_DIRS =
SH_ABC_TEST_DIRS += tests/memories
SH_ABC_TEST_DIRS += tests/aiger
SH_ABC_TEST_DIRS += tests/alumacc
# SH_ABC_TEST_DIRS += tests/memories
# SH_ABC_TEST_DIRS += tests/aiger
# SH_ABC_TEST_DIRS += tests/alumacc

# seed-tests/ is a dummy string, not a directory
.PHONY: seed-tests
Expand Down
2 changes: 1 addition & 1 deletion abc
Submodule abc updated 1 files
+13 −0 src/base/abci/abc.c
3 changes: 3 additions & 0 deletions tests/abc_segfault/run-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

../../yosys-abc -c "&segfault"
Loading