Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
relibc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
redox-os
relibc
Commits
72e5b514
Commit
72e5b514
authored
5 months ago
by
Ron Williams
Browse files
Options
Downloads
Patches
Plain Diff
Make all tests runnable in the same list
parent
d2ef712f
No related branches found
No related tags found
1 merge request
!522
Make relibc-tests easy to run on Redox
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/run_tests.sh
+2
-4
2 additions, 4 deletions
tests/run_tests.sh
tests/src/main.rs
+10
-14
10 additions, 14 deletions
tests/src/main.rs
with
12 additions
and
18 deletions
tests/run_tests.sh
+
2
−
4
View file @
72e5b514
...
...
@@ -203,8 +203,6 @@ STATUS_NAMES=(\
# time/times
EXPECT_BINS
=(
${
EXPECT_NAMES
[@]/#/.\/bins_static\/
}
)
STATUS_BINS
=(
${
STATUS_NAMES
[@]/#/.\/bins_static\/
}
)
STATUS_BINS
=(
${
STATUS_NAMES
[@]/#/
-s
.\/bins_static\/
}
)
bins_verify/relibc-tests
--status-only
${
STATUS_BINS
[@]
}
bins_verify/relibc-tests
${
EXPECT_BINS
[@]
}
\ No newline at end of file
bins_verify/relibc-tests
${
STATUS_BINS
[@]
}
${
EXPECT_BINS
[@]
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
tests/src/main.rs
+
10
−
14
View file @
72e5b514
...
...
@@ -43,24 +43,20 @@ fn expected(bin: &str, kind: &str, generated: &[u8], status: ExitStatus) -> Resu
Ok
(())
}
const
STATUS_ONLY
:
&
str
=
"-s"
;
fn
main
()
{
let
(
status_only
,
bins
)
=
{
let
mut
bins
=
vec!
[];
let
mut
status_only
=
false
;
for
name
in
env
::
args
()
.skip
(
1
)
{
if
name
==
"--status-only"
{
status_only
=
true
;
}
else
{
bins
.push
(
name
);
}
}
(
status_only
,
bins
)
};
let
mut
failures
=
Vec
::
new
();
for
bin
in
bins
{
for
bin
in
env
::
args
()
.skip
(
1
)
{
let
status_only
=
bin
.starts_with
(
STATUS_ONLY
);
let
bin
=
if
bin
.starts_with
(
STATUS_ONLY
)
{
bin
.strip_prefix
(
STATUS_ONLY
)
.unwrap
()
.to_string
()
}
else
{
bin
};
println!
(
"# {} #"
,
bin
);
match
Command
::
new
(
&
bin
)
.arg
(
"test"
)
.arg
(
"args"
)
.output
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment