Fix playTests.sh Under QEMU
parent
1c9ac4ccf4
commit
5f46894184
|
@ -330,7 +330,7 @@ test-zstd-nolegacy: zstd-nolegacy
|
||||||
|
|
||||||
test-zstd test-zstd32 test-zstd-nolegacy: datagen
|
test-zstd test-zstd32 test-zstd-nolegacy: datagen
|
||||||
file $(ZSTD)
|
file $(ZSTD)
|
||||||
ZSTD="$(QEMU_SYS) $(ZSTD)" ./playTests.sh $(ZSTDRTTEST)
|
EXE_PREFIX="$(QEMU_SYS)" ZSTD_BIN="$(ZSTD)" ./playTests.sh $(ZSTDRTTEST)
|
||||||
|
|
||||||
|
|
||||||
test-gzstd: gzstd
|
test-gzstd: gzstd
|
||||||
|
|
|
@ -102,9 +102,11 @@ case "$UNAME" in
|
||||||
SunOS) DIFF="gdiff" ;;
|
SunOS) DIFF="gdiff" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
println "\nStarting playTests.sh isWindows=$isWindows ZSTD='$ZSTD'"
|
println "\nStarting playTests.sh isWindows=$isWindows EXE_PREFIX='$EXE_PREFIX' ZSTD_BIN='$ZSTD_BIN'"
|
||||||
|
|
||||||
[ -n "$ZSTD" ] || die "ZSTD variable must be defined!"
|
[ -n "$ZSTD_BIN" ] || die "ZSTD_BIN variable must be defined!"
|
||||||
|
|
||||||
|
ZSTD="$EXE_PREFIX $ZSTD_BIN"
|
||||||
|
|
||||||
if echo hello | $ZSTD -v -T2 2>&1 > $INTOVOID | grep -q 'multi-threading is disabled'
|
if echo hello | $ZSTD -v -T2 2>&1 > $INTOVOID | grep -q 'multi-threading is disabled'
|
||||||
then
|
then
|
||||||
|
@ -493,19 +495,19 @@ cat hello.zstd world.zstd > helloworld.zstd
|
||||||
$ZSTD -dc helloworld.zstd > result.tmp
|
$ZSTD -dc helloworld.zstd > result.tmp
|
||||||
$DIFF helloworld.tmp result.tmp
|
$DIFF helloworld.tmp result.tmp
|
||||||
println "testing zstdcat symlink"
|
println "testing zstdcat symlink"
|
||||||
ln -sf $ZSTD zstdcat
|
ln -sf $ZSTD_BIN zstdcat
|
||||||
./zstdcat helloworld.zstd > result.tmp
|
$EXE_PREFIX ./zstdcat helloworld.zstd > result.tmp
|
||||||
$DIFF helloworld.tmp result.tmp
|
$DIFF helloworld.tmp result.tmp
|
||||||
ln -s helloworld.zstd helloworld.link.zstd
|
ln -s helloworld.zstd helloworld.link.zstd
|
||||||
./zstdcat helloworld.link.zstd > result.tmp
|
$EXE_PREFIX ./zstdcat helloworld.link.zstd > result.tmp
|
||||||
$DIFF helloworld.tmp result.tmp
|
$DIFF helloworld.tmp result.tmp
|
||||||
rm zstdcat
|
rm zstdcat
|
||||||
rm result.tmp
|
rm result.tmp
|
||||||
println "testing zcat symlink"
|
println "testing zcat symlink"
|
||||||
ln -sf $ZSTD zcat
|
ln -sf $ZSTD_BIN zcat
|
||||||
./zcat helloworld.zstd > result.tmp
|
$EXE_PREFIX ./zcat helloworld.zstd > result.tmp
|
||||||
$DIFF helloworld.tmp result.tmp
|
$DIFF helloworld.tmp result.tmp
|
||||||
./zcat helloworld.link.zstd > result.tmp
|
$EXE_PREFIX ./zcat helloworld.link.zstd > result.tmp
|
||||||
$DIFF helloworld.tmp result.tmp
|
$DIFF helloworld.tmp result.tmp
|
||||||
rm zcat
|
rm zcat
|
||||||
rm ./*.tmp ./*.zstd
|
rm ./*.tmp ./*.zstd
|
||||||
|
|
Loading…
Reference in New Issue