Skip to content

Commit fc28288

Browse files
committed
Auto merge of #735 - alexcrichton:remove-openbsd, r=alexcrichton
Remove OpenBSD CI It's now broken due to changes in the `gcc` crate and having a too-old compiler, and in general it's unfortunately architecturally so different from the other test frameworks that it's difficult to maintain over time.
2 parents 7fd1f9d + 201d539 commit fc28288

File tree

9 files changed

+7
-107
lines changed

9 files changed

+7
-107
lines changed

.travis.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,6 @@ matrix:
7979

8080
# QEMU based targets that compile in an emulator
8181
- env: TARGET=x86_64-unknown-freebsd
82-
- env: TARGET=x86_64-unknown-openbsd QEMU=openbsd.qcow2
83-
script: sh ci/run-docker.sh $TARGET
84-
install:
8582

8683
cache: cargo
8784

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ default = ["use_std"]
2222
use_std = []
2323

2424
[workspace]
25-
members = ["libc-test", "libc-test/generate-files"]
25+
members = ["libc-test"]

ci/docker/x86_64-unknown-openbsd/Dockerfile

Lines changed: 0 additions & 8 deletions
This file was deleted.

ci/run.sh

Lines changed: 5 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -39,36 +39,11 @@ if [ "$QEMU" != "" ]; then
3939
rm -f $tmpdir/libc-test.img
4040
mkdir $tmpdir/mount
4141

42-
# If we have a cross compiler, then we just do the standard rigamarole of
43-
# cross-compiling an executable and then the script to run just executes the
44-
# binary.
45-
#
46-
# If we don't have a cross-compiler, however, then we need to do some crazy
47-
# acrobatics to get this to work. Generate all.{c,rs} on the host which will
48-
# be compiled inside QEMU. Do this here because compiling syntex_syntax in
49-
# QEMU would time out basically everywhere.
50-
if [ "$CAN_CROSS" = "1" ]; then
51-
cargo build --manifest-path libc-test/Cargo.toml --target $TARGET
52-
cp $CARGO_TARGET_DIR/$TARGET/debug/libc-test $tmpdir/mount/
53-
echo 'exec $1/libc-test' > $tmpdir/mount/run.sh
54-
else
55-
rm -rf $tmpdir/generated
56-
mkdir -p $tmpdir/generated
57-
cargo build --manifest-path libc-test/generate-files/Cargo.toml
58-
(cd libc-test && TARGET=$TARGET OUT_DIR=$tmpdir/generated SKIP_COMPILE=1 \
59-
$CARGO_TARGET_DIR/debug/generate-files)
60-
61-
# Copy this folder into the mounted image, the `run.sh` entry point, and
62-
# overwrite the standard libc-test Cargo.toml with the overlay one which will
63-
# assume the all.{c,rs} test files have already been generated
64-
mkdir $tmpdir/mount/libc
65-
cp -r Cargo.* libc-test src ci $tmpdir/mount/libc/
66-
ln -s libc-test/target $tmpdir/mount/libc/target
67-
cp ci/run-qemu.sh $tmpdir/mount/run.sh
68-
echo $TARGET | tee -a $tmpdir/mount/TARGET
69-
cp $tmpdir/generated/* $tmpdir/mount/libc/libc-test
70-
cp libc-test/run-generated-Cargo.toml $tmpdir/mount/libc/libc-test/Cargo.toml
71-
fi
42+
# Do the standard rigamarole of cross-compiling an executable and then the
43+
# script to run just executes the binary.
44+
cargo build --manifest-path libc-test/Cargo.toml --target $TARGET
45+
cp $CARGO_TARGET_DIR/$TARGET/debug/libc-test $tmpdir/mount/
46+
echo 'exec $1/libc-test' > $tmpdir/mount/run.sh
7247

7348
du -sh $tmpdir/mount
7449
genext2fs \

libc-test/build-generated.rs

Lines changed: 0 additions & 16 deletions
This file was deleted.

libc-test/build.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -641,9 +641,5 @@ fn main() {
641641
}
642642
});
643643

644-
if env::var("SKIP_COMPILE").is_ok() {
645-
cfg.generate_files("../src/lib.rs", "all.rs");
646-
} else {
647-
cfg.generate("../src/lib.rs", "all.rs");
648-
}
644+
cfg.generate("../src/lib.rs", "all.rs");
649645
}

libc-test/generate-files/Cargo.toml

Lines changed: 0 additions & 16 deletions
This file was deleted.

libc-test/run-generated-Cargo.toml

Lines changed: 0 additions & 19 deletions
This file was deleted.

libc-test/src/main-generated.rs

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)