include test-ptrace tracer with test-ptrace-misc tracee
and run-ptrace-misc script to run test
Change-Id: I285f10660670832f74a30e78c7755afa20e1a280
Conflicts:
packaging/libunwind.spec
+%define testsdir %{_libdir}/libunwind
Name: libunwind
BuildRequires: gcc-c++
Name: libunwind
BuildRequires: gcc-c++
A portable and efficient C programming interface (API) to determine the
call-chain of a program.
A portable and efficient C programming interface (API) to determine the
call-chain of a program.
+%package tests
+Summary: Package with binaries and data for libunwind tests
+
+%description tests
+This package contains installable tests in Bash.
+
%prep
%setup -q
cp %{SOURCE1001} .
%prep
%setup -q
cp %{SOURCE1001} .
export CFLAGS="%optflags -U_FORTIFY_SOURCE"
%configure
make %{?_smp_mflags}
export CFLAGS="%optflags -U_FORTIFY_SOURCE"
%configure
make %{?_smp_mflags}
+make -C tests test-ptrace
# Check that ln did not create a dangling link
stat %{buildroot}/$(readlink -f "%{buildroot}/%{_libdir}/libunwind.so");
# Check that ln did not create a dangling link
stat %{buildroot}/$(readlink -f "%{buildroot}/%{_libdir}/libunwind.so");
+mkdir -p %{buildroot}%{testsdir}
+install -m 750 tests/.libs/test-ptrace %{buildroot}%{testsdir}
+install -m 750 tests/test-ptrace-misc %{buildroot}%{testsdir}
+install -m 750 tests/run-ptrace-misc %{buildroot}%{testsdir}
+
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%doc %{_mandir}/man?/*
%changelog
%doc %{_mandir}/man?/*
%changelog
+
+%files tests
+%{testsdir}/*