-
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.
tests: add run termux-elf-cleaner on 100 files
Check so no errors are raised.
- Loading branch information
Showing
3 changed files
with
43 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -29,3 +29,5 @@ m4_include([api-21.at]) | |
m4_include([api-24.at]) | ||
|
||
m4_include([tls-alignment.at]) | ||
|
||
m4_include([threads.at]) |
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,39 @@ | ||
# Process this file with autom4te to create testsuite. -*- Autotest -*- | ||
|
||
# Test suite for termux-elf-cleaner. | ||
# Copyright 2022 Termux | ||
|
||
# This file is part of termux-elf-cleaner. | ||
|
||
# termux-elf-cleaner is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU General Public License as | ||
# published by the Free Software Foundation; either version 3 of the | ||
# License, or (at your option) any later version. | ||
|
||
# termux-elf-cleaner is distributed in the hope that it will be | ||
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty | ||
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
# General Public License for more details. | ||
|
||
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see | ||
# <http://www.gnu.org/licenses/>. | ||
|
||
# Ensure that termux-elf-cleaner can run on several threads | ||
|
||
AT_BANNER([Multiple threads]) | ||
|
||
AT_SETUP([Parallel on 100 files]) | ||
AT_KEYWORDS([dynamic-section api-24 aarch64]) | ||
AT_CHECK([ | ||
for i in $(seq 1 100); do | ||
cp ${top_srcdir}/tests/curl-7.83.1-aarch64-original curl-7.83.1-aarch64-original-$i | ||
done | ||
${abs_top_builddir}/termux-elf-cleaner --api-level 24 --jobs 4 --quiet curl-7.83.1-aarch64-original-* | ||
for i in $(seq 1 100); do | ||
cmp --silent curl-7.83.1-aarch64-original-$i ${top_srcdir}/tests/curl-7.83.1-aarch64-api24-cleaned | ||
done | ||
], | ||
[0], | ||
[]) | ||
AT_CLEANUP |