Code

Skip --merge-order test when built with NO_OPENSSL
authorJunio C Hamano <junkio@cox.net>
Fri, 29 Jul 2005 22:32:43 +0000 (15:32 -0700)
committerJunio C Hamano <junkio@cox.net>
Sat, 30 Jul 2005 00:21:53 +0000 (17:21 -0700)
When built with NO_OPENSSL, rev-list --merge-order does not
work, causing t6001 test to fail.  Detect that and skip this
test to allow continuing to the rest of the tests.

Signed-off-by: Junio C Hamano <junkio@cox.net>
t/t6001-rev-list-merge-order.sh

index 5dcb957ac0d058d1f97db0aefd88d432353900f9..7fe744e83457bd245ec5b6efb9b59395a95a2dff 100755 (executable)
@@ -8,6 +8,13 @@ test_description='Tests git-rev-list --merge-order functionality'
 . ./test-lib.sh
 . ../t6000lib.sh # t6xxx specific functions
 
+if git-rev-list --merge-order 2>&1 | grep 'OpenSSL not linked' >/dev/null
+then
+    test_expect_success 'skipping merge-order test' :
+    test_done
+    exit
+fi    
+
 # test-case specific test function
 check_adjacency()
 {