Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F140091119
D44548.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D44548.diff
View Options
Index: usr.bin/lorder/tests/lorder_test.sh
===================================================================
--- usr.bin/lorder/tests/lorder_test.sh
+++ usr.bin/lorder/tests/lorder_test.sh
@@ -9,6 +9,7 @@
atf_set descr "No arguments"
}
noargs_body() {
+ atf_require_prog lorder
atf_check -s exit:1 -e match:"^usage:" \
lorder
}
@@ -18,6 +19,9 @@
atf_set descr "One argument"
}
onearg_body() {
+ atf_require_prog cc
+ atf_require_prog nm
+ atf_require_prog lorder
echo "void a(void) { }" >a.c
cc -o a.o -c a.c
echo "a.o a.o" >output
@@ -30,6 +34,9 @@
atf_set descr "One argument"
}
dashdash_body() {
+ atf_require_prog cc
+ atf_require_prog nm
+ atf_require_prog lorder
echo "void a(void) { }" >a.c
cc -o a.o -c a.c
echo "a.o a.o" >output
@@ -42,6 +49,8 @@
atf_set descr "Nonexistent file"
}
nonexistent_body() {
+ atf_require_prog nm
+ atf_require_prog lorder
atf_check -s not-exit:0 -e match:"No such file" -o empty \
lorder nonexistent.o
}
@@ -51,6 +60,8 @@
atf_set descr "Invalid file"
}
invalid_body() {
+ atf_require_prog nm
+ atf_require_prog lorder
echo "not an object file" >invalid.o
atf_check -s not-exit:0 -e match:"not recognized" -o empty \
lorder invalid.o
@@ -61,6 +72,9 @@
atf_set descr "Order objects"
}
objects_body() {
+ atf_require_prog cc
+ atf_require_prog nm
+ atf_require_prog lorder
echo "void a(void) { }" >a.c
echo "void a(void); void b(void) { a(); }" >b.c
echo "void b(void); void c(void) { b(); }" >c.c
@@ -79,6 +93,10 @@
atf_set descr "Order archives"
}
archives_body() {
+ atf_require_prog cc
+ atf_require_prog ar
+ atf_require_prog nm
+ atf_require_prog lorder
echo "void a(void) { }" >a.c
echo "void a(void); void b(void) { a(); }" >b.c
echo "void b(void); void c(void) { b(); }" >c.c
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 21, 2:55 AM (35 m, 8 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27105735
Default Alt Text
D44548.diff (1 KB)
Attached To
Mode
D44548: lorder: skip tests if cc not available
Attached
Detach File
Event Timeline
Log In to Comment