From d71cc75b7c3b24b9fe942818d3a368b93fc4b189 Mon Sep 17 00:00:00 2001 From: Hideki Sekine Date: Mon, 6 Aug 2018 22:19:00 +0900 Subject: [PATCH 01/15] [CI] run-make: experimental thumb test --- .../run-make/thumb-none-cortex-m/Makefile | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/test/run-make/thumb-none-cortex-m/Makefile diff --git a/src/test/run-make/thumb-none-cortex-m/Makefile b/src/test/run-make/thumb-none-cortex-m/Makefile new file mode 100644 index 0000000000000..bce52201de1c7 --- /dev/null +++ b/src/test/run-make/thumb-none-cortex-m/Makefile @@ -0,0 +1,21 @@ +# Don't use the definitions +#-include ../../run-make-fulldeps/tools.mk + +ifeq ($(TARGET),thumbv7m-none-eabi) + +#TMP_DIR := $(shell mktemp -d) +TMP_DIR := /tmp/safe_place +CRATE := cortex-m + +all: + env > env.txt + mkdir -p $(TMP_DIR) + -cd $(TMP_DIR) && rm -rf $(CRATE) + cd $(TMP_DIR) && $(CARGO) clone $(CRATE) --vers 0.5.0 + pwd + cd $(TMP_DIR) && cd $(CRATE) && $(CARGO) build --target $(TARGET) +else + +all: + +endif From 320b240819d99076dddd26236508b5713f1e75bb Mon Sep 17 00:00:00 2001 From: Hideki Sekine Date: Tue, 7 Aug 2018 00:50:44 +0900 Subject: [PATCH 02/15] [CI] run-make/thumb: add -vv to `cargo build` for diag --- src/test/run-make/thumb-none-cortex-m/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/run-make/thumb-none-cortex-m/Makefile b/src/test/run-make/thumb-none-cortex-m/Makefile index bce52201de1c7..e099f144b2c33 100644 --- a/src/test/run-make/thumb-none-cortex-m/Makefile +++ b/src/test/run-make/thumb-none-cortex-m/Makefile @@ -13,7 +13,7 @@ all: -cd $(TMP_DIR) && rm -rf $(CRATE) cd $(TMP_DIR) && $(CARGO) clone $(CRATE) --vers 0.5.0 pwd - cd $(TMP_DIR) && cd $(CRATE) && $(CARGO) build --target $(TARGET) + cd $(TMP_DIR) && cd $(CRATE) && $(CARGO) build --target $(TARGET) -vv else all: From 9e2dc550b5e3bdec414b791875c20502a8f3cc18 Mon Sep 17 00:00:00 2001 From: Hideki Sekine Date: Tue, 7 Aug 2018 01:20:50 +0900 Subject: [PATCH 03/15] [CI] run-make/thumb: add log for `cargo build` --- src/test/run-make/thumb-none-cortex-m/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/run-make/thumb-none-cortex-m/Makefile b/src/test/run-make/thumb-none-cortex-m/Makefile index e099f144b2c33..1403443707bc9 100644 --- a/src/test/run-make/thumb-none-cortex-m/Makefile +++ b/src/test/run-make/thumb-none-cortex-m/Makefile @@ -13,7 +13,7 @@ all: -cd $(TMP_DIR) && rm -rf $(CRATE) cd $(TMP_DIR) && $(CARGO) clone $(CRATE) --vers 0.5.0 pwd - cd $(TMP_DIR) && cd $(CRATE) && $(CARGO) build --target $(TARGET) -vv + cd $(TMP_DIR) && cd $(CRATE) && $(CARGO) build --target $(TARGET) -vv 2>&1 | tee cargo-fail-vv-9.2.log else all: From 5af644c77bddf446c555499fc4058a3657e00fbb Mon Sep 17 00:00:00 2001 From: Hideki Sekine Date: Tue, 7 Aug 2018 02:10:36 +0900 Subject: [PATCH 04/15] [CI] run-make/thumb: Add LD_LIBRARY_PATH experiment, etc. --- src/test/run-make/thumb-none-cortex-m/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/run-make/thumb-none-cortex-m/Makefile b/src/test/run-make/thumb-none-cortex-m/Makefile index 1403443707bc9..e995ffdfc4174 100644 --- a/src/test/run-make/thumb-none-cortex-m/Makefile +++ b/src/test/run-make/thumb-none-cortex-m/Makefile @@ -6,6 +6,7 @@ ifeq ($(TARGET),thumbv7m-none-eabi) #TMP_DIR := $(shell mktemp -d) TMP_DIR := /tmp/safe_place CRATE := cortex-m +LD_LIBRARY_PATH=/home/sekineh/rustme9/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/thumbv7m-none-eabi/lib all: env > env.txt @@ -13,7 +14,7 @@ all: -cd $(TMP_DIR) && rm -rf $(CRATE) cd $(TMP_DIR) && $(CARGO) clone $(CRATE) --vers 0.5.0 pwd - cd $(TMP_DIR) && cd $(CRATE) && $(CARGO) build --target $(TARGET) -vv 2>&1 | tee cargo-fail-vv-9.2.log + cd $(TMP_DIR) && cd $(CRATE) && env RUST_LOG=debug $(CARGO) build -j 1 --target $(TARGET) -vv 2>&1 | tee cargo-fail-vv-9.2.log else all: From 633832ffc2ba1c63b5ef797ab62bd7388c26ac4f Mon Sep 17 00:00:00 2001 From: Hideki Sekine Date: Wed, 8 Aug 2018 04:02:02 +0900 Subject: [PATCH 05/15] [CI] run-make/thumb: 1st working version with hacky workaround. --- src/test/run-make/thumb-none-cortex-m/Makefile | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/test/run-make/thumb-none-cortex-m/Makefile b/src/test/run-make/thumb-none-cortex-m/Makefile index e995ffdfc4174..a3540b3a3a9eb 100644 --- a/src/test/run-make/thumb-none-cortex-m/Makefile +++ b/src/test/run-make/thumb-none-cortex-m/Makefile @@ -1,20 +1,28 @@ -# Don't use the definitions -#-include ../../run-make-fulldeps/tools.mk +-include ../../run-make-fulldeps/tools.mk + +# How to run this +# $ ./x.py dist --target x86_64-unknown-linux-gnu,thumbv7m-none-eabi --exclude src/doc +# $ ./x.py test --target thumbv7m-none-eabi src/test/run-make ifeq ($(TARGET),thumbv7m-none-eabi) #TMP_DIR := $(shell mktemp -d) TMP_DIR := /tmp/safe_place CRATE := cortex-m -LD_LIBRARY_PATH=/home/sekineh/rustme9/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/thumbv7m-none-eabi/lib +RUSTC := $(RUSTC_ORIGINAL) +LD_LIBRARY_PATH := $(HOST_RPATH_DIR) +HOST := x86_64-unknown-linux-gnu all: + # Workaround for error[E0463]: can't find crate for `core` + -ln -sv $(SRC)/build/tmp/dist/rust-std-*-$(TARGET)/rust-std-$(TARGET)/lib/rustlib/$(TARGET)/lib/*.rlib $(SRC)/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/$(TARGET)/lib/ + # Workaround for error[E0463]: can't find crate for `std` + -ln -sv $(SRC)/build/tmp/dist/rust-std-*-$(HOST)/rust-std-$(HOST)/lib/rustlib/$(HOST)/lib/*.rlib $(SRC)/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/$(HOST)/lib/ env > env.txt mkdir -p $(TMP_DIR) -cd $(TMP_DIR) && rm -rf $(CRATE) cd $(TMP_DIR) && $(CARGO) clone $(CRATE) --vers 0.5.0 - pwd - cd $(TMP_DIR) && cd $(CRATE) && env RUST_LOG=debug $(CARGO) build -j 1 --target $(TARGET) -vv 2>&1 | tee cargo-fail-vv-9.2.log + cd $(TMP_DIR) && cd $(CRATE) && $(CARGO) build -j 1 --target $(TARGET) -v else all: From 7c438d473211df10fd1f11e3a7813e740e05db00 Mon Sep 17 00:00:00 2001 From: Hideki Sekine Date: Wed, 8 Aug 2018 18:29:17 +0900 Subject: [PATCH 06/15] [CI] run-make/thumb: remove hacky workaround. --- src/bootstrap/test.rs | 12 +++++++++++- src/test/run-make/thumb-none-cortex-m/Makefile | 5 ----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs index c86010379f495..d38a9594d86a0 100644 --- a/src/bootstrap/test.rs +++ b/src/bootstrap/test.rs @@ -975,9 +975,19 @@ impl Step for Compiletest { builder.ensure(compile::Rustc { compiler, target }); } - if builder.no_std(target) != Some(true) { + if builder.no_std(target) == Some(true) { + // the `test` doesn't compile for no-std targets + builder.ensure(compile::Std { compiler, target }); + } else { builder.ensure(compile::Test { compiler, target }); } + + if builder.no_std(target) == Some(true) { + // for no_std run-make (e.g. thumb*), + // we need a host compiler which is called by cargo. + builder.ensure(compile::Std { compiler, target: compiler.host }); + } + builder.ensure(native::TestHelpers { target }); builder.ensure(RemoteCopyLibs { compiler, target }); diff --git a/src/test/run-make/thumb-none-cortex-m/Makefile b/src/test/run-make/thumb-none-cortex-m/Makefile index a3540b3a3a9eb..38f437f150e0d 100644 --- a/src/test/run-make/thumb-none-cortex-m/Makefile +++ b/src/test/run-make/thumb-none-cortex-m/Makefile @@ -11,13 +11,8 @@ TMP_DIR := /tmp/safe_place CRATE := cortex-m RUSTC := $(RUSTC_ORIGINAL) LD_LIBRARY_PATH := $(HOST_RPATH_DIR) -HOST := x86_64-unknown-linux-gnu all: - # Workaround for error[E0463]: can't find crate for `core` - -ln -sv $(SRC)/build/tmp/dist/rust-std-*-$(TARGET)/rust-std-$(TARGET)/lib/rustlib/$(TARGET)/lib/*.rlib $(SRC)/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/$(TARGET)/lib/ - # Workaround for error[E0463]: can't find crate for `std` - -ln -sv $(SRC)/build/tmp/dist/rust-std-*-$(HOST)/rust-std-$(HOST)/lib/rustlib/$(HOST)/lib/*.rlib $(SRC)/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/$(HOST)/lib/ env > env.txt mkdir -p $(TMP_DIR) -cd $(TMP_DIR) && rm -rf $(CRATE) From bbbe4417d00d7a6a9384a648ce016c94fe96bb5c Mon Sep 17 00:00:00 2001 From: Hideki Sekine Date: Wed, 8 Aug 2018 18:41:05 +0900 Subject: [PATCH 07/15] [CI] run-make/thumb: tidy up variables --- src/test/run-make/thumb-none-cortex-m/Makefile | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/test/run-make/thumb-none-cortex-m/Makefile b/src/test/run-make/thumb-none-cortex-m/Makefile index 38f437f150e0d..a6a48c4249e24 100644 --- a/src/test/run-make/thumb-none-cortex-m/Makefile +++ b/src/test/run-make/thumb-none-cortex-m/Makefile @@ -1,23 +1,25 @@ -include ../../run-make-fulldeps/tools.mk # How to run this -# $ ./x.py dist --target x86_64-unknown-linux-gnu,thumbv7m-none-eabi --exclude src/doc # $ ./x.py test --target thumbv7m-none-eabi src/test/run-make ifeq ($(TARGET),thumbv7m-none-eabi) -#TMP_DIR := $(shell mktemp -d) -TMP_DIR := /tmp/safe_place +# We need to be outside of 'src' dir in order to run cargo +WORK_DIR := $(RUST_TEST_TMPDIR)/run-make/$(TARGET) + CRATE := cortex-m +CRATE_VER := 0.5.0 + RUSTC := $(RUSTC_ORIGINAL) LD_LIBRARY_PATH := $(HOST_RPATH_DIR) all: - env > env.txt - mkdir -p $(TMP_DIR) - -cd $(TMP_DIR) && rm -rf $(CRATE) - cd $(TMP_DIR) && $(CARGO) clone $(CRATE) --vers 0.5.0 - cd $(TMP_DIR) && cd $(CRATE) && $(CARGO) build -j 1 --target $(TARGET) -v + env + mkdir -p $(WORK_DIR) + -cd $(WORK_DIR) && rm -rf $(CRATE) + cd $(WORK_DIR) && $(CARGO) clone $(CRATE) --vers $(CRATE_VER) + cd $(WORK_DIR) && cd $(CRATE) && $(CARGO) build -j 1 --target $(TARGET) -v else all: From 6c526537b8ac43b4924285d5cc6b620adfc5b13d Mon Sep 17 00:00:00 2001 From: Hideki Sekine Date: Wed, 8 Aug 2018 19:17:00 +0900 Subject: [PATCH 08/15] [CI] run-make/thumb: support 4 thumb*-none-eabi* targets: - thumbv6m-none-eabi (Bare Cortex-M0, M0+, M1) - thumbv7em-none-eabi (Bare Cortex-M4, M7) - thumbv7em-none-eabihf (Bare Cortex-M4F, M7F, FPU, hardfloat) - thumbv7m-none-eabi (Bare Cortex-M3) --- src/test/run-make/thumb-none-cortex-m/Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/test/run-make/thumb-none-cortex-m/Makefile b/src/test/run-make/thumb-none-cortex-m/Makefile index a6a48c4249e24..a049fc5fb3fa5 100644 --- a/src/test/run-make/thumb-none-cortex-m/Makefile +++ b/src/test/run-make/thumb-none-cortex-m/Makefile @@ -1,9 +1,17 @@ -include ../../run-make-fulldeps/tools.mk # How to run this -# $ ./x.py test --target thumbv7m-none-eabi src/test/run-make +# $ ./x.py clean +# $ ./x.py test --target thumbv6m-none-eabi,thumbv7m-none-eabi src/test/run-make -ifeq ($(TARGET),thumbv7m-none-eabi) +# Supported targets: +# - thumbv6m-none-eabi (Bare Cortex-M0, M0+, M1) +# - thumbv7em-none-eabi (Bare Cortex-M4, M7) +# - thumbv7em-none-eabihf (Bare Cortex-M4F, M7F, FPU, hardfloat) +# - thumbv7m-none-eabi (Bare Cortex-M3) + +# See https://stackoverflow.com/questions/7656425/makefile-ifeq-logical-or +ifneq (,$(filter $(TARGET),thumbv6m-none-eabi thumbv7em-none-eabi thumbv7em-none-eabihf thumbv7m-none-eabi)) # We need to be outside of 'src' dir in order to run cargo WORK_DIR := $(RUST_TEST_TMPDIR)/run-make/$(TARGET) From 09854b0e56385a9ecb9caf1719a2dedb1bd8f2f8 Mon Sep 17 00:00:00 2001 From: Hideki Sekine Date: Wed, 8 Aug 2018 20:19:29 +0900 Subject: [PATCH 09/15] [CI] run-make/thumb: remove a trailing space. --- src/bootstrap/test.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs index d38a9594d86a0..f762d9414cff3 100644 --- a/src/bootstrap/test.rs +++ b/src/bootstrap/test.rs @@ -983,7 +983,7 @@ impl Step for Compiletest { } if builder.no_std(target) == Some(true) { - // for no_std run-make (e.g. thumb*), + // for no_std run-make (e.g. thumb*), // we need a host compiler which is called by cargo. builder.ensure(compile::Std { compiler, target: compiler.host }); } From c2b612ac0cfd5cbde7f094b12fe2431c8c5d085f Mon Sep 17 00:00:00 2001 From: Hideki Sekine Date: Fri, 10 Aug 2018 13:35:12 +0900 Subject: [PATCH 10/15] [CI] run-make/thumb: remove `-j 1` from cargo run --- src/test/run-make/thumb-none-cortex-m/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/run-make/thumb-none-cortex-m/Makefile b/src/test/run-make/thumb-none-cortex-m/Makefile index a049fc5fb3fa5..55b896bf57384 100644 --- a/src/test/run-make/thumb-none-cortex-m/Makefile +++ b/src/test/run-make/thumb-none-cortex-m/Makefile @@ -27,7 +27,7 @@ all: mkdir -p $(WORK_DIR) -cd $(WORK_DIR) && rm -rf $(CRATE) cd $(WORK_DIR) && $(CARGO) clone $(CRATE) --vers $(CRATE_VER) - cd $(WORK_DIR) && cd $(CRATE) && $(CARGO) build -j 1 --target $(TARGET) -v + cd $(WORK_DIR) && cd $(CRATE) && $(CARGO) build --target $(TARGET) -v else all: From 5c654f27b74e69bc78b4b33a7caf21bbcd9a23be Mon Sep 17 00:00:00 2001 From: Hideki Sekine Date: Tue, 14 Aug 2018 22:35:11 +0900 Subject: [PATCH 11/15] use a simple script instead of `cargo clone`. --- src/test/run-make/git_clone_sha1.sh | 23 +++++++++++++++++++ .../run-make/thumb-none-cortex-m/Makefile | 6 +++-- 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 src/test/run-make/git_clone_sha1.sh diff --git a/src/test/run-make/git_clone_sha1.sh b/src/test/run-make/git_clone_sha1.sh new file mode 100644 index 0000000000000..46ffd7eb14585 --- /dev/null +++ b/src/test/run-make/git_clone_sha1.sh @@ -0,0 +1,23 @@ +#!/bin/bash -x + +# Usage: $0 project_name url sha1 +# Get the crate with the specified sha1. +# +# all arguments are required. +# +# See below link for git usage: +# https://stackoverflow.com/questions/3489173/how-to-clone-git-repository-with-specific-revision-changeset/14091182#14091182 + +# Mandatory arguments: +PROJECT_NAME=$1 +URL=$2 +SHA1=$3 + +function err_exit() { + echo "ERROR:" $* + exit 1 +} + +git clone $URL $PROJECT_NAME || err_exit +cd $PROJECT_NAME || err_exit +git reset --hard $SHA1 || err_exit diff --git a/src/test/run-make/thumb-none-cortex-m/Makefile b/src/test/run-make/thumb-none-cortex-m/Makefile index 55b896bf57384..4e9a09e4e77b7 100644 --- a/src/test/run-make/thumb-none-cortex-m/Makefile +++ b/src/test/run-make/thumb-none-cortex-m/Makefile @@ -15,9 +15,11 @@ ifneq (,$(filter $(TARGET),thumbv6m-none-eabi thumbv7em-none-eabi thumbv7em-none # We need to be outside of 'src' dir in order to run cargo WORK_DIR := $(RUST_TEST_TMPDIR)/run-make/$(TARGET) +HERE := $(shell pwd) CRATE := cortex-m -CRATE_VER := 0.5.0 +CRATE_URL := https://github.com/rust-embedded/cortex-m +CRATE_SHA1 := a448e9156e2cb1e556e5441fd65426952ef4b927 # 0.5.0 RUSTC := $(RUSTC_ORIGINAL) LD_LIBRARY_PATH := $(HOST_RPATH_DIR) @@ -26,7 +28,7 @@ all: env mkdir -p $(WORK_DIR) -cd $(WORK_DIR) && rm -rf $(CRATE) - cd $(WORK_DIR) && $(CARGO) clone $(CRATE) --vers $(CRATE_VER) + cd $(WORK_DIR) && bash -x $(HERE)/../git_clone_sha1.sh $(CRATE) $(CRATE_URL) $(CRATE_SHA1) cd $(WORK_DIR) && cd $(CRATE) && $(CARGO) build --target $(TARGET) -v else From 62b3935298072c66a0052808ee55f93e4b7415b3 Mon Sep 17 00:00:00 2001 From: Hideki Sekine Date: Tue, 14 Aug 2018 22:38:27 +0900 Subject: [PATCH 12/15] use TMPDIR instead of custom directory. --- src/test/run-make/thumb-none-cortex-m/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/run-make/thumb-none-cortex-m/Makefile b/src/test/run-make/thumb-none-cortex-m/Makefile index 4e9a09e4e77b7..bee1b9c5f4681 100644 --- a/src/test/run-make/thumb-none-cortex-m/Makefile +++ b/src/test/run-make/thumb-none-cortex-m/Makefile @@ -14,7 +14,7 @@ ifneq (,$(filter $(TARGET),thumbv6m-none-eabi thumbv7em-none-eabi thumbv7em-none-eabihf thumbv7m-none-eabi)) # We need to be outside of 'src' dir in order to run cargo -WORK_DIR := $(RUST_TEST_TMPDIR)/run-make/$(TARGET) +WORK_DIR := $(TMPDIR) HERE := $(shell pwd) CRATE := cortex-m From 10395f31371880f8a2febc5e518ba142f283f707 Mon Sep 17 00:00:00 2001 From: Hideki Sekine Date: Tue, 14 Aug 2018 22:40:30 +0900 Subject: [PATCH 13/15] change variable definition order (basic thing first). --- src/test/run-make/thumb-none-cortex-m/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/test/run-make/thumb-none-cortex-m/Makefile b/src/test/run-make/thumb-none-cortex-m/Makefile index bee1b9c5f4681..a267016efc2e3 100644 --- a/src/test/run-make/thumb-none-cortex-m/Makefile +++ b/src/test/run-make/thumb-none-cortex-m/Makefile @@ -13,17 +13,18 @@ # See https://stackoverflow.com/questions/7656425/makefile-ifeq-logical-or ifneq (,$(filter $(TARGET),thumbv6m-none-eabi thumbv7em-none-eabi thumbv7em-none-eabihf thumbv7m-none-eabi)) +# For cargo setting +RUSTC := $(RUSTC_ORIGINAL) +LD_LIBRARY_PATH := $(HOST_RPATH_DIR) # We need to be outside of 'src' dir in order to run cargo WORK_DIR := $(TMPDIR) + HERE := $(shell pwd) CRATE := cortex-m CRATE_URL := https://github.com/rust-embedded/cortex-m CRATE_SHA1 := a448e9156e2cb1e556e5441fd65426952ef4b927 # 0.5.0 -RUSTC := $(RUSTC_ORIGINAL) -LD_LIBRARY_PATH := $(HOST_RPATH_DIR) - all: env mkdir -p $(WORK_DIR) From e9c2de89c114272fae337c19b5d6078080c8992b Mon Sep 17 00:00:00 2001 From: Hideki Sekine Date: Tue, 14 Aug 2018 22:54:56 +0900 Subject: [PATCH 14/15] shorten the url to fix tidy error. --- src/test/run-make/git_clone_sha1.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/run-make/git_clone_sha1.sh b/src/test/run-make/git_clone_sha1.sh index 46ffd7eb14585..626e4e4276121 100644 --- a/src/test/run-make/git_clone_sha1.sh +++ b/src/test/run-make/git_clone_sha1.sh @@ -6,7 +6,7 @@ # all arguments are required. # # See below link for git usage: -# https://stackoverflow.com/questions/3489173/how-to-clone-git-repository-with-specific-revision-changeset/14091182#14091182 +# https://stackoverflow.com/questions/3489173#14091182 # Mandatory arguments: PROJECT_NAME=$1 From ad78c2fc55b09624846c12f407b39852fbf573e6 Mon Sep 17 00:00:00 2001 From: Hideki Sekine Date: Tue, 14 Aug 2018 23:19:12 +0900 Subject: [PATCH 15/15] add copyright from template --- src/test/run-make/git_clone_sha1.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/test/run-make/git_clone_sha1.sh b/src/test/run-make/git_clone_sha1.sh index 626e4e4276121..efcc93c73a5d2 100644 --- a/src/test/run-make/git_clone_sha1.sh +++ b/src/test/run-make/git_clone_sha1.sh @@ -1,5 +1,15 @@ #!/bin/bash -x +# Copyright 2018 The Rust Project Developers. See the COPYRIGHT +# file at the top-level directory of this distribution and at +# http://rust-lang.org/COPYRIGHT. +# +# Licensed under the Apache License, Version 2.0 or the MIT license +# , at your +# option. This file may not be copied, modified, or distributed +# except according to those terms. + # Usage: $0 project_name url sha1 # Get the crate with the specified sha1. #