File: Makefile.am

package info (click to toggle)
sysbench 1.0.20%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,828 kB
  • sloc: ansic: 11,830; sh: 1,752; xml: 736; makefile: 192
file content (59 lines) | stat: -rw-r--r-- 1,885 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Copyright (C) 2016 Alexey Kopytov <akopytov@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

AM_TESTS_ENVIRONMENT = \
	PATH="$(top_srcdir)/third_party/cram/scripts:$$PATH" \
	PYTHONPATH="$(top_srcdir)/third_party/cram:$$PYTHONPATH"

TESTS = test_run.sh

test_SCRIPTS = test_run.sh

EXTRA_DIST = $(test_SCRIPTS) \
             README.md

testroot = 	$(datadir)
testdir = 	$(testroot)/sysbench/tests
test_dirs= 	t include include/oltp_legacy

# Used by dist-hook and install-data-local to copy all
# test files into either dist or install directory
install_test_files:
	@if test -z "$(INSTALL_TO_DIR)"; then \
	  echo "Set INSTALL_TO_DIR!" && exit 1; \
	fi
	@for dir in $(test_dirs); do \
	  from_dir="$(srcdir)/$$dir"; \
	  to_dir="$(INSTALL_TO_DIR)/$$dir"; \
	  $(mkinstalldirs) "$$to_dir"; \
	  for f in `(cd $$from_dir && ls *.t *.sh *.lua) 2>/dev/null`; do \
	    if test -f "$$from_dir/$$f"; then \
	      $(INSTALL_DATA) "$$from_dir/$$f" "$$to_dir/$$f" ; \
	    fi; \
	  done \
	done

dist-hook:
	$(MAKE)	INSTALL_TO_DIR="$(distdir)" install_test_files

install-data-local:
	$(MAKE)	INSTALL_TO_DIR="$(DESTDIR)$(testdir)" install_test_files

uninstall-local:
	rm -f -r $(DESTDIR)$(testdir)

test:
	./test_run.sh