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 54aa0ce..0000000 Binary files a/tests/gating/bzip2test.tar.bz2 and /dev/null differ 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