#1 Add CI tests using the standard test interface
Merged 6 years ago by twaugh. Opened 6 years ago by bgoncalv.
rpms/ bgoncalv/diffutils diffutils-tests  into  master

@@ -0,0 +1,63 @@ 

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   Makefile of /CoreOS/diffutils/Regression/cmp-s-returns-1-even-if-files-are-identical

+ #   Description: Test for cmp -s returns 1 even if files are identical

+ #   Author: Jeffrey Bastian <jbastian@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/diffutils/Regression/cmp-s-returns-1-even-if-files-are-identical

+ export TESTVERSION=1.0

+ 

+ BUILT_FILES=

+ 

+ FILES=$(METADATA) runtest.sh Makefile PURPOSE

+ 

+ .PHONY: all install download clean

+ 

+ run: $(FILES) build

+ 	./runtest.sh

+ 

+ build: $(BUILT_FILES)

+ 	chmod a+x runtest.sh

+ 

+ clean:

+ 	rm -f *~ $(BUILT_FILES)

+ 

+ 

+ include /usr/share/rhts/lib/rhts-make.include

+ 

+ $(METADATA): Makefile

+ 	@echo "Owner:           Jeffrey Bastian <jbastian@redhat.com>" > $(METADATA)

+ 	@echo "Name:            $(TEST)" >> $(METADATA)

+ 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

+ 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

+ 	@echo "Description:     Test for cmp -s returns 1 even if files are identical" >> $(METADATA)

+ 	@echo "Type:            Regression" >> $(METADATA)

+ 	@echo "TestTime:        5m" >> $(METADATA)

+ 	@echo "RunFor:          diffutils" >> $(METADATA)

+ 	@echo "Requires:        diffutils" >> $(METADATA)

+ 	@echo "Priority:        Normal" >> $(METADATA)

+ 	@echo "License:         GPLv2" >> $(METADATA)

+ 	@echo "Confidential:    no" >> $(METADATA)

+ 	@echo "Destructive:     no" >> $(METADATA)

+ 

+ 	rhts-lint $(METADATA)

@@ -0,0 +1,9 @@ 

+ PURPOSE of /CoreOS/diffutils/Regression/cmp-s-returns-1-even-if-files-are-identical

+ Description: Test for cmp -s returns 1 even if files are identical

+ Author: Jeffrey Bastian <jbastian@redhat.com>

+ Bug summary: cmp -s returns 1 even if files are identical

+ 

+ Description:

+ 'cmp -s' can return 1 even if files are identical, for example, if comparing

+ a file from /proc with a copy of that file in /tmp, since all files in

+ /proc have a size of 0 bytes.

@@ -0,0 +1,51 @@ 

+ #!/bin/bash

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   runtest.sh of /CoreOS/diffutils/Regression/cmp-s-returns-1-even-if-files-are-identical

+ #   Description: Test for cmp -s returns 1 even if files are identical

+ #   Author: Jeffrey Bastian <jbastian@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.

+ #

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ 

+ # Include rhts environment

+ . /usr/bin/rhts-environment.sh

+ . /usr/share/rhts-library/rhtslib.sh

+ 

+ PACKAGE="diffutils"

+ #set -x

+ 

+ rlJournalStart

+   rlPhaseStartSetup

+     rlAssertRpm $PACKAGE

+     rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory"

+   rlPhaseEnd

+ 

+   rlPhaseStartTest

+     rlAssertExists $TmpDir

+     rlRun "cp /proc/version $TmpDir" 0 "Copy /proc/version to tmp directory"

+     rlRun "cmp -s /proc/version $TmpDir/version" 0 "Compare /proc/version to tmp copy"

+   rlPhaseEnd

+ 

+   rlPhaseStartCleanup

+     rlRun "rm -fr $TmpDir" 0 "Removing tmp directory"

+   rlPhaseEnd

+ rlJournalEnd

+ rlJournalPrintText

@@ -0,0 +1,64 @@ 

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   Makefile of /CoreOS/diffutils/Regression/diff-Z-hangs

+ #   Description: Test for diffutils to check if comparing two files using diff -Z with mixed line endings doesn't hang

+ #   Author: Filip Holec <fholec@redhat.com>

+ #

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   Copyright (c) 2014 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/diffutils/Regression/diff-Z-hangs

+ export TESTVERSION=1.0

+ 

+ BUILT_FILES=

+ 

+ FILES=$(METADATA) runtest.sh Makefile PURPOSE

+ 

