diff options
author | P. J. McDermott <pj@pehjota.net> | 2015-12-07 10:51:05 (EST) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2015-12-07 10:51:05 (EST) |
commit | 5232904865f807ac45435830c7b7482e06b284d2 (patch) | |
tree | f94d3407b021401eaeced1590771b8df6a1b8255 /tests | |
parent | b693c185502b73ede8279913c0d148acb30d5e5b (diff) |
tests/arch_is_concerned.sh: Wrap long lines
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/arch_is_concerned.sh | 44 |
1 files changed, 26 insertions, 18 deletions
diff --git a/tests/arch_is_concerned.sh b/tests/arch_is_concerned.sh index ee62976..c6c1d17 100755 --- a/tests/arch_is_concerned.sh +++ b/tests/arch_is_concerned.sh @@ -45,35 +45,43 @@ do_test() main() { + local arches= + # Architecture: all - do_test 'amd64-linux-glibc' 'all' false - do_test 'i686-linux-glibc' 'all' false - do_test 'all' 'all' true + arches='all' + do_test 'amd64-linux-glibc' "${arches}" false + do_test 'i686-linux-glibc' "${arches}" false + do_test 'all' "${arches}" true # Architecture: any - do_test 'amd64-linux-glibc' 'any' true - do_test 'i686-linux-glibc' 'any' true - do_test 'all' 'any' false + arches='any' + do_test 'amd64-linux-glibc' "${arches}" true + do_test 'i686-linux-glibc' "${arches}" true + do_test 'all' "${arches}" false # Architecture: amd64-linux-glibc - do_test 'amd64-linux-glibc' 'amd64-linux-glibc' true - do_test 'i686-linux-glibc' 'amd64-linux-glibc' false - do_test 'all' 'amd64-linux-glibc' false + arches='amd64-linux-glibc' + do_test 'amd64-linux-glibc' "${arches}" true + do_test 'i686-linux-glibc' "${arches}" false + do_test 'all' "${arches}" false # Architecture: !amd64-linux-glibc - do_test 'amd64-linux-glibc' '!amd64-linux-glibc' false - do_test 'i686-linux-glibc' '!amd64-linux-glibc' true - do_test 'all' '!amd64-linux-glibc' false + arches='!amd64-linux-glibc' + do_test 'amd64-linux-glibc' "${arches}" false + do_test 'i686-linux-glibc' "${arches}" true + do_test 'all' "${arches}" false # Architecture: amd64-linux-glibc cortexa8-linux-glibc - do_test 'amd64-linux-glibc' 'amd64-linux-glibc cortexa8-linux-glibc' true - do_test 'i686-linux-glibc' 'amd64-linux-glibc cortexa8-linux-glibc' false - do_test 'all' 'amd64-linux-glibc cortexa8-linux-glibc' false + arches='amd64-linux-glibc cortexa8-linux-glibc' + do_test 'amd64-linux-glibc' "${arches}" true + do_test 'i686-linux-glibc' "${arches}" false + do_test 'all' "${arches}" false # Architecture: amd64-linux-glibc all - do_test 'amd64-linux-glibc' 'amd64-linux-glibc all' true - do_test 'i686-linux-glibc' 'amd64-linux-glibc all' false - do_test 'all' 'amd64-linux-glibc all' true + arches='amd64-linux-glibc all' + do_test 'amd64-linux-glibc' "${arches}" true + do_test 'i686-linux-glibc' "${arches}" false + do_test 'all' "${arches}" true return 0 } |