[LU-3699] commit "LU-1606 api: compile and build lustreapi test" introduce a wrong test Created: 05/Aug/13  Updated: 05/Feb/15  Resolved: 05/Feb/15

Status: Closed
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.5.0
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Alexey Lyashkov Assignee: Richard Henwood (Inactive)
Resolution: Won't Fix Votes: 0
Labels: None
Environment:

any


Severity: 3
Rank (Obsolete): 9546

 Description   

http://git.whamcloud.com/?p=fs/lustre-release.git;a=commitdiff;h=4a3a9c5be5732d448c3c2d255b5b779918442f5d
introduce a new test

+test_74() { # LU-1606
+       for TESTPROG in $LUSTRE_TESTS_API_DIR/*.c; do
+               gcc -Wall -Werror $LUSTRE_TESTS_API_DIR/simple_test.c \
+                       -I$LUSTRE/include \
+                       -L$LUSTRE/utils -llustreapi ||
+                               error "client api broken"
+       done
+       cleanup || return $?
+}
+run_test 74 "Lustre client api program can compile and link"

but that code developed to compile all tests in TESTS_API_DIR, but compile just a simple_test only.

please fix it.



 Comments   
Comment by Alexey Lyashkov [ 05/Aug/13 ]

one more bug. did you really think test directory always writable? why $TMP dir don't used to store output result?
why gcc is hardcoded in opposite to use a cc (more posix compatible) ?

Comment by Richard Henwood (Inactive) [ 05/Feb/15 ]

18 months have passed and this isn't a high enough priority for me to keep open. Closing it as Won't Fix.

Generated at Sat Feb 10 01:36:09 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.