1*9880d681SAndroid Build Coastguard Worker; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext --compile-custom --compile-command="%python %s.py arg1 arg2" --output-prefix %t %s | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker; REQUIRES: loadable_module 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Worker; Test that arguments are correctly passed in --compile-command. The output 5*9880d681SAndroid Build Coastguard Worker; of bugpoint includes the output of the custom tool, so we just echo the args 6*9880d681SAndroid Build Coastguard Worker; in the tool and check here. 7*9880d681SAndroid Build Coastguard Worker 8*9880d681SAndroid Build Coastguard Worker; CHECK: Error: arg1 arg2 9*9880d681SAndroid Build Coastguard Worker 10*9880d681SAndroid Build Coastguard Workerdefine void @noop() { 11*9880d681SAndroid Build Coastguard Worker ret void 12*9880d681SAndroid Build Coastguard Worker} 13