+ .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:           Filip Holec <fholec@redhat.com>" > $(METADATA)

+ 	@echo "Name:            $(TEST)" >> $(METADATA)

+ 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

+ 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

+ 	@echo "Description:     Test for diffutils to check if comparing two files using diff -Z with mixed line endings doesn't hang" >> $(METADATA)

+ 	@echo "Type:            Regression" >> $(METADATA)

+ 	@echo "TestTime:        5m" >> $(METADATA)

+ 	@echo "RunFor:          diffutils" >> $(METADATA)

+ 	@echo "Requires:        diffutils" >> $(METADATA)

+ 	@echo "Priority:        Normal" >> $(METADATA)

+ 	@echo "License:         GPLv2" >> $(METADATA)

+ 	@echo "Confidential:    no" >> $(METADATA)

+ 	@echo "Destructive:     no" >> $(METADATA)

+ 	@echo "Releases:        RHEL7" >> $(METADATA)

+ 

+ 	rhts-lint $(METADATA)

@@ -0,0 +1,4 @@ 

+ PURPOSE of /CoreOS/diffutils/Regression/diff-Z-hangs

+ Description: Test for diffutils to check if comparing two files using diff -Z with mixed line endings doesn't hang

+ Author: Filip Holec <fholec@redhat.com>

+ Bug summary: diff -Z hangs

@@ -0,0 +1,56 @@ 

+ #!/bin/bash

+ # vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   runtest.sh of /CoreOS/diffutils/Regression/diff-Z-hangs

+ #   Description: Test for diffutils to check if comparing two files using diff -Z with mixed line endings doesn't hang

+ #   Author: Filip Holec <fholec@redhat.com>

+ #

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   Copyright (c) 2014 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.

+ #

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ 

+ # Include Beaker environment

+ . /usr/bin/rhts-environment.sh

+ . /usr/share/beakerlib/beakerlib.sh

+ 

+ PACKAGE="diffutils"

+ 

+ rlJournalStart

+     rlPhaseStartSetup

+         rlAssertRpm $PACKAGE

+         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

+         rlRun "pushd $TmpDir"

+     rlPhaseEnd

+ 

+     rlPhaseStartTest

+         rlRun "diff -Z <(printf 'a\nb\n') <(printf 'a\nb\n'); echo $?" \

+                 0 "First simple test"

+         rlRun "timeout 10s diff -Z <(printf 'a\r\nb\n') <(printf 'a\nb\r\n')" \

+                 0 "Main test, should not timeout (124)"

+         rlRun "timeout 10s diff -Z <(echo 'a') <(echo -n 'a')" \

+                 0 "Second test, should not timeout (124)"

+     rlPhaseEnd

+ 

+     rlPhaseStartCleanup

+         rlRun "popd"

+         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

+     rlPhaseEnd

+ rlJournalPrintText

+ rlJournalEnd

@@ -0,0 +1,61 @@ 

+ # Makefile - diff-hang-long-files

+ # Author: Michal Fabry <mfabry@redhat.com>

+ # Location: /CoreOS/diffutils/Regression/diff-hang-long-files/Makefile

+ 

+ # Description: Diff appears to hang in long file

+ 

+ # Copyright (c) 2009 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 v.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.

+ 

+ 

+ 

+ TOPLEVEL_NAMESPACE=/CoreOS

+ PACKAGE_NAME=diffutils

+ RELATIVE_PATH=Regression/diff-hang-long-files

+ 

+ export TEST=$(TOPLEVEL_NAMESPACE)/$(PACKAGE_NAME)/$(RELATIVE_PATH)

+ export TESTVERSION=1.0

+ 

+ BUILT_FILES=

+ 

+ FILES=$(METADATA) runtest.sh Makefile

+ 

+ .PHONY: all install download clean

+ 

+ run: $(FILES) build

+ 	./runtest.sh

+ 

+ build: $(BUILT_FILES)

+ 	chmod a+x ./runtest.sh

+ 

+ clean:

+ 	rm -f *~ $(BUILT_FILES)

+ 

+ 

+ include /usr/share/rhts/lib/rhts-make.include

+ 

+ 

+ $(METADATA): Makefile

+ 	@touch $(METADATA)

+ 	@echo "Owner:        Michal Fabry <mfabry@redhat.com>" > $(METADATA)

+ 	@echo "Name:         $(TEST)" >> $(METADATA)

+ 	@echo "Path:         $(TEST_DIR)"       >> $(METADATA)

+ 	@echo "TestVersion:  $(TESTVERSION)"    >> $(METADATA)

+ 	@echo "Description:  Diff appears to hang in long file" >> $(METADATA)

+ 	@echo "Type:         Regression" >> $(METADATA)

+ 	@echo "TestTime:     5m" >> $(METADATA)

+ 	@echo "RunFor:       $(PACKAGE_NAME)" >> $(METADATA)

+ 	@echo "Requires:     $(PACKAGE_NAME) words time" >> $(METADATA)

+ 	@echo "License:      GPLv2" >> $(METADATA)

+ 

+ 	rhts-lint $(METADATA)

@@ -0,0 +1,10 @@ 

+ Test Name: diff-hang-long-files

+ Author: Michal Fabry <mfabry@redhat.com>

+ Location: /CoreOS/diffutils/Regression/diff-hang-long-files

+ 

+ Short Description: Diff appears to hang in long file

+ 

+ 

+ Long Description:

+ 

+ Running the "diff -bBw" command on a very large input file (eg 250 MB), in a multi-byte locale (ie UTF-8), took a very long time to complete, if at all. In a reported case, a diff ran for multiple days and did not complete. In certain situations, this could cause 100% CPU usage.

@@ -0,0 +1,78 @@ 

+ #!/bin/bash

+ # Author: Michal Fabry <mfabry@redhat.com>

+ 

+ # Copyright (c) 2009 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 v.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.

+ 

+ # Include Beaker environment

+ . /usr/bin/rhts-environment.sh || exit 1

+ . /usr/share/beakerlib/beakerlib.sh || exit 1

+ 

+ 

+ rlJournalStart

+ 

+ # ===================================================================

+ # Setup - ABORT if some assert fails

+ # ===================================================================

+ rlPhaseStartSetup Setup

+ 

+ set -o pipefail

+ 

+ function count_lines() {

+   [ ! -r "$1" ] && return 1

+   wc -l "$1" | sed "s/^\s*\([0-9]\+\)\s\+.*$/\1/"

+ }

+ 

+ rlPhaseEnd

+ 

+ 

+ # ===================================================================

+ # Start the test

+ # ===================================================================

+ # -------------------------------------------------------------------

+ # Create connection

+ rlPhaseStartTest "Create big file"

+ # -------------------------------------------------------------------

+ 

+ log=$( mktemp /tmp/log.XXXXXX )

+ 

+ rlRun "tr -d \"'\" <words | xargs echo >long-line" 0 "Create big file part 1"

+ rlRun "for a in \$(seq 30); do cat long-line; done >long-lines" 0 "Create big file part 2"

+ rlAssertExists 'long-lines'

+ 

+ # -------------------------------------------------------------------

+ # Test /usr/sbin/ss output

+ rlPhaseEnd; rlPhaseStartTest "Test diff"

+ # -------------------------------------------------------------------

+ 

+ log2=$( mktemp /tmp/log.XXXXXX )

+ now=$(date '+%s')

+ rlRun "diff -bBw long-lines <(sed -e 's/ /  /' long-lines) >/dev/null"

+ rlAssertGreater "Less than 150 seconds" 150 `expr $now - $(date '+%s')`

+ 

+ rlPhaseEnd

+ 

+ 

+ 

+ # ===================================================================

+ # Start the cleanup

+ # ===================================================================

+ rlPhaseStartCleanup Cleanup

+ 

+ rm -f $log $log2 long-line long-lines

+ rlAssert0 "Remove the log" $?

+ 

+ rlPhaseEnd

+ 

+ #rlCreateLogFromJournal | tee $OUTPUTFILE

+ rlJournalPrintText

The added file is too large to be shown here, see it at: tests/diff-hang-long-files/words
@@ -0,0 +1,63 @@ 

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   Makefile of /CoreOS/diffutils/Regression/diff-w-b-doesn-t-treat-U3000-IDEOGRAPHIC-SPACE-as-space

+ #   Description: Test for diffutils to ensure U3000 ideographic space is treated as space when used -b or -w options

+ #   Author: Filip Holec <fholec@redhat.com>

+ #

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   Copyright (c) 2013 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/diffutils/Regression/diff-w-b-doesn-t-treat-U3000-IDEOGRAPHIC-SPACE-as-space

+ export TESTVERSION=1.0

+ 

+ BUILT_FILES=

+ 

+ FILES=$(METADATA) runtest.sh Makefile PURPOSE a b

+ 

+ .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:           Filip Holec <fholec@redhat.com>" > $(METADATA)

