aboutsummaryrefslogtreecommitdiff
path: root/tests2
Commit message (Collapse)AuthorAgeFilesLines
* tests2: move into testsgrischka2013-02-05112-3052/+0
|
* Fix [f]getc return value usage in 40_stdio testThomas Preud'homme2013-01-241-1/+1
| | | | | | Store [f]getc return value into an int instead of char, as per prototype. This fix an issue when char is unsigned (as is on arm for both tcc and gcc).
* build: fix VPATH buildsAkim Demaille2012-12-181-4/+5
| | | | | | | | | | * configure (fn_dirname): New. Use it to ensure the creation of proper symlinks to Makefiles. (config.mak): Define top_builddir and top_srcdir. (CPPFLAGS): Be sure to find the headers. * Makefile, lib/Makefile, tests/Makefile, tests2/Makefile: Adjust to set VPATH properly. Fix confusion between top_builddir and top_srcdir.
* Create a clean target for tests2/MakefileThomas Preud'homme2012-11-071-0/+3
| | | | | | the absence of a clean target in tests2/Makefile make the clean target in the main Makefile fails to complete. This commit create such a target which removes the only file created when tests pass successfully.
* Tests on left-shift type.Vincent Lefevre2012-07-063-1/+55
|
* tests: Minor adjustments selecting which tests are run on each platform.Milutin Jovanović2012-06-271-2/+10
| | | | | | | | | | | The intent is for 'make test' to pass cleanly on each platform, and thus easier spotting of regressions. Linux is best supported by most tests running and passing. Mac OSX passes mosts tests that do not make/link with binary files, due to lack of mach-o file support. !!! I have very limited knowledge of Windows platform, and cannot comment why all tests(1) fail. I have posted to newsgroup asking for someone to test Windows platform.
* tests: Added numerous tests.Milutin Jovanović2012-06-18110-0/+2986
The tests are taken almost verbatim from the open source project PicoC. It can be found at https://code.google.com/p/picoc/. The tests range from very simple/trivial ones to more complicated. My view is that the more tests the better. Without tests like this I was very reluctant to make any changes to tcc for the fear of breaking things. The tests pass on Win32, OSX, Linux x86 and x86_64. One or two tests fail on each platform due to differences in the runtime library.