Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libc
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
felixmoebius
libc
Commits
5f38367d
Commit
5f38367d
authored
6 years ago
by
Linus Färnstrand
Browse files
Options
Downloads
Patches
Plain Diff
Add testing with align feature
parent
6abe0b52
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ci/run.sh
+5
-1
5 additions, 1 deletion
ci/run.sh
libc-test/Cargo.toml
+1
-0
1 addition, 0 deletions
libc-test/Cargo.toml
with
6 additions
and
1 deletion
ci/run.sh
+
5
−
1
View file @
5f38367d
...
@@ -79,7 +79,7 @@ if [ "$QEMU" != "" ]; then
...
@@ -79,7 +79,7 @@ if [ "$QEMU" != "" ]; then
exec grep
"^PASSED .* tests"
$CARGO_TARGET_DIR
/out.log
exec grep
"^PASSED .* tests"
$CARGO_TARGET_DIR
/out.log
fi
fi
# FIXME: x86_64-unknown-linux-gnux32 fail to compile wihout --release
# FIXME: x86_64-unknown-linux-gnux32 fail to compile wi
t
hout --release
# See https://github.com/rust-lang/rust/issues/45417
# See https://github.com/rust-lang/rust/issues/45417
opt
=
opt
=
if
[
"
$TARGET
"
=
"x86_64-unknown-linux-gnux32"
]
;
then
if
[
"
$TARGET
"
=
"x86_64-unknown-linux-gnux32"
]
;
then
...
@@ -91,4 +91,8 @@ fi
...
@@ -91,4 +91,8 @@ fi
if
[
"
$TARGET
"
!=
"x86_64-rumprun-netbsd"
]
;
then
if
[
"
$TARGET
"
!=
"x86_64-rumprun-netbsd"
]
;
then
cargo
test
$opt
--no-default-features
--manifest-path
libc-test/Cargo.toml
--target
$TARGET
cargo
test
$opt
--no-default-features
--manifest-path
libc-test/Cargo.toml
--target
$TARGET
fi
fi
# Test the #[repr(align(x))] feature if this is building on Rust >= 1.25
if
[
$(
rustc
--version
|
sed
-E
's/^rustc 1\.([0-9]*)\..*/\1/'
)
-ge
25
]
;
then
cargo
test
$opt
--features
align
--manifest-path
libc-test/Cargo.toml
--target
$TARGET
fi
exec
cargo
test
$opt
--manifest-path
libc-test/Cargo.toml
--target
$TARGET
exec
cargo
test
$opt
--manifest-path
libc-test/Cargo.toml
--target
$TARGET
This diff is collapsed.
Click to expand it.
libc-test/Cargo.toml
+
1
−
0
View file @
5f38367d
...
@@ -14,6 +14,7 @@ ctest = { git = "https://github.com/alexcrichton/ctest" }
...
@@ -14,6 +14,7 @@ ctest = { git = "https://github.com/alexcrichton/ctest" }
[features]
[features]
default
=
[
"use_std"
]
default
=
[
"use_std"
]
use_std
=
[
"libc/use_std"
]
use_std
=
[
"libc/use_std"
]
align
=
[
"libc/align"
]
[[test]]
[[test]]
name
=
"main"
name
=
"main"
...
...
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