+ 	@echo "Name:            $(TEST)" >> $(METADATA)

+ 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

+ 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

+ 	@echo "Description:     Test for diffutils to ensure U3000 ideographic space is treated as space when used -b or -w options" >> $(METADATA)

+ 	@echo "Type:            Regression" >> $(METADATA)

+ 	@echo "TestTime:        5m" >> $(METADATA)

+ 	@echo "RunFor:          diffutils" >> $(METADATA)

+ 	@echo "Requires:        diffutils" >> $(METADATA)

+ 	@echo "Priority:        Normal" >> $(METADATA)

+ 	@echo "License:         GPLv2" >> $(METADATA)

+ 	@echo "Confidential:    no" >> $(METADATA)

+ 	@echo "Destructive:     no" >> $(METADATA)

+ 

+ 	rhts-lint $(METADATA)

@@ -0,0 +1,6 @@ 

+ PURPOSE of /CoreOS/diffutils/Regression/diff-w-b-doesn-t-treat-U3000-IDEOGRAPHIC-SPACE-as-space

+ Description: Test for diffutils to ensure U3000 ideographic space is treated as space when used -b or -w options

+ Author: Filip Holec <fholec@redhat.com>

+ Bug summary: diff -w/-b doesn't treat U3000 (IDEOGRAPHIC SPACE) as space

+ 

+ Test for diffutils to ensure U3000 ideographic space is treated as space when used -b or -w options

@@ -0,0 +1,1 @@ 

+ a b

@@ -0,0 +1,58 @@ 

+ #!/bin/bash

+ # vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   runtest.sh of /CoreOS/diffutils/Regression/diff-w-b-doesn-t-treat-U3000-IDEOGRAPHIC-SPACE-as-space

+ #   Description: Test for diffutils to ensure U3000 ideographic space is treated as space when used -b or -w options

+ #   Author: Filip Holec <fholec@redhat.com>

+ #

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   Copyright (c) 2013 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.

+ #

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ 

+ # Include Beaker environment

+ . /usr/bin/rhts-environment.sh

+ . /usr/share/beakerlib/beakerlib.sh

+ 

+ PACKAGE="diffutils"

+ 

+ # This test requires a non-C locale. Lets make it predictable

+ export LC_ALL=en_US.utf8

+ 

+ rlJournalStart

+     rlPhaseStartSetup

+         rlAssertRpm $PACKAGE

+         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

+         rlRun "cp a b $TmpDir" 0 "Copy files to $TmpDir"

+         rlRun "pushd $TmpDir"

+     rlPhaseEnd

+ 

+     rlPhaseStartTest

+         rlRun "diff -w a b >out" 0 "diff with -w option"

+         rlRun "[ ! -s out ]" 0 "Output should be empty"

+         rlRun "diff -b a b >out" 0 "diff with -b option"

+         rlRun "[ ! -s out ]" 0 "Output should be empty"

+     rlPhaseEnd

+ 

+     rlPhaseStartCleanup

+         rlRun "popd"

+         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

+     rlPhaseEnd

+ rlJournalPrintText

+ rlJournalEnd

@@ -0,0 +1,63 @@ 

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   Makefile of /CoreOS/diffutils/Regression/sdiff-does-not-recognize-E-option

+ #   Description: Test for sdiff does not recognize -E option

+ #   Author: Martin Kyral <mkyral@redhat.com>

+ #

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   Copyright (c) 2012 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/diffutils/Regression/sdiff-does-not-recognize-E-option

+ export TESTVERSION=1.0

+ 

+ BUILT_FILES=

+ 

+ FILES=$(METADATA) runtest.sh Makefile PURPOSE file1 file2

+ 

+ .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:           Martin Kyral <mkyral@redhat.com>" > $(METADATA)

+ 	@echo "Name:            $(TEST)" >> $(METADATA)

+ 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

+ 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

+ 	@echo "Description:     Test for sdiff does not recognize -E option" >> $(METADATA)

+ 	@echo "Type:            Regression" >> $(METADATA)

+ 	@echo "TestTime:        10m" >> $(METADATA)

+ 	@echo "RunFor:          diffutils" >> $(METADATA)

+ 	@echo "Requires:        diffutils" >> $(METADATA)

+ 	@echo "Priority:        Normal" >> $(METADATA)

+ 	@echo "License:         GPLv2" >> $(METADATA)

+ 	@echo "Confidential:    yes" >> $(METADATA)

+ 	@echo "Destructive:     no" >> $(METADATA)

