blob: 67ca0e4c7787a89feca2d748df3d98b5de03fdac [file] [log] [blame]
Brad Bishopc342db32019-05-15 21:57:59 -04001From 61939d2e552e7645ecd671fa01cf1c7a72caa82a Mon Sep 17 00:00:00 2001
2From: Mingli Yu <Mingli.Yu@windriver.com>
3Date: Fri, 12 Apr 2019 16:29:58 +0800
4Subject: [PATCH] skip the test when gcc not deployed
5
6Skip the tests which depend on gcc when
7gcc not deployed.
8
9Upstream-Status: Inappropriate [oe specific]
10
11Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
12---
13 tests/run-strip-g.sh | 2 ++
14 tests/run-strip-nothing.sh | 2 ++
15 2 files changed, 4 insertions(+)
16
17diff --git a/tests/run-strip-g.sh b/tests/run-strip-g.sh
18index 1303819..a943dec 100755
19--- a/tests/run-strip-g.sh
20+++ b/tests/run-strip-g.sh
21@@ -24,6 +24,8 @@
22
23 tempfiles a.out strip.out debug.out readelf.out
24
25+# skip the test if gcc deployed
26+which gcc || exit 77
27 echo Create debug a.out.
28 echo "int main() { return 1; }" | gcc -g -xc -
29
30diff --git a/tests/run-strip-nothing.sh b/tests/run-strip-nothing.sh
31index 914fdfb..d03f734 100755
32--- a/tests/run-strip-nothing.sh
33+++ b/tests/run-strip-nothing.sh
34@@ -22,6 +22,8 @@
35
36 tempfiles a.out strip.out debug.out
37
38+# skip the case if no gcc deployed
39+which gcc || exit 77
40 # Create no-debug a.out.
41 echo "int main() { return 1; }" | gcc -s -xc -
42
43--
442.7.4
45