From ca508445db348877e98bdede775aa3e291d76084 Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Tue, 26 Nov 2024 10:59:42 +0100 Subject: [PATCH] Add gating configuration for C10S/RHEL10 This replaces the deprecated STI tests with their TMT-ed copy in the Fedora tests repo and synchronizes the gating configuration with other C10S packages. --- .fmf/version | 1 + ci.fmf | 1 + gating.yaml | 3 +- plans/fedora.fmf | 6 ++++ plans/tier1-internal.fmf | 11 ++++++++ tests/gating/all.sh | 47 ------------------------------- tests/gating/blocksize/test.sh | 49 -------------------------------- tests/gating/bunzip2/test.sh | 40 -------------------------- tests/gating/bzcat/test.sh | 45 ----------------------------- tests/gating/bzip2/test.sh | 37 ------------------------ tests/gating/bzip2test.tar.bz2 | Bin 2720 -> 0 bytes tests/gating/dash/.#test.sh | 1 - tests/gating/dash/test.sh | 41 --------------------------- tests/gating/explicit/test.sh | 45 ----------------------------- tests/gating/force/test.sh | 47 ------------------------------- tests/gating/keep/test.sh | 42 --------------------------- tests/gating/manyfiles/test.sh | 50 --------------------------------- tests/gating/small/test.sh | 39 ------------------------- tests/gating/stdin/test.sh | 38 ------------------------- tests/tests.yml | 15 ---------- 20 files changed, 21 insertions(+), 537 deletions(-) create mode 100644 .fmf/version create mode 100644 ci.fmf create mode 100644 plans/fedora.fmf create mode 100644 plans/tier1-internal.fmf delete mode 100755 tests/gating/all.sh delete mode 100755 tests/gating/blocksize/test.sh delete mode 100755 tests/gating/bunzip2/test.sh delete mode 100755 tests/gating/bzcat/test.sh delete mode 100755 tests/gating/bzip2/test.sh delete mode 100644 tests/gating/bzip2test.tar.bz2 delete mode 120000 tests/gating/dash/.#test.sh delete mode 100755 tests/gating/dash/test.sh delete mode 100755 tests/gating/explicit/test.sh delete mode 100755 tests/gating/force/test.sh delete mode 100755 tests/gating/keep/test.sh delete mode 100755 tests/gating/manyfiles/test.sh delete mode 100755 tests/gating/small/test.sh delete mode 100755 tests/gating/stdin/test.sh delete mode 100644 tests/tests.yml diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/ci.fmf b/ci.fmf new file mode 100644 index 0000000..c5aa0e0 --- /dev/null +++ b/ci.fmf @@ -0,0 +1 @@ +resultsdb-testcase: separate diff --git a/gating.yaml b/gating.yaml index 4ca9235..40466f9 100644 --- a/gating.yaml +++ b/gating.yaml @@ -3,4 +3,5 @@ product_versions: - rhel-10 decision_context: osci_compose_gate rules: - - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} + - !PassingTestCaseRule {test_case_name: osci.brew-build./plans/fedora.functional} + - !PassingTestCaseRule {test_case_name: osci.brew-build./plans/tier1-internal.functional} diff --git a/plans/fedora.fmf b/plans/fedora.fmf new file mode 100644 index 0000000..df11df0 --- /dev/null +++ b/plans/fedora.fmf @@ -0,0 +1,6 @@ +summary: Basic smoke test +discover: + how: fmf + url: https://src.fedoraproject.org/tests/bzip2.git +execute: + how: tmt diff --git a/plans/tier1-internal.fmf b/plans/tier1-internal.fmf new file mode 100644 index 0000000..116516b --- /dev/null +++ b/plans/tier1-internal.fmf @@ -0,0 +1,11 @@ +summary: Internal gating tests plan +discover: + - name: Internal gating tests + how: fmf + filter: 'tag: CI-Tier-1' + url: https://pkgs.devel.redhat.com/git/tests/bzip2 +execute: + how: tmt +adjust: + enabled: false + when: distro == centos-stream or distro == fedora diff --git a/tests/gating/all.sh b/tests/gating/all.sh deleted file mode 100755 index ca5ff04..0000000 --- a/tests/gating/all.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash -# Copyright (C) 2019 Jakub Martisko - -# All rights reserved. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are -# met: - -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following disclaimer -# in the documentation and/or other materials provided with the -# distribution. - -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -passed=0 -subtests=(./blocksize ./bunzip2 ./bzcat ./bzip2 ./dash ./explicit ./force ./keep ./manyfiles ./small ./stdin) -total=${#subtests[@]} - -for subtest in ${subtests[@]} -do - pushd $subtest >/dev/null - ./test.sh - result=$? - echo "Test $subtest result: $result" - if [ "$result" == "0" ] - then - ((passed++)) - fi - popd >/dev/null -done - -echo "Passed $passed/$total tests" -[[ $total == $passed ]] || exit 1 diff --git a/tests/gating/blocksize/test.sh b/tests/gating/blocksize/test.sh deleted file mode 100755 index e694267..0000000 --- a/tests/gating/blocksize/test.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/bash -# Copyright (C) 2019 Jakub Martisko - -# All rights reserved. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are -# met: - -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following disclaimer -# in the documentation and/or other materials provided with the -# distribution. - -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -rm -f ./in ./template - -for i in {1..100000} -do - echo "Hello world" >> ./template -done -#Use -12 compression level -for i in {1..9} -do - rm -f in.bz2 ./in - cp ./template ./in - bzip2 -$i ./in || exit 1 - ls in.bz2 > /dev/null || exit 1 - - bunzip2 ./in.bz2 || exit 1 - - diff ./in ./template || exit 1 -done - -rm -f ./in ./in.bz2 ./template -exit 0 diff --git a/tests/gating/bunzip2/test.sh b/tests/gating/bunzip2/test.sh deleted file mode 100755 index 850747e..0000000 --- a/tests/gating/bunzip2/test.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/bash -# Copyright (C) 2019 Jakub Martisko - -# All rights reserved. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are -# met: - -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following disclaimer -# in the documentation and/or other materials provided with the -# distribution. - -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -rm -f ./in ./exp ./in.bz2 -echo "Hello World!" > ./in -cp ./in ./exp -bzip2 ./in -rm -f ./in - -bunzip2 ./in.bz2 -diff ./exp ./in || exit 1 - -rm -f ./in ./exp ./in.bz2 -exit 0 - diff --git a/tests/gating/bzcat/test.sh b/tests/gating/bzcat/test.sh deleted file mode 100755 index 20363f4..0000000 --- a/tests/gating/bzcat/test.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash -# Copyright (C) 2019 Jakub Martisko - -# All rights reserved. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are -# met: - -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following disclaimer -# in the documentation and/or other materials provided with the -# distribution. - -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -rm -f ./in1 ./in2 ./in3 ./in4 ./out ./exp ./in1.bz2 ./in2.bz2 ./in3.bz2 ./in4.bz2 -echo "Hello world 1" > ./in1 -echo "Hello world 2" > ./in2 -echo "Hello world 3" > ./in3 -echo "Hello world 4" > ./in4 - -cat ./in1 ./in2 ./in3 ./in4 > ./exp - -bzip2 ./in1 ./in2 ./in3 ./in4 || exit 1 - -bzcat ./in1.bz2 ./in2.bz2 ./in3.bz2 ./in4.bz2 > ./out || exit 1 - -diff ./exp ./out || exit 1 - -rm -f ./in1 ./in2 ./in3 ./in4 ./out ./exp ./in1.bz2 ./in2.bz2 ./in3.bz2 ./in4.bz2 - -exit 0 diff --git a/tests/gating/bzip2/test.sh b/tests/gating/bzip2/test.sh deleted file mode 100755 index 40532f7..0000000 --- a/tests/gating/bzip2/test.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -# Copyright (C) 2019 Jakub Martisko - -# All rights reserved. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are -# met: - -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following disclaimer -# in the documentation and/or other materials provided with the -# distribution. - -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -rm -f ./in ./in.bz2 -echo "Hello world" > ./in - -bzip2 ./in - -ls in.bz2 >/dev/null || exit 1 - -rm -f ./in ./in.bz2 -exit 0 diff --git a/tests/gating/bzip2test.tar.bz2 b/tests/gating/bzip2test.tar.bz2 deleted file mode 100644 index 54aa0ce9c5f6d587c3752b53cacc3eace3e2d451..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2720 zcmV;R3Sad?T4*^jL0KkKS>KlKRRA3}|HtUC1Oa^i|NsB@|N4Lb|NbBX!AKwg00ICg zU=QDTDM0`Me9XuKzyJUM1hfECKr{d>a5N17&@?mvXk;|d15E(X02vHG0inRqGy_1; z&;g;4(?AV013&;|F#raK13=IX14BRthC@vNG|&wI0g%K18VL}Iq|ynrrqff?QyNAi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{5`dR>3K-s)SYpN*#M9s`WmS=X z=^aJif={O_1zzZ|;4Bw#vKNQyq{E0pU_&Gu*E9#92lfrym}VYERp>M|!NM)$I4od# zShJ|T`K=zy)un-a4gNC7&B~Y7Bb_gH!5>y}!*bws6M=SKPuJw&s^nZtxLGbmg6y2_ z3qf?(YNo=$aL#2gEF>~jnv9XKvQ?>bO|CTcUrJYM`z4PIRMfmn+%DqmBk7T?UC^*b z_DZu}%g<2pTpZ7{F{8 zaq~VdD%}OpL@r*utwpf3+>dUh>=ulcBEe(WEHoC4$of}Sc;K}!NL>ifxXIZ|IW3C? z#EwZC76sfFqruypvyH!3sEx}7t&wE1U6SuF%fY7XFfW(Hx=oALuE5t{ZNR233v15OTkDK) zEm$rV!t@p`r77Ic!FKS1N$Fwg3!MSqu7K`c^ zf@JS5>UN8Pd*4W3L_bCr)i(=YLTE1X&Puq7%_*R|TpED~Q#6uWsg`4Dw%ctnjkey* a#{Xaf00!UV^&5&WNV}3L!i0wWw{obrmH2f4 diff --git a/tests/gating/dash/.#test.sh b/tests/gating/dash/.#test.sh deleted file mode 120000 index 5632e9c..0000000 --- a/tests/gating/dash/.#test.sh +++ /dev/null @@ -1 +0,0 @@ -jamartis@jamartisT480s.4078:1565678261 \ No newline at end of file diff --git a/tests/gating/dash/test.sh b/tests/gating/dash/test.sh deleted file mode 100755 index 28530bf..0000000 --- a/tests/gating/dash/test.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -# Copyright (C) 2019 Jakub Martisko - -# All rights reserved. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are -# met: - -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following disclaimer -# in the documentation and/or other materials provided with the -# distribution. - -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -rm -f ./-in ./-in.bz2 ./exp -echo "Hello world" > ./-in -echo "Hello world" > ./exp - -bzip2 -- -in || exit 1 -rm -f ./-in -bunzip2 -- -in.bz2 || exit 1 - -diff ./exp ./-in || exit 1 - -rm -f ./-in ./-in.bz2 ./exp -exit 0 - diff --git a/tests/gating/explicit/test.sh b/tests/gating/explicit/test.sh deleted file mode 100755 index 9a63e10..0000000 --- a/tests/gating/explicit/test.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash -# Copyright (C) 2019 Jakub Martisko - -# All rights reserved. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are -# met: - -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following disclaimer -# in the documentation and/or other materials provided with the -# distribution. - -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -rm -f ./in ./exp ./in.bz2 ./in.out -echo "Hello world" > ./in -echo "Hello world" > ./exp - -bzip2 --compress ./in -mv ./in.bz2 ./in - -bzip2 -z ./in - -bzip2 --decompress ./in.bz2 -bzip2 -d -q ./in - -diff ./in.out ./exp || exit 1 - -rm -f ./in ./exp ./in.bz2 ./in.out -exit 0 - diff --git a/tests/gating/force/test.sh b/tests/gating/force/test.sh deleted file mode 100755 index 677f67c..0000000 --- a/tests/gating/force/test.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash -# Copyright (C) 2019 Jakub Martisko - -# All rights reserved. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are -# met: - -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following disclaimer -# in the documentation and/or other materials provided with the -# distribution. - -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -rm -f ./in ./exp ./in.bz2 -#There's an expected typo here! -echo "Hello worl" > ./in -echo "Hello world" > ./exp -bzip2 -f ./in || exit 1 - -ls ./in.bz2 >/dev/null || exit 1 - -echo "Hello world" > ./in -bzip2 -f ./in || exit 1 -ls ./in.bz2 >/dev/null || exit 1 - -echo "Hello worl" > ./in -bunzip2 -f ./in.bz2 || exit 1 - -diff ./in ./exp || exit 1 - -rm -f ./in ./exp ./in.bz2 -exit 0 diff --git a/tests/gating/keep/test.sh b/tests/gating/keep/test.sh deleted file mode 100755 index 4fbee80..0000000 --- a/tests/gating/keep/test.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash -# Copyright (C) 2019 Jakub Martisko - -# All rights reserved. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are -# met: - -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following disclaimer -# in the documentation and/or other materials provided with the -# distribution. - -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -rm -f ./in ./exp ./in.bz2 -echo "Hello world" > ./in -echo "Hello world" > ./exp -bzip2 -k ./in - -ls ./in ./in.bz2 >/dev/null || exit 1 -rm -f ./in -bunzip2 -k ./in.bz2 -ls ./in ./in.bz2 >/dev/null || exit 1 - -diff ./in ./exp || exit 1 - -rm -f ./in ./exp ./in.bz2 -exit 0 diff --git a/tests/gating/manyfiles/test.sh b/tests/gating/manyfiles/test.sh deleted file mode 100755 index 55eab42..0000000 --- a/tests/gating/manyfiles/test.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/bash -# Copyright (C) 2019 Jakub Martisko - -# All rights reserved. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are -# met: - -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following disclaimer -# in the documentation and/or other materials provided with the -# distribution. - -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -rm -f ./in1 ./in2 ./in3 ./in1.bz2 ./in2.bz2 ./in3.bz2 ./exp1 ./exp2 ./exp3 -echo "Hello 1" > ./in1 -echo "Hello 2" > ./in2 -echo "Hello 3" > ./in3 - -echo "Hello 1" > ./exp1 -echo "Hello 2" > ./exp2 -echo "Hello 3" > ./exp3 - - -bzip2 ./in1 ./in2 ./in3 -rm -f ./in1 ./in2 ./in3 - -ls ./in1.bz2 ./in2.bz2 ./in3.bz2 > /dev/null || exit 1 -bunzip2 ./in1.bz2 ./in2.bz2 ./in3.bz2 - -diff ./in1 ./exp1 || exit 1 -diff ./in2 ./exp2 || exit 1 -diff ./in3 ./exp3 || exit 1 - -rm -f ./in1 ./in2 ./in3 ./in1.bz2 ./in2.bz2 ./in3.bz2 ./exp1 ./exp2 ./exp3 -exit 0 diff --git a/tests/gating/small/test.sh b/tests/gating/small/test.sh deleted file mode 100755 index 72fa13c..0000000 --- a/tests/gating/small/test.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash -# Copyright (C) 2019 Jakub Martisko - -# All rights reserved. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are -# met: - -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following disclaimer -# in the documentation and/or other materials provided with the -# distribution. - -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -rm -f ./in ./in.bz2 ./exp -echo "Hello world" > ./in -echo "Hello world" > ./exp - -bzip2 -s ./in || exit 1 -rm -f ./in -bunzip2 -s ./in.bz2 || exit 1 -diff ./in ./exp || exit 1 - -rm -f ./in ./in.bz2 ./exp -exit 0 diff --git a/tests/gating/stdin/test.sh b/tests/gating/stdin/test.sh deleted file mode 100755 index 78e298b..0000000 --- a/tests/gating/stdin/test.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash -# Copyright (C) 2019 Jakub Martisko - -# All rights reserved. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are -# met: - -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following disclaimer -# in the documentation and/or other materials provided with the -# distribution. - -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -rm -f ./in.bz2 ./out ./exp -echo "Hello world" | bzip2 > ./in.bz2 -echo "Hello world" > ./exp -ls in.bz2 >/dev/null || exit 1 - -bunzip2 -c ./in.bz2 > ./out -diff ./exp ./out || exit 1 - -rm -f ./in.bz2 ./out ./exp -exit 0 diff --git a/tests/tests.yml b/tests/tests.yml deleted file mode 100644 index da0d623..0000000 --- a/tests/tests.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -- hosts: localhost - vars: - - artifacts: ./artifacts - remote_user: root - roles: - - role: standard-test-basic - tags: - - atomic - - classic - - container - tests: - - simple: - dir: gating - run: ./all.sh