1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2025-09-13 10:42:03 +00:00
libcpuid/Makefile.am
Gleb Popov 090e686e78 Fix the test target
Without this change running `make test` results in

```
LD_PRELOAD=./libcpuid/.libs/libcpuid.so ./tests/run_tests.py ./cpuid_tool/.libs/cpuid_tool --show-test-fast-warning ./tests
usage: run_tests.py [-h] [--fix | --no-fix]
                    [--show-test-fast-warning | --no-show-test-fast-warning]
                    [cpuid_tool] input_test_files [input_test_files ...]
run_tests.py: error: argument cpuid_tool: ./build/cpuid_tool/cpuid_tool is not a file
```
2025-06-30 18:59:30 +02:00

27 lines
1,019 B
Makefile

ACLOCAL_AMFLAGS = -I m4
SUBDIRS = libcpuid cpuid_tool tests
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libcpuid.pc
EXTRA_DIST = libcpuid.pc.in libcpuid_vc71.sln libcpuid_vc10.sln Readme.md
# CMake support:
EXTRA_DIST += CMakeLists.txt libcpuid/CMakeLists.txt tests/CMakeLists.txt cpuid_tool/CMakeLists.txt \
cmake/Config.cmake.in
consistency:
$(top_srcdir)/libcpuid/check-consistency.py $(top_srcdir)/libcpuid
# "make test" is a bit hacked in order to speed up tests by bypassing the
# libtool wrapper script. The old (slower) version is available as "test-old"
test: test-fast
test-fast:
LD_PRELOAD=$(top_builddir)/libcpuid/.libs/libcpuid.so $(top_srcdir)/tests/run_tests.py --show-test-fast-warning $(top_builddir)/cpuid_tool/.libs/cpuid_tool $(top_srcdir)/tests
test-old:
$(top_srcdir)/tests/run_tests.py $(top_builddir)/cpuid_tool/cpuid_tool $(top_srcdir)/tests
fix-tests:
$(top_srcdir)/tests/run_tests.py $(top_builddir)/cpuid_tool/cpuid_tool $(top_srcdir)/tests --fix