In this commit we:
1. Use `tmt tests import` to gather all related
metadata from tests/Support-local-additions-to-magic-files
and tests/command-line-options directories and
convert them into tmt format.
2. Add missing requirement for bzip2 in
tests/command-line-options/{Makefile,main.fmf}
files.
3. Replace an obsolescent `egrep` with a `grep -E`
command in the tests/command-line-options/runtest.sh
file.
4. Create new tests/file-tests/Makefile file.
5. Use `tmt tests import` to convert the
tests/file-tests and all related
metadata into tmt format.
6. Simplify and update tests/file-tests/{prepare.sh,
runtest.sh,reference.sh,readfile.py} scripts.
Thank you lzaoral!
7. Update and create new "references" (file-5.42.4 outputs)
in the file-tests/reference.
8. Rename the file-tests/blacklist.txt to
file-tests/blocklist.txt.
9. Replace the tests/tests.yml file with
the plans/file-CI-plan.fmf file.
64 lines
2.2 KiB
Makefile
64 lines
2.2 KiB
Makefile
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
#
|
|
# Makefile of /CoreOS/file/Sanity/command-line-options
|
|
# Description: Tests (most of) command line options available for the file command.
|
|
# Author: Karel Srot <ksrot@redhat.com>
|
|
#
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
#
|
|
# Copyright (c) 2010 Red Hat, Inc. All rights reserved.
|
|
#
|
|
# This copyrighted material is made available to anyone wishing
|
|
# to use, modify, copy, or redistribute it subject to the terms
|
|
# and conditions of the GNU General Public License version 2.
|
|
#
|
|
# 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.
|
|
#
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
export TEST=/CoreOS/file/Sanity/command-line-options
|
|
export TESTVERSION=1.0
|
|
|
|
BUILT_FILES=
|
|
|
|
FILES=$(METADATA) runtest.sh Makefile PURPOSE file_cmd_line_options.tar.gz
|
|
|
|
.PHONY: all install download clean
|
|
|
|
run: $(FILES) build
|
|
./runtest.sh
|
|
|
|
build: $(BUILT_FILES)
|
|
test -x runtest.sh || chmod a+x runtest.sh
|
|
|
|
clean:
|
|
rm -f *~ $(BUILT_FILES)
|
|
|
|
|
|
include /usr/share/rhts/lib/rhts-make.include
|
|
|
|
$(METADATA): Makefile
|
|
@echo "Owner: Karel Srot <ksrot@redhat.com>" > $(METADATA)
|
|
@echo "Name: $(TEST)" >> $(METADATA)
|
|
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
|
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
|
@echo "Description: Tests (most of) command line options available for the file command." >> $(METADATA)
|
|
@echo "Type: Sanity" >> $(METADATA)
|
|
@echo "TestTime: 10m" >> $(METADATA)
|
|
@echo "RunFor: file zlib" >> $(METADATA)
|
|
@echo "Requires: file bzip2" >> $(METADATA)
|
|
@echo "Priority: Normal" >> $(METADATA)
|
|
@echo "License: GPLv2" >> $(METADATA)
|
|
@echo "Confidential: no" >> $(METADATA)
|
|
@echo "Destructive: no" >> $(METADATA)
|
|
|
|
rhts-lint $(METADATA)
|