[llvm] r203472 - [bugpoint] Add testcase for r203343.
Adam Nemet
anemet at apple.com
Mon Mar 10 09:58:54 PDT 2014
Author: anemet
Date: Mon Mar 10 11:58:54 2014
New Revision: 203472
URL: http://llvm.org/viewvc/llvm-project?rev=203472&view=rev
Log:
[bugpoint] Add testcase for r203343.
Added:
llvm/trunk/test/BugPoint/compile-custom.ll (with props)
llvm/trunk/test/BugPoint/compile-custom.ll.py (with props)
Added: llvm/trunk/test/BugPoint/compile-custom.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/BugPoint/compile-custom.ll?rev=203472&view=auto
==============================================================================
--- llvm/trunk/test/BugPoint/compile-custom.ll (added)
+++ llvm/trunk/test/BugPoint/compile-custom.ll Mon Mar 10 11:58:54 2014
@@ -0,0 +1,12 @@
+; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext --compile-custom --compile-command="%s.py arg1 arg2" --output-prefix %t %s | FileCheck %s
+; REQUIRES: loadable_module
+
+; Test that arguments are correctly passed in --compile-command. The output
+; of bugpoint includes the output of the custom tool, so we just echo the args
+; in the tool and check here.
+
+; CHECK: Error: arg1 arg2
+
+define void @noop() {
+ ret void
+}
Propchange: llvm/trunk/test/BugPoint/compile-custom.ll
------------------------------------------------------------------------------
svn:executable = *
Added: llvm/trunk/test/BugPoint/compile-custom.ll.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/BugPoint/compile-custom.ll.py?rev=203472&view=auto
==============================================================================
--- llvm/trunk/test/BugPoint/compile-custom.ll.py (added)
+++ llvm/trunk/test/BugPoint/compile-custom.ll.py Mon Mar 10 11:58:54 2014
@@ -0,0 +1,10 @@
+#!/usr/bin/env python
+
+import sys
+
+# Currently any print-out from the custom tool is interpreted as a crash
+# (i.e. test is still interesting)
+
+print "Error: " + ' '.join(sys.argv[1:])
+
+sys.exit(1)
Propchange: llvm/trunk/test/BugPoint/compile-custom.ll.py
------------------------------------------------------------------------------
svn:executable = *
More information about the llvm-commits
mailing list