Skip to content

Commit fcc84a0

Browse files
authored
Merge pull request #431 from rustcoreutils/merge-c99
merge cc
2 parents 00e92fe + b039a4b commit fcc84a0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+49371
-0
lines changed

.github/workflows/TestingCI.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,24 @@ on:
66

77
env:
88
CARGO_TERM_COLOR: always
9+
RUST_BACKTRACE: 1
910

1011
jobs:
1112
linux-ubuntu:
1213
runs-on: ubuntu-latest
1314
steps:
1415
- uses: actions/checkout@v4
16+
- name: System info
17+
run: |
18+
echo "=== Architecture ==="
19+
uname -a
20+
echo "=== CPU ==="
21+
lscpu | head -20
22+
echo "=== Toolchain ==="
23+
rustc --version
24+
cargo --version
25+
cc --version || true
26+
as --version || true
1527
- name: Fetch
1628
run: cargo fetch
1729
- name: Build
@@ -39,9 +51,26 @@ jobs:
3951
with:
4052
path: ~/.cargo/registry/cache
4153
key: registry-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
54+
- name: System info
55+
run: |
56+
echo "=== Architecture ==="
57+
uname -a
58+
arch
59+
echo "=== Toolchain ==="
60+
rustc --version
61+
cargo --version
62+
cc --version || true
63+
as -version || true
64+
echo "=== Xcode ==="
65+
xcodebuild -version || true
4266
- name: Fetch
4367
run: cargo fetch
4468
- name: Build
4569
run: cargo build --release --verbose
4670
- name: Run tests
4771
run: cargo test --release --verbose
72+
- name: Run cc tests (detailed)
73+
if: failure()
74+
run: |
75+
echo "=== Re-running cc tests with more detail ==="
76+
cargo test --release -p posixutils-cc --verbose -- --nocapture --test-threads=1 2>&1 | head -500

CONTRIBUTING.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ There are several ways to contribute to posixutils-rs:
7171
static input data, and compares output with
7272
static output data (OS reference data).
7373
* Use plib's TestPlan framework for integration tests.
74+
* Integration test harness should ONLY contain `mod` statements.
75+
Test logic is in $module/tests/$category/mod.rs files.
7476
* Only "quick" tests should be run automatically in `cargo test`
7577
* Longer tests, or tests requiring root access, should be triggered
7678
via special environment variables.
79+

Cargo.lock

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ resolver = "2"
44
members = [
55
"awk",
66
"calc",
7+
"cc",
78
"datetime",
89
"dev",
910
"display",

0 commit comments

Comments
 (0)