summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Install runtests as a scriptVictor Westerhuis2021-12-061-1/+1
| | | | This installs it executable, as it should be.
* Delete test cases in out-of-tree buildVictor Westerhuis2021-12-055-0/+18
| | | | | | | | While 7e3709188833f72ca7a0808942d3a9da6464675f deleted too much, the fix in f9708db3960b95457c1efaf092efc65d3b486c9f actually deleted too little. The cleaning is now guarded by the same condition as the initial linking or copying.
* Fix misdeclared parameter in test fileVictor Westerhuis2021-12-051-5/+5
| | | | This causes complaints when building with LTO enabled.
* removed deletion of test cases from make cleanAdrian Thurston2021-12-045-8/+8
|
* Clean up moreVictor Westerhuis2021-12-046-3/+8
| | | | | Everything built by make should be cleaned up by make clean, according to the automake manual.
* Only build tests when running checkVictor Westerhuis2021-12-046-26/+15
| | | | | Change noinst_ targets to check_. Also move from BUILT_SOURCES to explicit dependencies to prevent running colm when not running tests.
* Make tests buildable in out-of-tree buildVictor Westerhuis2021-12-047-16/+62
| | | | | | Let libtool take care of the linking. Prefer linking to libcolm statically, like before. Add explicit include paths for files included from the corresponding source directory.
* Correct prototype for host call functions in testsVictor Westerhuis2021-11-292-16/+16
| | | | | | | | | | | All parameters for host calls declared in Colm source files are converted to value_t by Compiler::writeHostCall: https://github.com/adrian-thurston/colm/blob/fc61ecb3a22b89864916ec538eaf04840e7dd6b5/src/compiler.cc#L1109-L1117 This led to warnings when compiling with LTO. Correcting the prototypes and inserting the appropriate casts makes everything compile without warnings. The test suite still passes the same on my x86_64 machine.
* install data files to PREFIX/share/colm (pkgdata_DATA)Adrian Thurston2021-11-231-1/+1
| | | | | Was using data_DATA, which lands in PREFIX/share. This is a nuisance for packaging. refs #134
* fix: make string pointers from locals, not temp stringsAdrian Thurston2021-02-071-2/+5
| | | | fixes #127
* various refcount fixesAdrian Thurston2021-01-033-0/+103
| | | | | | - added downref when undoing a tree push - using correct opcode for undoing pushing stream - added an upref when sending back ignored trees
* updated expected output after bugfix in astring formattingAdrian Thurston2020-12-091-1/+1
|
* casting template type pointers to void* before passing to memmove funcsAdrian Thurston2020-12-091-7/+7
| | | | | | | More recent compilers will now warn about moving and copying non-trivial types, due to the potential for internal pointers. This is a risk the libraries always had, and it is expected to not put those things into the containers. Casting to void* removes the new warnings and better expresses what the code is doing.
* replced bare send syntax whith << and <- formsAdrian Thurston2020-07-182-4/+4
| | | | | | Elimintates associated ambiguity between extending statements and starting a new one. Bare send was a nice idea, but it is too much for the language to bear.
* added production redefinition testsAdrian Thurston2020-05-116-1/+146
|
* dist fixAdrian Thurston2020-05-091-3823/+1
|
* thinning out the test case set in rlhc.dAdrian Thurston2020-05-053822-1781086/+0
|
* added clean-local targets to remove workin dirsAdrian Thurston2020-05-055-0/+14
|
* use a static link with libcolm.a when running out of the source treeAdrian Thurston2020-03-221-1/+1
| | | | | | | | | | A dynamic link is proving complicated on OSX. When the package is configured to install to a new install location, but make install hasn't happened yet the link fails This may indicate we are not getting the code we think we are. We can eschew all these risks with a static link and reserve dynamic linking for when we are running from the installed location. This patch also includes some testing fixes
* updated github workflow for basic package name colm, added -e to test/dist.shAdrian Thurston2020-03-211-1/+1
|
* removed version.h from libfsm, updated the dist testAdrian Thurston2020-03-212-17/+14
|
* moved source files into commit repositoryAdrian Thurston2020-03-143-7/+7
|
* remove the ragel tests, export runtests for use by ragelAdrian Thurston2020-03-08176-28128/+3
|
* test suite: various updates to allow running on OSXAdrian Thurston2020-03-078-10/+16
|
* added missing open/close block to BREAK and NBREAKAdrian Thurston2020-01-011-0/+56
| | | | refs #102
* containing package versioned X and sub-packages X.YAdrian Thurston2019-12-311-4/+5
| | | | | Containing package (colm-suite) will start at version 1. This first release will contain colm 0.14 and ragel 7.0. refs #101
* colm testing: default expected output, report compilation failuresAdrian Thurston2019-12-292-6/+12
| | | | | | | | | | 1. If there are no expected output sections then default a section to empty and run at least one pass. 2. If the compilation failed then report this explicitly in the diff. This avoids the case accidentally passing due to an empty expected output. refs #96
* colm: fixes for backtracking in constructors and patternsAdrian Thurston2019-12-291-0/+44
| | | | | Backtracking in across literal blocks had a minor fault in constructors and was fully missing from patterns. Both fixed with this commit. refs #86
* ragel julia: upgrades tests to 1.0 of julia languageAdrian Thurston2019-12-283-7/+9
| | | | | | | | | | | | | | | | | The string class is no longer containing uints, now signed. Convert the input strings to vectors of uint8s, since the julia code generator currently supports only uint8. Use numerical representation of 'a' since we have no way to separate single lits from double lits and cast them in the julia test case translator Don't try to construct AbstractString, use String. Array constructor Array{Int, 1}(undef, 20) must take undef as first arg. Verify we have julia 1.0 or later in configure script. refs #91
* Created a common superclass for the export classesAdrian Thurston2019-12-272-13/+13
| | | | | | Every class representing Colm types has a program and tree pointer and some common functions. Moving this out allows us to pass the common base to the repeat iterator and eliminate the first argument to the iterator.
* left/right-independent iterator for repeats in top-down loadsAdrian Thurston2019-12-262-39/+58
| | | | | | | | | | Added an iterator for repeats that is independent of left/right recursion. Using it in colm load and tests. Allows us to remove the special case for repeat/list types in the export. The new iterator is implemented as a non-recursive generic tree iterator. refs #90
* testing: fixed EXTRA_DIST in test/aapl.d/Adrian Thurston2019-12-211-2/+1
|
* testing: added missing *.exp files to dist, don't configure with crackAdrian Thurston2019-12-211-0/+8
|
* fixed dist: removed timed from MakefileAdrian Thurston2019-12-201-1/+1
|
* testing: merged runtests and timed, removed system variation from some testsAdrian Thurston2019-12-208-87/+102
|
* testing: added a configure check for ASM testsAdrian Thurston2019-12-191-1/+2
| | | | | Addded a configure check to see if the ASM tests are appropriate. If we can build a basic ASM file with .rodata references, assume we can run the tests.
* testing: list the tests that failedAdrian Thurston2019-12-191-0/+2
|
* don't run objective-c tests if gnustep config is not availableAdrian Thurston2019-12-181-1/+10
|
* testing: propagate internal and test case failures to exit statusAdrian Thurston2019-12-182-6/+24
|
* updated EXTRA_DIST in test/ragel.d and fixed rlparse COLM refAdrian Thurston2019-11-292-19/+32
|
* revert "exclude ? from position 2+ of literal token"Adrian Thurston2019-11-282-12/+4
| | | | This reverts commit bd8de42f05975c262a6ecd156d8a6fbc50aa0de5.
* revert "updated test suite for exclusion of ? from pos 2+ of ` lits"Adrian Thurston2019-11-284-9/+13
| | | | This reverts commit 38f0495adf51690aa7b71800a907e2e59da49651.
* ragel tests: fixed hardcoding of first_finalAdrian Thurston2019-11-282-2/+2
| | | | | | | This was hardcoded from initial translation from C. Caused a failure once the patters were changed Also added strings3.rl to extra dist
* updated test suite for exclusion of ? from pos 2+ of ` litsAdrian Thurston2019-11-244-13/+9
|
* fixes for running the test suite out of a "make dist" tarballAdrian Thurston2019-11-2414-104/+5558
| | | | | Currently disabled the test dirs that are not automake based because they do not work with make dist.
* [minor] fix spelling of "indices"Hal Canary2019-11-121998-4886/+4886
|
* rust backend: accept lifetimes in rust_out grammarAdrian Thurston2019-11-101-0/+2
| | | | fixes #67
* exclude ? from position 2+ of literal tokenAdrian Thurston2019-11-072-4/+12
|
* test cases: don't rely on continue breaking from calling func loopAdrian Thurston2019-10-161-5/+4
| | | | | | Using continue when the loop is in a calling function works in some versions of bash, but not others. Not really sure what the status is, so just use a return to bail on the case.
* improved dependency specification in building colm progsAdrian Thurston2019-10-164-4/+4
|