Skip to content

Commit

Permalink
fix missing wasmer binary
Browse files Browse the repository at this point in the history
  • Loading branch information
maminrayej committed Feb 22, 2024
1 parent 98ba5f0 commit bbdc64e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ test-wasi:

test-wasi-fyi: build-wasmer
cd tests/wasi-fyi; \
./test.sh wasmer
./test.sh

test-integration-cli: build-wasmer build-capi package-capi-headless package distribution
cp ./dist/wasmer.tar.gz ./link.tar.gz
Expand Down
13 changes: 1 addition & 12 deletions tests/wasi-fyi/test.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
#!/bin/bash
set -ueo pipefail

usage() {
echo "Usage: $0 <runtime>"
exit 1
}

if [ $# -ne 1 ]; then
usage
else
runtime=$1
fi

bash build.sh

status=0
Expand All @@ -25,7 +14,7 @@ for file in *.wasm; do
echo "Skipping $file"
else
echo "Testing $file"
./wasm-test.sh $runtime $file || status=1
./wasm-test.sh $file || status=1
fi
done

Expand Down
5 changes: 2 additions & 3 deletions tests/wasi-fyi/wasm-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

set -e

runtime=$1
input=$2
input=$1

input_dir=$(dirname $input)
cd $input_dir
Expand Down Expand Up @@ -41,7 +40,7 @@ fi

status=0

"$runtime" --mapdir /hamlet:./test_fs/hamlet --mapdir /fyi:./test_fs/fyi "$input_base.wasm" $dir $env -- $arg \
"../../target/release/wasmer" --mapdir /hamlet:./test_fs/hamlet --mapdir /fyi:./test_fs/fyi "$input_base.wasm" $dir $env -- $arg \
< "$stdin" \
> "$stdout_actual" \
2> "$stderr_actual" \
Expand Down

0 comments on commit bbdc64e

Please sign in to comment.