5529a1c
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5529a1c
#
5529a1c
#   Makefile of mariadb-connection
5529a1c
#   Description: Tries to connect to MariaDB via unixODBC package
5529a1c
#   Author: Michal Schorm <mschorm@redhat.com>
5529a1c
#
5529a1c
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5529a1c
#
5529a1c
#   Copyright (c) 2018 Red Hat, Inc.
5529a1c
#
5529a1c
#   This program is free software: you can redistribute it and/or
5529a1c
#   modify it under the terms of the GNU General Public License as
5529a1c
#   published by the Free Software Foundation, either version 2 of
5529a1c
#   the License, or (at your option) any later version.
5529a1c
#
5529a1c
#   This program is distributed in the hope that it will be
5529a1c
#   useful, but WITHOUT ANY WARRANTY; without even the implied
5529a1c
#   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
5529a1c
#   PURPOSE.  See the GNU General Public License for more details.
5529a1c
#
5529a1c
#   You should have received a copy of the GNU General Public License
5529a1c
#   along with this program. If not, see http://www.gnu.org/licenses/.
5529a1c
#
5529a1c
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5529a1c
5529a1c
export TEST=mariadb_connection
5529a1c
export TESTVERSION=1.0
5529a1c
5529a1c
BUILT_FILES=
5529a1c
5529a1c
FILES=$(METADATA) runtest.sh Makefile PURPOSE
5529a1c
5529a1c
.PHONY: all install download clean
5529a1c
5529a1c
run: $(FILES) build
5529a1c
	./runtest.sh
5529a1c
5529a1c
build: $(BUILT_FILES)
5529a1c
	test -x runtest.sh || chmod a+x runtest.sh
5529a1c
5529a1c
clean:
5529a1c
	rm -f *~ $(BUILT_FILES)
5529a1c
5529a1c
5529a1c
include /usr/share/rhts/lib/rhts-make.include
5529a1c
5529a1c
$(METADATA): Makefile
5529a1c
	@echo "Owner:           Michal Schorm <mschorm@redhat.com>" > $(METADATA)
5529a1c
	@echo "Name:            $(TEST)" >> $(METADATA)
5529a1c
	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)
5529a1c
	@echo "Path:            $(TEST_DIR)" >> $(METADATA)
5529a1c
	@echo "Description:     Tries to connect to MariaDB via unixODBC and isql packages" >> $(METADATA)
5529a1c
	@echo "Type:            Sanity" >> $(METADATA)
5529a1c
	@echo "TestTime:        5m" >> $(METADATA)
5529a1c
	@echo "RunFor:          mariadb-connector-odbc" >> $(METADATA)
5529a1c
	@echo "Requires:        mariadb-connector-odbc" >> $(METADATA)
5529a1c
	@echo "Priority:        Normal" >> $(METADATA)
5529a1c
	@echo "License:         GPLv2+" >> $(METADATA)
5529a1c
	@echo "Confidential:    no" >> $(METADATA)
5529a1c
	@echo "Destructive:     no" >> $(METADATA)
5529a1c
	@echo "Releases:        -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA)
5529a1c
5529a1c
	rhts-lint $(METADATA)