4848#include " absl/types/span.h"
4949#include " conformance/service.h"
5050#include " conformance/utils.h"
51+ #include " internal/runfiles.h"
5152#include " internal/testing.h"
5253#include " cel/expr/conformance/test/simple.pb.h"
5354#include " google/protobuf/io/zero_copy_stream_impl.h"
@@ -68,8 +69,6 @@ ABSL_FLAG(bool, select_optimization, false, "Enable select optimization.");
6869
6970namespace {
7071
71- using ::testing::IsEmpty;
72-
7372using cel::expr::conformance::test::SimpleTest;
7473using cel::expr::conformance::test::SimpleTestFile;
7574using google::api::expr::conformance::v1alpha1::CheckRequest;
@@ -78,6 +77,7 @@ using google::api::expr::conformance::v1alpha1::EvalRequest;
7877using google::api::expr::conformance::v1alpha1::EvalResponse;
7978using google::api::expr::conformance::v1alpha1::ParseRequest;
8079using google::api::expr::conformance::v1alpha1::ParseResponse;
80+ using ::testing::IsEmpty;
8181
8282google::rpc::Code ToGrpcCode (absl::StatusCode code) {
8383 return static_cast <google::rpc::Code>(code);
@@ -282,8 +282,9 @@ int main(int argc, char** argv) {
282282 }
283283 }
284284 for (int argi = 1 ; argi < argc; argi++) {
285+ std::string path = cel::internal::ResolveRunfilesPath (argv[argi]);
285286 ABSL_CHECK_OK (RegisterTestsFromFile (service, tests_to_skip,
286- absl::string_view (argv[argi] )));
287+ absl::string_view (path )));
287288 }
288289 }
289290 int exit_code = RUN_ALL_TESTS ();
0 commit comments