Skip to content

Commit

Permalink
[tests] Add test to verify generation of public symbols with multiple…
Browse files Browse the repository at this point in the history
… references
  • Loading branch information
thoni56 committed Jun 6, 2024
1 parent 2cdf7ec commit 8f04b02
Show file tree
Hide file tree
Showing 171 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ COMMAND = ../../src/c-xref
ARGUMENTS = -xrefactory-II -create -errors -xrefrc .c-xrefrc -p $(CURDIR) -o output.tmp src

$(TEST): c_xrefrc_for_single_cxref_file
rm CXrefs
$(COMMAND) $(ARGUMENTS) | grep -v progress > output
cat CXrefs >> output
echo "<sync>" > expected
cat expected.cxrefs >> expected
-rm CXrefs
$(COMMAND) $(ARGUMENTS) | grep -v progress > log
awk '/vApplClass/ {print $$3}' CXrefs > output
$(VERIFY)

c_xrefrc_for_single_cxref_file: .c-xrefrc
Expand All @@ -17,3 +15,9 @@ ifeq ($(shell uname), Darwin)
else
sed -i 's/refnum=10/refnum=1/' .c-xrefrc
endif

.PHONY: expected
expected: COMMAND = ../../src/c-xref.orig
expected:
$(COMMAND) $(ARGUMENTS) | grep -v progress > /dev/null
awk '/vApplClass/ {print $$3}' CXrefs > expected
1 change: 1 addition & 0 deletions tests/test_generate_cxrefs/expected
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22u3102f269l59cr330l49cr331l51cr395l38cr6785f18l15cr31cr6941f1168l38cr53cr1773l48cr75cr2319l30cr47cr2371l23cr54cr2406l57cr2421l81cr11135f64l51cr8u14049f35l20cr22u21466f114l12cr29cr116l17cr34cr148l50cr70cr27896f54l29cr335l83cr4u36120f29l30cr
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 8f04b02

Please sign in to comment.