+ 

+ 	rhts-lint $(METADATA)

@@ -0,0 +1,6 @@ 

+ PURPOSE of /CoreOS/diffutils/Regression/sdiff-does-not-recognize-E-option

+ Description: Test for sdiff does not recognize -E option

+ Author: Martin Kyral <mkyral@redhat.com>

+ Bug summary: sdiff does not recognize -E option

+ 

+ The test runs sdiff -E on two files differing just in use of tab/8 spaces. sdiff shall not fail and shall return that the files are identical.

@@ -0,0 +1,2 @@ 

+         aaa

+         bbb

@@ -0,0 +1,2 @@ 

+ 	aaa

+ 	bbb

@@ -0,0 +1,52 @@ 

+ #!/bin/bash

+ # vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   runtest.sh of /CoreOS/diffutils/Regression/sdiff-does-not-recognize-E-option

+ #   Description: Test for sdiff does not recognize -E option

+ #   Author: Martin Kyral <mkyral@redhat.com>

+ #

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   Copyright (c) 2012 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.

+ #

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ 

+ # Include Beaker environment

+ . /usr/bin/rhts-environment.sh

+ . /usr/lib/beakerlib/beakerlib.sh

+ 

+ PACKAGE="diffutils"

+ 

+ rlJournalStart

+     rlPhaseStartSetup

+         rlAssertRpm $PACKAGE

+         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

+         rlRun "cp file1 file2 $TmpDir"

+         rlRun "pushd $TmpDir"

+     rlPhaseEnd

+ 

+     rlPhaseStartTest

+         rlRun "sdiff -E file1 file2"

+     rlPhaseEnd

+ 

+     rlPhaseStartCleanup

+         rlRun "popd"

+         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

+     rlPhaseEnd

+ rlJournalPrintText

+ rlJournalEnd

file added
+18
@@ -0,0 +1,18 @@ 

+ ---

+ # Tests that run in classic context

+ - hosts: localhost

+   roles:

+   - role: standard-test-beakerlib

+     tags:

+     - classic

+     - container

+     - atomic

+     tests:

+     - cmp-s-returns-1-even-if-files-are-identical

+     - diff-hang-long-files

+     - diff-w-b-doesn-t-treat-U3000-IDEOGRAPHIC-SPACE-as-space

+     - diff-Z-hangs

+     - sdiff-does-not-recognize-E-option

+     - whitespace

+     required_packages:

+     - findutils         # beakerlib needs find command

@@ -0,0 +1,85 @@ 

+ # Copyright (c) 2006 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 v.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.

+ #

+ # Author: bpeck@redhat.com

+ 

+ #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#

+ # Example Makefile for RHTS                                          #

+ # This example is geared towards a test for a specific package       #

+ # It does most of the work for you, but may require further coding   #

+ #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#

+ 

+ # The toplevel namespace within which the test lives.

+ # FIXME: You will need to change this:

+ TOPLEVEL_NAMESPACE=CoreOS

+ 

+ # The name of the package under test:

+ # FIXME: you wil need to change this:

+ PACKAGE_NAME=diffutils

+ 

+ # The path of the test below the package:

+ # FIXME: you wil need to change this:

+ RELATIVE_PATH=whitespace

+ 

+ # Version of the Test. Used with make tag.

+ export TESTVERSION=1.1

+ 

+ # The combined namespace of the test.

+ export TEST=/$(TOPLEVEL_NAMESPACE)/$(PACKAGE_NAME)/$(RELATIVE_PATH)

+ 

+ 

+ # A phony target is one that is not really the name of a file.

+ # It is just a name for some commands to be executed when you

+ # make an explicit request. There are two reasons to use a

+ # phony target: to avoid a conflict with a file of the same

+ # name, and to improve performance.

+ .PHONY: all install download clean

+ 

+ # executables to be built should be added here, they will be generated on the system under test.

+ BUILT_FILES= 

+ 

+ # data files, .c files, scripts anything needed to either compile the test and/or run it.

+ FILES=$(METADATA) runtest.sh Makefile PURPOSE file1 file2

+ 

+ run: $(FILES) build

+ 	./runtest.sh

+ 

+ build: $(BUILT_FILES)

+ 	chmod a+x ./runtest.sh

+ 

+ clean:

+ 	rm -f *~ *.rpm $(BUILT_FILES)

+ 

+ # You may need to add other targets e.g. to build executables from source code

+ # Add them here:

+ 

+ 

+ # Include Common Makefile

