summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/opkg/opkg/0001-opkg-add-target-for-testsuite-installation.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/opkg/opkg/0001-opkg-add-target-for-testsuite-installation.patch')
-rw-r--r--meta/recipes-devtools/opkg/opkg/0001-opkg-add-target-for-testsuite-installation.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/meta/recipes-devtools/opkg/opkg/0001-opkg-add-target-for-testsuite-installation.patch b/meta/recipes-devtools/opkg/opkg/0001-opkg-add-target-for-testsuite-installation.patch
new file mode 100644
index 0000000000..951c186767
--- /dev/null
+++ b/meta/recipes-devtools/opkg/opkg/0001-opkg-add-target-for-testsuite-installation.patch
@@ -0,0 +1,43 @@
1From 8fb0364bd0e19f35c20616dd1ab10aa00e08fa8f Mon Sep 17 00:00:00 2001
2From: Alejandro del Castillo <alejandro.delcastillo@ni.com>
3Date: Wed, 10 Apr 2019 14:49:43 -0500
4Subject: [PATCH] opkg: add target for testsuite installation
5
6- Add target to install testsuite
7- Add override of opkg binary used during test via OPKG_PATH environment
8variable.
9
10Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
11---
12Upstream-Status: Submitted
13
14 Makefile.am | 5 +++++
15 tests/cfg.py | 2 +-
16 2 files changed, 6 insertions(+), 1 deletion(-)
17
18diff --git a/Makefile.am b/Makefile.am
19index 90cfcae..1f6a784 100644
20--- a/Makefile.am
21+++ b/Makefile.am
22@@ -18,3 +18,8 @@ run-tests:
23 $(MAKE) -C tests DATADIR=@datadir@ SYSCONFDIR=@sysconfdir@ VARDIR=@localstatedir@
24
25 check: run-tests
26+
27+install-ptest:
28+ cp -r $(srcdir)/tests $(DESTDIR)
29+ cp Makefile $(DESTDIR)
30+ sed -e 's/^Makefile/_Makefile/' < Makefile > $(DESTDIR)/Makefile
31diff --git a/tests/cfg.py b/tests/cfg.py
32index 4efaff6..ca59d03 100644
33--- a/tests/cfg.py
34+++ b/tests/cfg.py
35@@ -2,4 +2,4 @@ import os
36
37 opkdir = "/tmp/opk"
38 offline_root = "/tmp/opkg"
39-opkgcl = os.path.realpath("../src/opkg")
40+opkgcl = os.getenv('OPKG_PATH', os.path.realpath("../src/opkg"))
41--
422.20.1
43