use posix shell for tests

pull/78/head
Carlo Landmeter 6 years ago
parent 4f079c33a2
commit e33f9a5454

@ -7,4 +7,4 @@ TESTS = \
EXTRA_DIST = $(TESTS)
TEST_EXTENSIONS = .sh
SH_LOG_COMPILER = bash
SH_LOG_COMPILER = sh

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
PIXZ=../src/pixz
@ -10,4 +10,4 @@ echo foo > $INPUT
$PIXZ $INPUT
[[ $(stat -c "%a" $INPUT.xz) = 600 ]]
[ "$(stat -c "%a" $INPUT.xz)" = 600 ]

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
if which cppcheck &> /dev/null ; then
cppcheck --error-exitcode=1 $srcdir/../src

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
PIXZ=../src/pixz
@ -11,4 +11,4 @@ trap "rm -f $COMPRESSED $UNCOMPRESSED" EXIT
$PIXZ $INPUT $COMPRESSED
$PIXZ -d $COMPRESSED $UNCOMPRESSED
[[ $(cat $INPUT | md5sum) = $(cat $UNCOMPRESSED | md5sum) ]] || exit 1
[ "$(cat $INPUT | md5sum)" = "$(cat $UNCOMPRESSED | md5sum)" ] || exit 1

@ -1,6 +1,6 @@
#!/bin/bash
#!/bin/sh
PIXZ=../src/pixz
[[ "foo" = $(echo foo | xz | xz -dc) ]] || exit 1
[[ "bar" = $(echo bar | $PIXZ | $PIXZ -dc) ]] || exit 1
[ "foo" = "$(echo foo | xz | xz -dc)" ] || exit 1
[ "bar" = "$(echo bar | $PIXZ | $PIXZ -dc)" ] || exit 1

Loading…
Cancel
Save