• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/ltp-testsuite/ltp-testsuite.mk
Petr VorelPetr Vorel committed 4d583756fae02 Oct 2017
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
################################################################################
2
#
3
# ltp-testsuite
4
#
5
################################################################################
6
​
7
LTP_TESTSUITE_VERSION = 20170929
8
LTP_TESTSUITE_SOURCE = ltp-full-$(LTP_TESTSUITE_VERSION).tar.xz
9
LTP_TESTSUITE_SITE = https://github.com/linux-test-project/ltp/releases/download/$(LTP_TESTSUITE_VERSION)
10
LTP_TESTSUITE_LICENSE = GPL-2.0, GPL-2.0+
11
LTP_TESTSUITE_LICENSE_FILES = COPYING
12
​
13
# Do not enable Open POSIX testsuite as it doesn't cross-compile
14
# properly: t0 program is built for the host machine. Notice that due
15
# to a bug, --without-open-posix-testsuite actually enables the test
16
# suite.
17
# See https://github.com/linux-test-project/ltp/issues/143 (invalid
18
# autoconf test) and
19
# https://github.com/linux-test-project/ltp/issues/144 (Open POSIX
20
# testsuite not cross-compiling).
21
LTP_TESTSUITE_CONF_OPTS += \
22
    --with-realtime-testsuite
23
​
24
ifeq ($(BR2_LINUX_KERNEL),y)
25
LTP_TESTSUITE_DEPENDENCIES += linux
26
LTP_TESTSUITE_MAKE_ENV += $(LINUX_MAKE_FLAGS)
27
LTP_TESTSUITE_CONF_OPTS += --with-linux-dir=$(LINUX_DIR)
28
else
29
LTP_TESTSUITE_CONF_OPTS += --without-modules
30
endif
31
​
32
# We change the prefix to a custom one, otherwise we get scripts and
33
# directories directly in /usr, such as /usr/runalltests.sh
34
LTP_TESTSUITE_CONF_OPTS += --prefix=/usr/lib/ltp-testsuite
35
​
36
# Needs libcap with file attrs which needs attr, so both required
37
ifeq ($(BR2_PACKAGE_LIBCAP)$(BR2_PACKAGE_ATTR),yy)
38
LTP_TESTSUITE_DEPENDENCIES += libcap
39
else
40
LTP_TESTSUITE_CONF_ENV += ac_cv_lib_cap_cap_compare=no
41
endif
42
​
43
# ltp-testsuite uses <fts.h>, which isn't compatible with largefile
44
# support.
45
LTP_TESTSUITE_CFLAGS = $(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CFLAGS))
46
LTP_TESTSUITE_CPPFLAGS = $(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CPPFLAGS))
47
LTP_TESTSUITE_LIBS =
48
​
49
ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
50
LTP_TESTSUITE_DEPENDENCIES += libtirpc host-pkgconf
51
LTP_TESTSUITE_CFLAGS += "`$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`"
52
LTP_TESTSUITE_LIBS += "`$(PKG_CONFIG_HOST_BINARY) --libs libtirpc`"
53
endif
54
​
55
LTP_TESTSUITE_CONF_ENV += \
56
    CFLAGS="$(LTP_TESTSUITE_CFLAGS)" \
57
    CPPFLAGS="$(LTP_TESTSUITE_CPPFLAGS)" \
58
    LIBS="$(LTP_TESTSUITE_LIBS)" \
59
    SYSROOT="$(STAGING_DIR)"
60
​
61
# Requires uClibc fts and bessel support, normally not enabled
62
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
63
define LTP_TESTSUITE_REMOVE_UNSUPPORTED
64
    rm -rf $(@D)/testcases/kernel/controllers/cpuset/
65
    rm -rf $(@D)/testcases/misc/math/float/bessel/
66
    rm -f $(@D)/testcases/misc/math/float/float_bessel.c
67
endef
68
LTP_TESTSUITE_POST_PATCH_HOOKS += LTP_TESTSUITE_REMOVE_UNSUPPORTED
69
endif
70
​
71
# ldd command build system tries to build a shared library unconditionally.
72
ifeq ($(BR2_STATIC_LIBS),y)
73
define LTP_TESTSUITE_REMOVE_LDD
74
    rm -rf $(@D)/testcases/commands/ldd
75
endef
76
LTP_TESTSUITE_POST_PATCH_HOOKS += LTP_TESTSUITE_REMOVE_LDD
77
endif
78
​
79
$(eval $(autotools-package))
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.