File: cli

package info (click to toggle)
rust-threecpio 0.14.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 504 kB
  • sloc: sh: 53; makefile: 11
file content (14 lines) | stat: -rwxr-xr-x 364 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
set -eu

TESTDIR=${AUTOPKGTEST_TMP:-/tmp}
mkdir -p "$TESTDIR"

rm -rf "$TESTDIR/threecpio"
cargo new --bin "$TESTDIR/threecpio"
cp -r tests "$TESTDIR/threecpio"
cp src/temp_dir.rs "$TESTDIR/threecpio/src"
echo "pub mod temp_dir;" > "$TESTDIR/threecpio/src/lib.rs"

cd "$TESTDIR/threecpio"
RUSTFLAGS="-A dead_code" THREECPIO_BIN=/usr/bin/3cpio cargo test