+ include /usr/share/rhts/lib/rhts-make.include

+ 

+ # Generate the testinfo.desc here:

+ $(METADATA): Makefile

+ 	@touch $(METADATA)

+ # Change to the test owner's name

+ 	@echo "Owner:        Bill Peck <bpeck@redhat.com>" > $(METADATA)

+ 	@echo "Name:         $(TEST)" >> $(METADATA)

+ 	@echo "Path:         $(TEST_DIR)"	>> $(METADATA)

+ 	@echo "License:      GPL V2" >> $(METADATA)

+ 	@echo "TestVersion:  $(TESTVERSION)"	>> $(METADATA)

+ 	@echo "Description:  diff -b should ignore whitespace ">> $(METADATA)

+ 	@echo "TestTime:     5m" >> $(METADATA)

+ 	@echo "RunFor:       $(PACKAGE_NAME)" >> $(METADATA)  

+ 	@echo "Requires:     $(PACKAGE_NAME)" >> $(METADATA)  

+ 

+ # You may need other fields here; see the documentation

+ 	rhts-lint $(METADATA)

@@ -0,0 +1,10 @@ 

+ Create 2 files, f1, f2 with contents "abc" and "abc " (without quotes),

+ i.e. the same line with a space on the end.

+ 

+ Diff ignoring whitespace:

+ 

+ diff -b f1 f2

+ 

+ should produce no diff output, but does on F8. Works fine on FC6.

+ 

+ version: diffutils-2.8.1-17.fc8

@@ -0,0 +1,1 @@ 

+ abc

@@ -0,0 +1,1 @@ 

+ abc 

@@ -0,0 +1,37 @@ 

+ #!/bin/sh

+ 

+ # Copyright (c) 2006 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 v.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.

+ #

+ # Author: Bill Peck

+ 

+ . /usr/bin/rhts-environment.sh

+ . /usr/share/rhts-library/rhtslib.sh

+ 

+ PACKAGE="diffutils"

+ 

+ rlJournalStart

+   rlPhaseStartSetup

+     rlAssertRpm $PACKAGE

+     rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory"

+   rlPhaseEnd

+ 

+   rlPhaseStartTest

+     rlRun "diff -b file1 file2"

+   rlPhaseEnd

+ 

+   rlPhaseStartCleanup

+     rlRun "rm -fr $TmpDir" 0 "Removing tmp directory"

+   rlPhaseEnd

+ rlJournalEnd

+ rlJournalPrintText

Adds tests according to the CI wiki [0] specifically the standard test interface in the spec [1].

The playbook includes Tier1 level test cases that have been tested in the following contexts and is passing reliably: Atomic Host, Docker, and Classic.
Test logs are stored in the Artifacts directory.

The following steps are used to execute the tests using the standard test interface:

  • Atomic
    sudo ANSIBLE_INVENTORY=$(test -e inventory && echo inventory || echo /usr/share/ansible/inventory) TEST_SUBJECTS=../atomic.qcow2 TEST_ARTIFACTS=$PWD/artifacts ansible-playbook --tags atomic tests.yml

  • Docker
    sudo ANSIBLE_INVENTORY=$(test -e inventory && echo inventory || echo /usr/share/ansible/inventory) TEST_SUBJECTS=docker:docker.io/library/fedora:26 TEST_ARTIFACTS=$PWD/artifacts ansible-playbook --tags container tests.yml

  • Classic
    sudo ANSIBLE_INVENTORY=$(test -e inventory && echo inventory || echo /usr/share/ansible/inventory) TEST_SUBJECTS="" TEST_ARTIFACTS=$PWD/artifacts ansible-playbook --tags classic tests.yml

[0] https://fedoraproject.org/wiki/CI
[1] https://fedoraproject.org/wiki/Changes/InvokingTests

