Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame^] | 1 | From 8fb0364bd0e19f35c20616dd1ab10aa00e08fa8f Mon Sep 17 00:00:00 2001 |
| 2 | From: Alejandro del Castillo <alejandro.delcastillo@ni.com> |
| 3 | Date: Wed, 10 Apr 2019 14:49:43 -0500 |
| 4 | Subject: [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 |
| 8 | variable. |
| 9 | |
| 10 | Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com> |
| 11 | --- |
| 12 | Upstream-Status: Submitted |
| 13 | |
| 14 | Makefile.am | 5 +++++ |
| 15 | tests/cfg.py | 2 +- |
| 16 | 2 files changed, 6 insertions(+), 1 deletion(-) |
| 17 | |
| 18 | diff --git a/Makefile.am b/Makefile.am |
| 19 | index 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 |
| 31 | diff --git a/tests/cfg.py b/tests/cfg.py |
| 32 | index 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 | -- |
| 42 | 2.20.1 |
| 43 | |