Add missing tests to fix osci.brew-build.tier0.functional
resolves: rhbz#2190417
This commit is contained in:
parent
436f1efd09
commit
350341b88e
186
README.md
Normal file
186
README.md
Normal file
@ -0,0 +1,186 @@
|
|||||||
|
Samba is a free SMB and CIFS client and server and Domain Controller for UNIX
|
||||||
|
and other operating systems. It is maintained by the Samba Team, who support the
|
||||||
|
original author, Andrew Tridgell.
|
||||||
|
|
||||||
|
This software is freely distributable under the GNU public license, a copy of
|
||||||
|
which you should have received with this software (in a file called COPYING).
|
||||||
|
|
||||||
|
# WHAT IS SMB/CIFS?
|
||||||
|
This is a big question.
|
||||||
|
|
||||||
|
The very short answer is that it is the protocol by which a lot of PC-related
|
||||||
|
machines share files and printers and other information such as lists of
|
||||||
|
available files and printers. Operating systems that support this natively
|
||||||
|
include Windows 9x, Windows NT (and derivatives), OS/2, Mac OS X and Linux. Add
|
||||||
|
on packages that achieve the same thing are available for DOS, Windows 3.1, VMS,
|
||||||
|
Unix of all kinds, MVS, and more. Some Web Browsers can speak this protocol as
|
||||||
|
well (smb://). Alternatives to SMB include Netware, NFS, Appletalk, Banyan
|
||||||
|
Vines, Decnet etc; many of these have advantages but none are both public
|
||||||
|
specifications and widely implemented in desktop machines by default.
|
||||||
|
|
||||||
|
The Common Internet File system (CIFS) is what the new SMB initiative is called.
|
||||||
|
For details watch [here](https://samba.org/cifs)
|
||||||
|
|
||||||
|
# WHY DO PEOPLE WANT TO USE SMB?
|
||||||
|
* Many people want to integrate their Microsoft desktop clients with their Unix
|
||||||
|
servers.
|
||||||
|
|
||||||
|
* Others want to integrate their Microsoft (etc) servers with Unix servers. This
|
||||||
|
is a different problem to integrating desktop clients.
|
||||||
|
|
||||||
|
* Others want to replace protocols like NFS, DecNet and Novell NCP, especially
|
||||||
|
when used with PCs.
|
||||||
|
|
||||||
|
# WHAT CAN SAMBA DO?
|
||||||
|
Please refer to the WHATSNEW.txt included with this README for a list of
|
||||||
|
features in the latest Samba release.
|
||||||
|
|
||||||
|
Here is a very short list of what samba includes, and what it does. For many
|
||||||
|
networks this can be simply summarized by "Samba provides a complete replacement
|
||||||
|
for Windows NT, Warp, NFS or Netware servers."
|
||||||
|
* a SMB server, to provide Windows NT and LAN Manager-style file and print
|
||||||
|
services to SMB clients such as Windows 95, Warp Server, smbfs and others.
|
||||||
|
|
||||||
|
* a Windows Domain Controller (NT4 and AD) replacement.
|
||||||
|
|
||||||
|
* a file/print server that can act as a member of a Windows NT 4.0 or Active
|
||||||
|
Directory domain.
|
||||||
|
|
||||||
|
* a NetBIOS (rfc1001/1002) nameserver, which amongst other things gives browsing
|
||||||
|
support. Samba can be the master browser on your LAN if you wish.
|
||||||
|
|
||||||
|
* a ftp-like SMB client so you can access PC resources (disks and printers) from
|
||||||
|
UNIX, Netware, and other operating systems
|
||||||
|
|
||||||
|
* a tar extension to the client for backing up PCs
|
||||||
|
|
||||||
|
* limited command-line tool that supports some of the NT administrative
|
||||||
|
functionality, which can be used on Samba, NT workstation and NT server.
|
||||||
|
|
||||||
|
For a much better overview have a look at the [web site](http://samba.org/samba)
|
||||||
|
and browse the user survey.
|
||||||
|
|
||||||
|
#### Related packages include:
|
||||||
|
* cifsvfs, an advanced Linux-only filesystem allowing you to mount remote SMB
|
||||||
|
filesystems from PCs on your Linux box. This is included as standard with Linux
|
||||||
|
2.5 and later.
|
||||||
|
|
||||||
|
* smbfs, the previous Linux-only filesystem allowing you to mount remote SMB
|
||||||
|
filesystems from PCs on your Linux box. This is included as standard with Linux
|
||||||
|
2.0 and later.
|
||||||
|
|
||||||
|
# CONTRIBUTIONS
|
||||||
|
|
||||||
|
### To contribute via GitHub
|
||||||
|
* fork the official Samba team repository on GitHub
|
||||||
|
-- see [GitHub](https://github.com/samba-team/samba)
|
||||||
|
|
||||||
|
* become familiar with the coding standards as described in README.Coding
|
||||||
|
|
||||||
|
* make sure you read the Samba copyright policy
|
||||||
|
-- see [Copyright Policy](https://www.samba.org/samba/devel/copyright-policy.html)
|
||||||
|
|
||||||
|
* create a feature branch
|
||||||
|
|
||||||
|
* make changes
|
||||||
|
|
||||||
|
* when committing, be sure to add signed-off-by tags
|
||||||
|
-- see [Commit message tags](https://wiki.samba.org/index.php/CodeReview#commit_message_tags)
|
||||||
|
|
||||||
|
* send a pull request for your branch through GitHub
|
||||||
|
|
||||||
|
* this will trigger an email to the samba-technical mailing list
|
||||||
|
|
||||||
|
* discussion happens on the samba-technical mailing list as described below
|
||||||
|
|
||||||
|
* more info on using Git for Samba development can be found on Samba Wiki
|
||||||
|
-- see [Using Git for Samba](https://wiki.samba.org/index.php/Using_Git_for_Samba_Development)
|
||||||
|
|
||||||
|
### To contribute via mailing lists
|
||||||
|
Join the mailing list. The Samba team accepts patches (preferably in "diff -u"
|
||||||
|
format, see [here](https://samba.org/samba/devel) for more details) and are
|
||||||
|
always glad to receive feedback or suggestions to the address
|
||||||
|
samba@lists.samba.org. More information on the various Samba mailing lists can
|
||||||
|
be found at [mailman](http://lists.samba.org).
|
||||||
|
|
||||||
|
You can also get the Samba sourcecode straight from the [git repository](http://wiki.samba.org/index.php/Using_Git_for_Samba_Development).
|
||||||
|
|
||||||
|
If you like a particular feature then look through the git change-log on the
|
||||||
|
[web](https://git.samba.org/?p=samba.git;a=summary) and see who added it, then
|
||||||
|
send them an email.
|
||||||
|
|
||||||
|
Remember that free software of this kind lives or dies by the response we get.
|
||||||
|
If no one tells us they like it then we'll probably move onto something else.
|
||||||
|
|
||||||
|
|
||||||
|
# MORE INFO
|
||||||
|
|
||||||
|
### DOCUMENTATION
|
||||||
|
There is quite a bit of documentation included with the package, including man
|
||||||
|
pages, and lots of .html files with hints and useful info. This is also
|
||||||
|
available from the web page. There is a growing collection of information under
|
||||||
|
docs/.
|
||||||
|
|
||||||
|
A list of Samba documentation in languages other than English is available on
|
||||||
|
the web page.
|
||||||
|
|
||||||
|
If you would like to help with the documentation, please coordinate on the
|
||||||
|
samba@lists.samba.org mailing list. See the next section for details on
|
||||||
|
subscribing to samba mailing lists.
|
||||||
|
|
||||||
|
### MAILING LIST
|
||||||
|
Please do NOT send subscription/unsubscription requests to the lists!
|
||||||
|
|
||||||
|
There is a mailing list for discussion of Samba. For details go to [mailman](https://lists.samba.org)
|
||||||
|
or send mail to <samba-subscribe@lists.samba.org>.
|
||||||
|
|
||||||
|
There is also an announcement mailing list where new versions are announced. To
|
||||||
|
subscribe go to [mailman](http://lists.samba.org) or send mail to
|
||||||
|
<samba-announce-subscribe@lists.samba.org>. All announcements also go to the
|
||||||
|
samba list, so you only need to be on one.
|
||||||
|
|
||||||
|
For details of other Samba mailing lists and for access to archives, see
|
||||||
|
[mailman](http://lists.samba.org)
|
||||||
|
|
||||||
|
### MAILING LIST ETIQUETTE
|
||||||
|
|
||||||
|
A few tips when submitting to this or any mailing list.
|
||||||
|
- Make your subject short and descriptive. Avoid the words "help" or "Samba" in
|
||||||
|
the subject. The readers of this list already know that a) you need help, and b)
|
||||||
|
you are writing about samba (of course, you may need to distinguish between
|
||||||
|
Samba PDC and other file sharing software). Avoid phrases such as "what is" and
|
||||||
|
"how do i". Some good subject lines might look like "Slow response with Excel
|
||||||
|
files" or "Migrating from Samba PDC to NT PDC".
|
||||||
|
|
||||||
|
- If you include the original message in your reply, trim it so that only the
|
||||||
|
relevant lines, enough to establish context, are included. Chances are (since
|
||||||
|
this is a mailing list) we've already read the original message.
|
||||||
|
|
||||||
|
- Trim irrelevant headers from the original message in your reply. All we need
|
||||||
|
to see is a) From, b) Date, and c) Subject. We don't even really need the
|
||||||
|
Subject, if you haven't changed it. Better yet is to just preface the original
|
||||||
|
message with "On [date] [someone] wrote:".
|
||||||
|
|
||||||
|
- Please don't reply to or argue about spam, spam filters or viruses on any
|
||||||
|
Samba lists. We do have a spam filtering system that is working quite well thank
|
||||||
|
you very much but occasionally unwanted messages slip through. Deal with it.
|
||||||
|
|
||||||
|
- Never say "Me too." It doesn't help anyone solve the problem. Instead, if you
|
||||||
|
ARE having the same problem, give more information. Have you seen something that
|
||||||
|
the other writer hasn't mentioned, which may be helpful?
|
||||||
|
|
||||||
|
- If you ask about a problem, then come up with the solution on your own or
|
||||||
|
through another source, by all means post it. Someone else may have the same
|
||||||
|
problem and is waiting for an answer, but never hears of it.
|
||||||
|
|
||||||
|
- Give as much *relevant* information as possible such as Samba release number,
|
||||||
|
OS, kernel version, etc...
|
||||||
|
|
||||||
|
- RTFM. Google.
|
||||||
|
|
||||||
|
### WEB SITE
|
||||||
|
A Samba WWW [site](https://samba.org) has been setup with lots of useful info.
|
||||||
|
|
||||||
|
As well as general information and documentation, this also has searchable
|
||||||
|
archives of the mailing list and a user survey that shows who else is using this
|
||||||
|
package.
|
@ -1,16 +0,0 @@
|
|||||||
-----BEGIN PGP SIGNATURE-----
|
|
||||||
|
|
||||||
iQIzBAABCgAdFiEEgfXigyvSVFoYl7cTqplEL7aAtiAFAmPSvJEACgkQqplEL7aA
|
|
||||||
tiDXbA//bPY+2A4y8zPJLibWjRtmv76xTgj1EJMZoC5d7+5PXQfuVhVULGYrxriF
|
|
||||||
MIF4CtTnMDk20mihnQb03csGpZGvqfBKbZg6jYolqeTmwRDgKXf9dxLxYYBGswPN
|
|
||||||
JXiF/ZvDQzEorrsz24o7i9Pe44IXpdf7+3RjIXhKjCa2vFQibTndGRhYb0UYiR9S
|
|
||||||
DELp6V/rmV9/BrYWVhHVnuzROzNWsrXIyu1GPNRWdX6ptJmjq6f8wZUP0NODYsBP
|
|
||||||
e0+BpXwob795tDSAMBnbnp7ZsHRYgB2/iWDTe19MF5LjHCcPwRWmzfZjiWQuz11D
|
|
||||||
kg7RUmlTkpU0mrToM+Uyg3Lhc8sayojDTHkIuIPBTuirdKuyP5Zov1wCaPuvf8Ew
|
|
||||||
LCQlQsC2AVeko8xY7P5ieXrmsfncoKR23S0MaKM6oNXooMJcNFnemMvCsOGGeGCi
|
|
||||||
HJa1whPdI5Cj3zLB5X35UNMmauS7qWyyj3lS2horg8L/iIQ3R3q+0Xkd5VmX1BXz
|
|
||||||
EhVDvOnb1F7E9HFlxhZRJFufpnHrGZX6ZYe6BqP8oU092UUU5JMeIqe20wG/dAtX
|
|
||||||
B91QhITdPDnM4KrSbch9i+BKW1xD8srRXu4yqMTZp6X6dPh6lnzVn6vj4uKNCMwz
|
|
||||||
2qLa3Rl+cRON1uTeFJXSTHg/diHjKriu3+bCqm0RlHAFLMtvudk=
|
|
||||||
=gZl3
|
|
||||||
-----END PGP SIGNATURE-----
|
|
@ -138,7 +138,7 @@
|
|||||||
%define samba_requires_eq() %(LC_ALL="C" echo '%*' | xargs -r rpm -q --qf 'Requires: %%{name} = %%{epoch}:%%{version}\\n' | sed -e 's/ (none):/ /' -e 's/ 0:/ /' | grep -v "is not")
|
%define samba_requires_eq() %(LC_ALL="C" echo '%*' | xargs -r rpm -q --qf 'Requires: %%{name} = %%{epoch}:%%{version}\\n' | sed -e 's/ (none):/ /' -e 's/ 0:/ /' | grep -v "is not")
|
||||||
|
|
||||||
%global samba_version 4.18.2
|
%global samba_version 4.18.2
|
||||||
%global baserelease 0
|
%global baserelease 1
|
||||||
# This should be rc1 or %%nil
|
# This should be rc1 or %%nil
|
||||||
%global pre_release %nil
|
%global pre_release %nil
|
||||||
|
|
||||||
@ -4376,6 +4376,9 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed May 24 2023 Pavel Filipenský <pfilipen@redhat.com> - 4.18.2-1
|
||||||
|
- resolves: rhbz#2190417 - Add missing tests to fix osci.brew-build.tier0.functional
|
||||||
|
|
||||||
* Mon May 22 2023 Pavel Filipenský <pfilipen@redhat.com> - 4.18.2-0
|
* Mon May 22 2023 Pavel Filipenský <pfilipen@redhat.com> - 4.18.2-0
|
||||||
- resolves: rhbz#2190417 - Update to version 4.18.2
|
- resolves: rhbz#2190417 - Update to version 4.18.2
|
||||||
|
|
||||||
|
62
tests/testparm/Makefile
Normal file
62
tests/testparm/Makefile
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
#
|
||||||
|
# Makefile of gating test "testparm"
|
||||||
|
# Description: Basic config check for samba
|
||||||
|
# Author: Andrej Dzilsky <adzilsky@redhat.com>
|
||||||
|
#
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
#
|
||||||
|
# Copyright (c) 2019 Red Hat, Inc.
|
||||||
|
#
|
||||||
|
# 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, see http://www.gnu.org/licenses/.
|
||||||
|
#
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
export TEST=testparm
|
||||||
|
export TESTVERSION=1.0
|
||||||
|
|
||||||
|
BUILT_FILES=
|
||||||
|
|
||||||
|
FILES=$(METADATA) runtest.sh Makefile
|
||||||
|
|
||||||
|
.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: Andrej Dzilsky <adzilsky@redhat.com>" > $(METADATA)
|
||||||
|
@echo "Name: $(TEST)" >> $(METADATA)
|
||||||
|
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
||||||
|
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
||||||
|
@echo "Description: Basic samba config check" >> $(METADATA)
|
||||||
|
@echo "Type: Regression" >> $(METADATA)
|
||||||
|
@echo "TestTime: 5m" >> $(METADATA)
|
||||||
|
@echo "RunFor: samba" >> $(METADATA)
|
||||||
|
@echo "Priority: Normal" >> $(METADATA)
|
||||||
|
@echo "License: GPLv2+" >> $(METADATA)
|
||||||
|
@echo "Confidential: no" >> $(METADATA)
|
||||||
|
@echo "Destructive: no" >> $(METADATA)
|
||||||
|
@echo "Bug: 1653890" >> $(METADATA)
|
||||||
|
|
||||||
|
rhts-lint $(METADATA)
|
43
tests/testparm/runtest.sh
Normal file
43
tests/testparm/runtest.sh
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
#
|
||||||
|
# runtest.sh of gating test "testparm"
|
||||||
|
# Description: Basic samba config check
|
||||||
|
# Author: Andrej Dzilsky <adzilsky@redhat.com>
|
||||||
|
#
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
#
|
||||||
|
# Copyright (c) 2019 Red Hat, Inc.
|
||||||
|
#
|
||||||
|
# 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, see http://www.gnu.org/licenses/.
|
||||||
|
#
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
# Include Beaker environment
|
||||||
|
. /usr/bin/rhts-environment.sh || exit 1
|
||||||
|
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||||
|
|
||||||
|
# From Andreas Schneider <asn@redhat.com>:
|
||||||
|
# This is a basic test which makes sure the samba is installed and the default
|
||||||
|
# smb.conf is available.
|
||||||
|
|
||||||
|
rlJournalStart
|
||||||
|
|
||||||
|
rlPhaseStartTest
|
||||||
|
rlRun "testparm -v -s" 0 "testparm ends with expected output"
|
||||||
|
rlPhaseEnd
|
||||||
|
|
||||||
|
rlJournalPrintText
|
||||||
|
rlJournalEnd
|
13
tests/tests.yml
Normal file
13
tests/tests.yml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
# This first play always runs on the local staging system
|
||||||
|
- hosts: localhost
|
||||||
|
roles:
|
||||||
|
- role: standard-test-beakerlib
|
||||||
|
tags:
|
||||||
|
- classic
|
||||||
|
tests:
|
||||||
|
- testparm
|
||||||
|
required_packages:
|
||||||
|
- samba
|
||||||
|
- samba-client
|
||||||
|
- samba-common
|
Loading…
Reference in New Issue
Block a user