-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8a44b6f
commit 729537c
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/bash | ||
|
||
if [ $# != 2 ]; then | ||
echo "Usage path/to/test-threads.sh <termux-elf-cleaner> <source-dir>" | ||
exit 1 | ||
fi | ||
|
||
elf_cleaner="$1" | ||
source_dir="$2" | ||
|
||
for i in {1..100}; do | ||
for arch in aarch64 arm i686 x86_64; do | ||
for api in 21 24; do | ||
cp "$source_dir/tests/curl-7.83.1-$arch-original" "$source_dir/tests/curl-8.83.1-$arch-api$api-threads-$i.test" | ||
done | ||
done | ||
done | ||
|
||
for api in 21 24; do | ||
"$elf_cleaner" --api-level "$api" "$source_dir/tests/curl-8.83.1-"*"-api$api-threads"*".test" | ||
done | ||
|
||
for i in {1..100}; do | ||
for arch in aarch64 arm i686 x86_64; do | ||
if not cmp -s "$source_dir/tests/curl-7.83.1-$arch-api$api-cleaned" "$source_dir/tests/curl-8.83.1-$arch-api$api-threads-$i.test"; then | ||
echo "Expected and actual files differ for $source_dir/tests/curl-8.83.1-$arch-threads-$i.test" | ||
exit 1 | ||
fi | ||
done | ||
done |