Test Logs: (If you you would like a pointer to the complete log, I can include that as well)

  • Atomic

    <snip>
    TASK [standard-test-beakerlib : Execute beakerlib tests] *****
    changed: [../atomic.qcow2] => (item=cmp-s-returns-1-even-if-files-are-identical)
    changed: [../atomic.qcow2] => (item=diff-hang-long-files)
    changed: [../atomic.qcow2] => (item=diff-w-b-doesn-t-treat-U3000-IDEOGRAPHIC-SPACE-as-space)
    changed: [../atomic.qcow2] => (item=diff-Z-hangs)
    changed: [../atomic.qcow2] => (item=sdiff-does-not-recognize-E-option)
    changed: [../atomic.qcow2] => (item=whitespace)

    TASK [standard-test-beakerlib : Make the master test summary log artifact] *
    changed: [../atomic.qcow2] => (item=cmp-s-returns-1-even-if-files-are-identical)
    changed: [../atomic.qcow2] => (item=diff-hang-long-files)
    changed: [../atomic.qcow2] => (item=diff-w-b-doesn-t-treat-U3000-IDEOGRAPHIC-SPACE-as-space)
    changed: [../atomic.qcow2] => (item=diff-Z-hangs)
    changed: [../atomic.qcow2] => (item=sdiff-does-not-recognize-E-option)
    changed: [../atomic.qcow2] => (item=whitespace)

    TASK [standard-test-beakerlib : Pull out the logs] *****
    changed: [../atomic.qcow2]

    TASK [standard-test-beakerlib : Check the results] *****
    changed: [../atomic.qcow2]

    PLAY RECAP ***********
    ../atomic.qcow2 : ok=13 changed=9 unreachable=0 failed=0

    Test results:

    PASS cmp-s-returns-1-even-if-files-are-identical
    PASS diff-hang-long-files
    PASS diff-w-b-doesn-t-treat-U3000-IDEOGRAPHIC-SPACE-as-space
    PASS diff-Z-hangs
    PASS sdiff-does-not-recognize-E-option
    PASS whitespace

  • Docker

    <snip>
    TASK [standard-test-beakerlib : Execute beakerlib tests] *****
    changed: [ed02612e6d71ec33d62782c41a340d65cb0ce5331002582c88528ec39892dd1e] => (item=cmp-s-returns-1-even-if-files-are-identical)
    changed: [ed02612e6d71ec33d62782c41a340d65cb0ce5331002582c88528ec39892dd1e] => (item=diff-hang-long-files)
    changed: [ed02612e6d71ec33d62782c41a340d65cb0ce5331002582c88528ec39892dd1e] => (item=diff-w-b-doesn-t-treat-U3000-IDEOGRAPHIC-SPACE-as-space)
    changed: [ed02612e6d71ec33d62782c41a340d65cb0ce5331002582c88528ec39892dd1e] => (item=diff-Z-hangs)
    changed: [ed02612e6d71ec33d62782c41a340d65cb0ce5331002582c88528ec39892dd1e] => (item=sdiff-does-not-recognize-E-option)
    changed: [ed02612e6d71ec33d62782c41a340d65cb0ce5331002582c88528ec39892dd1e] => (item=whitespace)

    TASK [standard-test-beakerlib : Make the master test summary log artifact] *
    changed: [ed02612e6d71ec33d62782c41a340d65cb0ce5331002582c88528ec39892dd1e] => (item=cmp-s-returns-1-even-if-files-are-identical)
    changed: [ed02612e6d71ec33d62782c41a340d65cb0ce5331002582c88528ec39892dd1e] => (item=diff-hang-long-files)
    changed: [ed02612e6d71ec33d62782c41a340d65cb0ce5331002582c88528ec39892dd1e] => (item=diff-w-b-doesn-t-treat-U3000-IDEOGRAPHIC-SPACE-as-space)
    changed: [ed02612e6d71ec33d62782c41a340d65cb0ce5331002582c88528ec39892dd1e] => (item=diff-Z-hangs)
    changed: [ed02612e6d71ec33d62782c41a340d65cb0ce5331002582c88528ec39892dd1e] => (item=sdiff-does-not-recognize-E-option)
    changed: [ed02612e6d71ec33d62782c41a340d65cb0ce5331002582c88528ec39892dd1e] => (item=whitespace)

    TASK [standard-test-beakerlib : Pull out the logs] *****
    changed: [ed02612e6d71ec33d62782c41a340d65cb0ce5331002582c88528ec39892dd1e]

    TASK [standard-test-beakerlib : Check the results] *****
    changed: [ed02612e6d71ec33d62782c41a340d65cb0ce5331002582c88528ec39892dd1e]

    PLAY RECAP ***********
    ed02612e6d71ec33d62782c41a340d65cb0ce5331002582c88528ec39892dd1e : ok=15 changed=10 unreachable=0 failed=0

    Test results:

    PASS cmp-s-returns-1-even-if-files-are-identical
    PASS diff-hang-long-files
    PASS diff-w-b-doesn-t-treat-U3000-IDEOGRAPHIC-SPACE-as-space
    PASS diff-Z-hangs
    PASS sdiff-does-not-recognize-E-option
    PASS whitespace

  • Classic

    <snip>
    ==> default: TASK [standard-test-beakerlib : Execute beakerlib tests] ***
    ==> default: changed: [localhost] => (item=cmp-s-returns-1-even-if-files-are-identical)
    ==> default: changed: [localhost] => (item=diff-hang-long-files)
    ==> default: changed: [localhost] => (item=diff-w-b-doesn-t-treat-U3000-IDEOGRAPHIC-SPACE-as-space)
    ==> default: changed: [localhost] => (item=diff-Z-hangs)
    ==> default: changed: [localhost] => (item=sdiff-does-not-recognize-E-option)
    ==> default: changed: [localhost] => (item=whitespace)
    ==> default:
    ==> default: TASK [standard-test-beakerlib : Make the master test summary log artifact] *
    ==> default: changed: [localhost] => (item=cmp-s-returns-1-even-if-files-are-identical)
    ==> default: changed: [localhost] => (item=diff-hang-long-files)
    ==> default: changed: [localhost] => (item=diff-w-b-doesn-t-treat-U3000-IDEOGRAPHIC-SPACE-as-space)
    ==> default: changed: [localhost] => (item=diff-Z-hangs)
    ==> default: changed: [localhost] => (item=sdiff-does-not-recognize-E-option)
    ==> default: changed: [localhost] => (item=whitespace)
    ==> default:
    ==> default: TASK [standard-test-beakerlib : Pull out the logs]
    *****
    ==> default: changed: [localhost]
    ==> default:
    ==> default: TASK [standard-test-beakerlib : Check the results]
    *****
    ==> default: changed: [localhost]
    ==> default:
    ==> default: PLAY RECAP
    *********
    **
    ==> default: localhost : ok=15 changed=11 unreachable=0 failed=0
    ==> default: ++ '[' 0 -ne 0 ']'
    ==> default: ++ cat /root/diffutils/artifacts/test.log
    ==> default: PASS cmp-s-returns-1-even-if-files-are-identical
    ==> default: PASS diff-hang-long-files
    ==> default: PASS diff-w-b-doesn-t-treat-U3000-IDEOGRAPHIC-SPACE-as-space
    ==> default: PASS diff-Z-hangs
    ==> default: PASS sdiff-does-not-recognize-E-option
    ==> default: PASS whitespace

