Skip to content

Commit

Permalink
Merge branch 'release/sameold-0.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
cbs228 committed Apr 23, 2023
2 parents d172b9b + be9fbfc commit b970e93
Show file tree
Hide file tree
Showing 30 changed files with 2,847 additions and 1,342 deletions.
38 changes: 20 additions & 18 deletions .github/workflows/rust_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,16 +227,17 @@ jobs:
- name: Run integration tests
shell: bash
run: |
"$samedec_exe" --version &&
EXPECT="$(cat <sample/long_message.22050.s16le.txt)" &&
OUT="$("$samedec_exe" -r 22050 <sample/long_message.22050.s16le.bin)" &&
echo "$OUT" &&
if [ "$OUT" = "$EXPECT" ]; then
set -e;
"$samedec_exe" --version
for file in $(basename -s .bin sample/*.s16le.bin); do
printf '[%s]\n' "$file";
"$samedec_exe" -r 22050 <"sample/$file.bin" | tee result;
cmp result "sample/$file.txt" || {
echo "FAIL!";
exit 1;
};
echo "PASS";
else
echo "FAIL!";
exit 1;
fi
done
- name: Copy artifact
shell: bash
Expand Down Expand Up @@ -312,16 +313,17 @@ jobs:
- name: Run integration tests
run: |
"$samedec_exe" --version &&
EXPECT="$(cat <sample/long_message.22050.s16le.txt)" &&
OUT="$("$samedec_exe" -r 22050 <sample/long_message.22050.s16le.bin)" &&
echo "$OUT" &&
if [ "$OUT" = "$EXPECT" ]; then
set -e;
"$samedec_exe" --version
for file in $(basename -s .bin sample/*.s16le.bin); do
printf '[%s]\n' "$file";
"$samedec_exe" -r 22050 <"sample/$file.bin" | tee result;
cmp result "sample/$file.txt" || {
echo "FAIL!";
exit 1;
};
echo "PASS";
else
echo "FAIL!";
exit 1;
fi
done
- name: Copy artifact
run: |
Expand Down
17 changes: 9 additions & 8 deletions .github/workflows/rust_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,13 @@ jobs:
- name: Run integration tests
shell: bash
run: |
EXPECT="$(cat <sample/long_message.22050.s16le.txt)" &&
OUT="$(cargo run -p samedec -- -r 22050 <sample/long_message.22050.s16le.bin)" &&
echo "$OUT" &&
if [ "$OUT" = "$EXPECT" ]; then
set -e;
for file in $(basename -s .bin sample/*.s16le.bin); do
printf '[%s]\n' "$file";
cargo run -p samedec -- -r 22050 <"sample/$file.bin" | tee result;
cmp result "sample/$file.txt" || {
echo "FAIL!";
exit 1;
};
echo "PASS";
else
echo "FAIL!";
exit 1;
fi
done
Loading

0 comments on commit b970e93

Please sign in to comment.