Collection of test suites for superopt.
# first time configuration
./configure
# for building all test suites
make
# Or, for a particular test suite
make <dirname>
# For example, for building bzip2 the following command would be used
make bzip2
# run regression tests
make regression_i386
# Or, for a particular test suite
make -C build/<dirname> test_i386 && parallel --load='33%' < build/<dirname>/test_i386
# For example, for running localmem-tests
make -C build/localmem-tests test_i386 && parallel --load='33%' < build/localmem-tests/test_i386
For restoring the pristine state use:
make distclean
For deleting only the compiled files, use:
make clean
All paths are set in Make.conf
.
In addition, some environment variables are used for some paths. The exhaustive list of environment variables used are:
-
SUPEROPT_PROJECT_DIR
: Directory wheresuperopt-project
is cloned. -
ICC_INSTALL_DIR
: Directory where ICC is installed.icc
is then located to${ICC_INSTALL_DIR}/bin/icc
. -
COMPCERT_INSTALL_BIN
: Directory where CompCert is installed.ccomp
is then located to${COMPCERT_INSTALL_BIN}/ccomp
-
COMPCERT_INSTALL_LIB
: Search path for CompCert libs. -
ICX_INSTALL_DIR
: Directory where ICX (intel's LLVM based compiler, AKA oneAPI compiler) is installed.icx
is then located to${ICX_INSTALL_DIR}/compiler/latest/linux/bin/icc
.
- Create a new top-level directory: the name of directory will be your testsuite name
- Add your C/C++ sources to the newly created directory
- Copy
misc/Makefile.sample
asMakefile
into your testsuite directory and edit per your requirements - Append the suite name to
EQCHECK_TARGETS
in top-levelMakefile