Pull-Request has been merged by twaugh

6 years ago
Metadata
Changes Summary 26
+63
file added
tests/cmp-s-returns-1-even-if-files-are-identical/Makefile
+9
file added
tests/cmp-s-returns-1-even-if-files-are-identical/PURPOSE
+51
file added
tests/cmp-s-returns-1-even-if-files-are-identical/runtest.sh
+64
file added
tests/diff-Z-hangs/Makefile
+4
file added
tests/diff-Z-hangs/PURPOSE
+56
file added
tests/diff-Z-hangs/runtest.sh
+61
file added
tests/diff-hang-long-files/Makefile
+10
file added
tests/diff-hang-long-files/PURPOSE
+78
file added
tests/diff-hang-long-files/runtest.sh
+479828
file added
tests/diff-hang-long-files/words
+63
file added
tests/diff-w-b-doesn-t-treat-U3000-IDEOGRAPHIC-SPACE-as-space/Makefile
+6
file added
tests/diff-w-b-doesn-t-treat-U3000-IDEOGRAPHIC-SPACE-as-space/PURPOSE
+1
file added
tests/diff-w-b-doesn-t-treat-U3000-IDEOGRAPHIC-SPACE-as-space/a
+1
file added
tests/diff-w-b-doesn-t-treat-U3000-IDEOGRAPHIC-SPACE-as-space/b
+58
file added
tests/diff-w-b-doesn-t-treat-U3000-IDEOGRAPHIC-SPACE-as-space/runtest.sh
+63
file added
tests/sdiff-does-not-recognize-E-option/Makefile
+6
file added
tests/sdiff-does-not-recognize-E-option/PURPOSE
+2
file added
tests/sdiff-does-not-recognize-E-option/file1
+2
file added
tests/sdiff-does-not-recognize-E-option/file2
+52
file added
tests/sdiff-does-not-recognize-E-option/runtest.sh
+18
file added
tests/tests.yml
+85
file added
tests/whitespace/Makefile
+10
file added
tests/whitespace/PURPOSE
+1
file added
tests/whitespace/file1
+1
file added
tests/whitespace/file2
+37
file added
tests/whitespace/runtest.sh