forked from universal-ctags/ctags
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed 'misc/packcc/' changes from 4a7dbab60..43934f352
43934f352 Improve makefiles 29a2a1b06 Support gcc for IBM AIX 53aefcb47 Update README.md 6035daaba Change macro to check for size_t byte size 6015afca6 Fix universal-ctags#34 dfc33e6bf Merge pull request universal-ctags#33 from dolik-rce/test-improvements 8176c6492 fix uncrustify version check fa144ef7c properly quote load statements df95cbde7 refactor test utils 1ff5f9100 test --ascii option e54a94c03 avoid copying calc.peg into test directories a6a7ef719 test grammar dump (--debug option) f1323e5ec display coverage 223b264fa allow options in CC environment variable git-subtree-dir: misc/packcc git-subtree-split: 43934f35254c08f0827801f80bbbec0e03c69fe0
- Loading branch information
Showing
18 changed files
with
290 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
packcc | ||
packcc.exe | ||
*/parser.peg | ||
packcc.gcda | ||
packcc.gcno | ||
packcc.c.gcov | ||
*/parser.c | ||
*/parser.h | ||
*/parser | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env bats | ||
|
||
load "$TESTDIR/utils.sh" | ||
|
||
@test "Testing ascii.d - generation" { | ||
PACKCC_OPTS=("--ascii") | ||
test_generate | ||
} | ||
|
||
@test "Testing ascii.d - check code" { | ||
! in_source "pcc_get_char_as_utf32" | ||
} | ||
|
||
@test "Testing ascii.d - compilation" { | ||
test_compile | ||
} | ||
@test "Testing ascii.d - run" { | ||
run_for_input "ascii.d/input.txt" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
This | ||
is | ||
a | ||
test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FILE <- WORD / SPACE | ||
WORD <- [^ \r\n\t]+ { PRINT($0); } | ||
SPACE <- [ \r\n\t]+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This is a test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bats | ||
|
||
load "$TESTDIR/utils.sh" | ||
|
||
@test "Testing dump.d - generation" { | ||
run "$PACKCC" --debug -o "dump.d/parser" "$ROOTDIR/src/examples/calc.peg" 2>&1 | ||
check_output "dump.d/expected.txt" | ||
} |
Oops, something went wrong.