Skip to content

Commit

Permalink
Add a test project for elp bxl query
Browse files Browse the repository at this point in the history
Summary: Add an ELP test project demonstrating a complex include path, that compiles for BUCK, but results in unresolved includes for ELP.

Reviewed By: robertoaloi

Differential Revision: D57436907

fbshipit-source-id: 210452a4165c06a509e2a1820274911946674df7
  • Loading branch information
alanz authored and facebook-github-bot committed May 17, 2024
1 parent 2bb78a7 commit e755c76
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test_projects/buck_tests_2/.elp.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[buck]
enabled = true
build_deps = false
included_targets = [ "fbcode//whatsapp/elp/test_projects/buck_tests_2/util/app_a/..." ]
excluded_targets = [ "fbcode//whatsapp/elp/test_projects/buck_tests_2:test_elp_ignored" ]
source_root = "whatsapp/elp/test_projects/buck_tests_2"

[eqwalizer]
enable_all = false
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
% Include file from auto_gen_a
-define(AG, 2).
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-module(auto_gen_a).
1 change: 1 addition & 0 deletions test_projects/buck_tests_2/util/app_a/include/junk.hrl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
%% Test that a file can be excluded from the project model
3 changes: 3 additions & 0 deletions test_projects/buck_tests_2/util/app_a/src/app_a.erl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-module(app_a).

-include_lib("auto_gen_a/include/auto_gen_a.hrl").

0 comments on commit e755c76

Please sign in to comment.