Patrick Williams | d849ec7 | 2016-08-17 14:59:38 -0500 | [diff] [blame^] | 1 | Add install-ptest rule. |
| 2 | |
| 3 | Signed-off-by: Mihaela Sendrea <mihaela.sendrea@enea.com> |
| 4 | Upstream-status: Pending |
| 5 | |
| 6 | diff -uNr a/src/tests/Makefile.am b/src/tests/Makefile.am |
| 7 | --- a/src/tests/Makefile.am 2014-04-07 16:25:59.246238815 +0300 |
| 8 | +++ b/src/tests/Makefile.am 2014-04-10 18:09:43.195772467 +0300 |
| 9 | @@ -54,6 +54,23 @@ |
| 10 | |
| 11 | endif |
| 12 | |
| 13 | +TESTS = lxc-test-containertests lxc-test-locktests \ |
| 14 | + lxc-test-getkeys lxc-test-lxcpath lxc-test-cgpath lxc-test-console \ |
| 15 | + lxc-test-snapshot lxc-test-concurrent lxc-test-may-control \ |
| 16 | + lxc-test-reboot lxc-test-list lxc-test-attach lxc-test-device-add-remove |
| 17 | + |
| 18 | +buildtest-TESTS: $(TESTS) |
| 19 | + |
| 20 | +install-ptest: |
| 21 | + install -d $(TEST_DIR) |
| 22 | + install -D ../lxc/liblxc.so $(TEST_DIR)/../lxc/liblxc.so |
| 23 | + install -D ../../config/test-driver $(TEST_DIR)/../../config/test-driver |
| 24 | + cp Makefile $(TEST_DIR) |
| 25 | + @(for file in $(TESTS); do install $$file $(TEST_DIR); done;) |
| 26 | + sed -i 's|^Makefile:|_Makefile:|' $(TEST_DIR)/Makefile |
| 27 | + sed -i 's|^all-am:|_all-am:|' $(TEST_DIR)/Makefile |
| 28 | + sed -i -e 's|^\(.*\.log:\) \(.*EXEEXT.*\)|\1|g' $(TEST_DIR)/Makefile |
| 29 | + |
| 30 | EXTRA_DIST = \ |
| 31 | cgpath.c \ |
| 32 | clonetest.c \ |