]>
rtime.felk.cvut.cz Git - omk.git/log
Michal Sojka [Tue, 12 Nov 2013 15:46:45 +0000 (16:46 +0100)]
Rework libraries and shlibs tests
Michal Sojka [Tue, 12 Nov 2013 15:27:33 +0000 (16:27 +0100)]
Simplify program compilation
Now, PROGRAM_template does not use global variables and rule generation
($(eval $(call ...))) is not split over multiple places. Now, we simply
call $(eval $(call PROGRAM_template,...)) and all rules for program
compilation are generated.
Michal Sojka [Tue, 12 Nov 2013 15:21:18 +0000 (16:21 +0100)]
Rework test for programs
Michal Sojka [Tue, 12 Nov 2013 13:59:57 +0000 (14:59 +0100)]
Convert cmetric test to a single file
Michal Sojka [Tue, 12 Nov 2013 13:56:08 +0000 (14:56 +0100)]
Run tests directly with snippets instead of with the preprocessed rules
This simplifies debugging failed tests.
Michal Sojka [Tue, 12 Nov 2013 10:34:12 +0000 (11:34 +0100)]
Document AM_ variables instead of user variables
Michal Sojka [Tue, 12 Nov 2013 10:30:56 +0000 (11:30 +0100)]
Split Linux rules to user and kernel parts
I mostly care about userspace and this split will allow to simplify
the userspace part separately and thus make it more maintainable.
Michal Sojka [Tue, 12 Nov 2013 10:23:00 +0000 (11:23 +0100)]
Convert clean pass to "double-colon rules"
This simplifies things a bit.
Michal Sojka [Tue, 12 Nov 2013 09:57:49 +0000 (10:57 +0100)]
Remove OCERA specific stuff
Nobody uses this anymore and it only complicates the code.
Michal Sojka [Tue, 12 Nov 2013 09:50:34 +0000 (10:50 +0100)]
Correct comment
Michal Sojka [Tue, 12 Nov 2013 09:20:49 +0000 (10:20 +0100)]
Simplify CFLAGS test and check for CFLAGS overriding AM_CFLAGS
Michal Sojka [Tue, 12 Nov 2013 09:51:36 +0000 (10:51 +0100)]
Document AM_*FLAGS and relation to *FLAGS
Michal Sojka [Tue, 12 Nov 2013 09:14:30 +0000 (10:14 +0100)]
Put leaf makefile to the test by default
Michal Sojka [Tue, 12 Nov 2013 08:30:26 +0000 (09:30 +0100)]
Use synctex to ease documentation editting
Michal Sojka [Tue, 12 Nov 2013 08:20:10 +0000 (09:20 +0100)]
Update introduction
Michal Sojka [Tue, 12 Nov 2013 07:47:15 +0000 (08:47 +0100)]
Whitespace and copyright
Michal Sojka [Mon, 11 Nov 2013 11:15:50 +0000 (12:15 +0100)]
Run test first for Linux, then other platforms
Serious breakage will thus be detected faster.
Michal Sojka [Mon, 11 Nov 2013 10:30:06 +0000 (11:30 +0100)]
Omkize target always creates Makefile wherever Makefile.omk exists
Previously, it only rewrote existing Makefiles, which was not so useful
for new projects.
Added test for omkize target.
Michal Sojka [Mon, 28 Oct 2013 18:21:27 +0000 (19:21 +0100)]
Improve QT tests to check for the error fixed by Pavel recently
Michal Sojka [Mon, 28 Oct 2013 19:01:01 +0000 (20:01 +0100)]
Run subtests in a separate directory
This makes subtests easier to understand, because one need not to read
the whole test script to figure out in which state we actualy are.
Pavel Pisa [Fri, 25 Oct 2013 22:29:16 +0000 (00:29 +0200)]
QT: Fix bug in *.pro search which prevent QT_SUBDIRS to work for other than direct make invocation directory.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Michal Sojka [Fri, 4 Oct 2013 15:52:17 +0000 (17:52 +0200)]
Run one QT test verbosely
This is to allow manual inspection of which qmake was used. Wheter the
default one (qmake) or the one specified in QMAKE environment variable.
Michal Sojka [Fri, 4 Oct 2013 15:51:15 +0000 (17:51 +0200)]
Fix qt-qmake test that failed
The reason was recent removal of qt.files.
Michal Sojka [Fri, 4 Oct 2013 15:50:13 +0000 (17:50 +0200)]
Simplify manual execution of QT test
Now it is not necessary to specify OMK_RULES as it default to linux.
Michal Sojka [Fri, 4 Oct 2013 15:10:42 +0000 (17:10 +0200)]
Fix strange behaviour of $(dir) function
This fixes the error in the test suite
Michal Sojka [Fri, 4 Oct 2013 12:46:43 +0000 (14:46 +0200)]
FreeBSD compatibility: Don't use GNU specific cmp and install options
Michal Sojka [Tue, 30 Apr 2013 14:13:27 +0000 (16:13 +0200)]
Report failed commands in tests (under bash only)
Michal Sojka [Tue, 30 Apr 2013 14:13:02 +0000 (16:13 +0200)]
Put qt test to a single file
To make later changes easier.
Michal Sojka [Tue, 30 Apr 2013 14:10:34 +0000 (16:10 +0200)]
Fix failures in programs-cxxflags tests
Michal Sojka [Tue, 30 Apr 2013 14:06:37 +0000 (16:06 +0200)]
Fix failure in cmetric test
It was caused by undefined locale.
Michal Sojka [Tue, 30 Apr 2013 13:37:01 +0000 (15:37 +0200)]
Ignore temporary directories created by running tests
Michal Sojka [Tue, 30 Apr 2013 13:36:11 +0000 (15:36 +0200)]
Whitespace
Michal Sojka [Tue, 30 Apr 2013 13:35:50 +0000 (15:35 +0200)]
Fix error in test runner
This caused some errors to be not detected, because some tests were
not run.
Michal Sojka [Tue, 16 Oct 2012 02:28:58 +0000 (04:28 +0200)]
Obey CXXFLAGS variable when set
Michal Sojka [Tue, 16 Oct 2012 02:11:10 +0000 (04:11 +0200)]
Add test for CXXFLAGS
Michal Sojka [Mon, 9 Jul 2012 17:05:28 +0000 (19:05 +0200)]
Add support for .cpp extension of C++ sources
Michal Sojka [Mon, 9 Jul 2012 17:02:19 +0000 (19:02 +0200)]
Fix parallel make test
Michal Sojka [Mon, 9 Jul 2012 17:01:02 +0000 (19:01 +0200)]
Fix cmetric test
For some reason, sort order seems now different.
Pavel Pisa [Thu, 18 Aug 2011 16:50:26 +0000 (18:50 +0200)]
Linux 3.x kernal KBUILD can be examined by samerules as 2.6.x
Michal Sojka [Mon, 18 Jul 2011 13:02:28 +0000 (15:02 +0200)]
Report which version is too old
This was used when trying to run OMK on MAC OS.
Michal Sojka [Mon, 18 Jul 2011 12:59:28 +0000 (14:59 +0200)]
Add test for IDL
Michal Sojka [Mon, 18 Jul 2011 12:59:13 +0000 (14:59 +0200)]
tests: Only include .files file if it exists
Michal Sojka [Mon, 18 Jul 2011 12:18:38 +0000 (14:18 +0200)]
Attempt to fix IDL compilation for RTEMS
Pavel Pisa [Fri, 24 Jun 2011 13:49:53 +0000 (15:49 +0200)]
Linux kernel modules build support adapted for KBUILD 2.6.36+ changes.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Pavel Pisa [Sun, 29 May 2011 19:47:18 +0000 (21:47 +0200)]
Allow to define if default compiler provided startup file is linked into binary.
The use of standard startup files is required for MSP430
target, because there it is useless and complicated
to provide BSP specific one.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Pavel Pisa [Thu, 12 May 2011 13:09:26 +0000 (15:09 +0200)]
Allow use alternative to default system SED program - SED4OMK.
This is required on BSD system derivatives (i.e. Apple MAC OS X)
where default sed program or its default mode does not interpret
vertical bar/pipe as text alternatives separator.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Michal Sojka [Sat, 12 Mar 2011 16:04:43 +0000 (17:04 +0100)]
test: Update test_PROGRAMS test
The test is partially converted to wvtest API.
Michal Sojka [Sat, 12 Mar 2011 16:01:32 +0000 (17:01 +0100)]
rtems: Fix compilation of test_PROGRAMS
This variable was ignored in the previous version of the rules.
Michal Sojka [Sat, 12 Mar 2011 15:37:58 +0000 (16:37 +0100)]
test: Allow testing only a single type of rules
To do this, just run: make OMK_RULES=<type>
Michal Sojka [Sat, 12 Mar 2011 15:31:17 +0000 (16:31 +0100)]
Fix a few tests to work correctly with rtems rules
Michal Sojka [Sat, 12 Mar 2011 15:18:06 +0000 (16:18 +0100)]
Add fixes for keil51 rules to pass the tests
Michal Sojka [Sat, 12 Mar 2011 15:15:04 +0000 (16:15 +0100)]
test: Add check for cygpath command which is needed for testing keil16x rules
Michal Sojka [Sat, 12 Mar 2011 15:12:37 +0000 (16:12 +0100)]
Partially fix cmetric test for keil16x
Michal Sojka [Sat, 12 Mar 2011 11:07:04 +0000 (12:07 +0100)]
Tests can by run also by "make test"
Michal Sojka [Fri, 11 Mar 2011 23:08:52 +0000 (00:08 +0100)]
rtmes: Add fallback rule to create timestamp
When the build did not contain any library (such as in test suite), the
build failed because there was no rule to create the timestamp.
Michal Sojka [Fri, 11 Mar 2011 23:06:48 +0000 (00:06 +0100)]
rtems: Copy cmetric rules from linux snippet
The previous rules failed when /bin/sh did not support 'set -o pipefail'
(such as in case of dash).
Michal Sojka [Fri, 11 Mar 2011 22:19:56 +0000 (23:19 +0100)]
tests: Fix quoting in heredoc
Michal Sojka [Fri, 11 Mar 2011 21:18:40 +0000 (22:18 +0100)]
Fix the test to work correctly with RTEMS rules
Michal Sojka [Fri, 11 Mar 2011 21:07:37 +0000 (22:07 +0100)]
Add omk-get-var target to get values of OMK variables
This allows external scripts/programs to determine the
values of OMK variables such as RELATIVE_DIR etc.
Usage: make omk-get-var VAR=RELATIVE_DIR
Output: RELATIVE_DIR=some_dir
Michal Sojka [Fri, 11 Mar 2011 20:35:10 +0000 (21:35 +0100)]
Remove unused canttest macro
This macro was used by the old OMK test suite and it is not needed anymore.
Michal Sojka [Fri, 11 Mar 2011 20:29:05 +0000 (21:29 +0100)]
Use rules-specific environment for tests
For example, rtems rules require RTEMS_MAKEFILE_PATH variable to be set.
This and similar variables can be set by putting
export RTEMS_MAKEFILE_PATH=/opt/rtems4.9/powerpc-rtems4.9/icecube
into tests/rtems.env.
Michal Sojka [Sat, 12 Mar 2011 14:37:56 +0000 (15:37 +0100)]
wvtestrun produces nicer (and more readable) output
Michal Sojka [Sat, 12 Mar 2011 11:05:24 +0000 (12:05 +0100)]
wvtest: Visually delimit the output of failed tests
Michal Sojka [Fri, 11 Mar 2011 20:19:52 +0000 (21:19 +0100)]
test: Use bash's conditional expression
In OMK we use bash in all test script so we can use [[ ]] instead of
external command [ ].
Michal Sojka [Fri, 11 Mar 2011 15:15:53 +0000 (16:15 +0100)]
rtems: Add support for EXTRA_RULES_SUBDIRS
Michal Sojka [Fri, 11 Mar 2011 14:52:43 +0000 (15:52 +0100)]
rtems: Add support for IDL compilation
Michal Sojka [Fri, 25 Feb 2011 07:25:23 +0000 (08:25 +0100)]
wvtest: Output "Test function header"
Previously, when something in the test failed before the test output
its header, it looked like the error occurred in the previous test. Now,
the header is the very first thing generated by make so the user see the
proper name of the failed test.
Michal Sojka [Tue, 22 Feb 2011 16:14:55 +0000 (17:14 +0100)]
Document bin_SCRIPTS
Michal Sojka [Tue, 22 Feb 2011 16:07:11 +0000 (17:07 +0100)]
Fix compilation of manual
The manual includes files from test (to ensure that the documentation
matches the real behavior). Since we converted the tests to a different
format, we have to change the way how the files are included.
Michal Sojka [Tue, 22 Feb 2011 15:44:44 +0000 (16:44 +0100)]
Call submakes with --no-builtin-rules switch
This fixes the bug described in the previous commit. Additionally
we also get a performance gain of about 20% (measured on the total
execution time of the testsuite).
Michal Sojka [Tue, 22 Feb 2011 15:18:38 +0000 (16:18 +0100)]
Add test for bug in bin_SCRIPTS handling
when the name of a script is 'x' and there is a newer file 'x.c' in the
same directory then make applies built-in implicit rules and attempts
to recreate x from x.c. This should not happen.
Michal Sojka [Tue, 22 Feb 2011 15:14:58 +0000 (16:14 +0100)]
Do not use WVSTART in test scripts - it is called automatically
... in wvtest.sh
Michal Sojka [Mon, 21 Feb 2011 23:06:48 +0000 (00:06 +0100)]
First converted test to run under wvtest
Michal Sojka [Mon, 21 Feb 2011 22:27:21 +0000 (23:27 +0100)]
Run test scripts via bash to have better location reporting
Michal Sojka [Mon, 21 Feb 2011 22:26:11 +0000 (23:26 +0100)]
Run all tests via Makefile
Michal Sojka [Mon, 21 Feb 2011 22:21:51 +0000 (23:21 +0100)]
Fix functions.sh
Michal Sojka [Mon, 21 Feb 2011 22:16:09 +0000 (23:16 +0100)]
Fix omk_config test output to be nicer (with newlines)
Michal Sojka [Mon, 21 Feb 2011 22:15:42 +0000 (23:15 +0100)]
Include functions.sh from the correct directory
Michal Sojka [Mon, 21 Feb 2011 22:06:15 +0000 (23:06 +0100)]
Move all tests to the root directory
Michal Sojka [Mon, 21 Feb 2011 22:02:21 +0000 (23:02 +0100)]
Convert functions.sh to make the old scripts runable with wvtest
- recreate files
- signalize error via wvtest protocol
Michal Sojka [Mon, 21 Feb 2011 22:01:09 +0000 (23:01 +0100)]
Manually fix all_omk_subdirs test
Michal Sojka [Mon, 21 Feb 2011 21:48:02 +0000 (22:48 +0100)]
git shoule ignore generated Makefile.rules
Michal Sojka [Mon, 21 Feb 2011 21:45:52 +0000 (22:45 +0100)]
Rename runtest file according to the containing directory
In subdirectories some manual fixes were done.
Michal Sojka [Mon, 21 Feb 2011 21:33:51 +0000 (22:33 +0100)]
Convert test files to scripts that recreate them
(the next step to conversion to wvtest)
Michal Sojka [Mon, 21 Feb 2011 19:21:12 +0000 (20:21 +0100)]
Remove support for testing from snippets
As we are migrating the testing framework to wvtest we will not use these.
The idea is that condition similat to those deleted by this patch will
be present in the test scripts.
Michal Sojka [Mon, 21 Feb 2011 17:28:36 +0000 (18:28 +0100)]
Covnert tests to wvtest and add test for bin_scripts
Michal Sojka [Mon, 21 Feb 2011 16:06:42 +0000 (17:06 +0100)]
Add wvtest scripts
Michal Sojka [Mon, 21 Feb 2011 15:49:45 +0000 (16:49 +0100)]
Add bin_SCRIPTS variable that causes files to be compied to _compiled/bin
Michal Sojka [Thu, 17 Feb 2011 23:27:13 +0000 (00:27 +0100)]
wvtest: Set PATH and LD_LIBRARY_PATH as documented in manual
This change also implements quite and verbose variants of the make
output. The quite variant prints RUN and the short name of the
program/script to be run.
Michal Sojka [Thu, 17 Feb 2011 23:09:16 +0000 (00:09 +0100)]
doc: Complete wvtest documentation
Michal Sojka [Thu, 17 Feb 2011 23:08:10 +0000 (00:08 +0100)]
doc: Do not convert png images to pdf
It is not necessary as pdftex handles png images as well as pdfs.
Michal Sojka [Thu, 17 Feb 2011 20:39:28 +0000 (21:39 +0100)]
doc/Makefile: Correct dependencies on .version
Michal Sojka [Thu, 17 Feb 2011 20:26:07 +0000 (21:26 +0100)]
doc: Change how is the version number included
Now, we use @include command, whereas earlier we have edited the source
with sed. The current method has the advantage that error messages refer
directly to the source file instead of the automatically generated one.
Michal Sojka [Thu, 17 Feb 2011 16:25:53 +0000 (17:25 +0100)]
doc: Add skeleton of documentation for wvtest integration
Michal Sojka [Thu, 17 Feb 2011 16:25:09 +0000 (17:25 +0100)]
Update menus and nodes
Michal Sojka [Thu, 17 Feb 2011 16:24:38 +0000 (17:24 +0100)]
doc/Makefile: Remove bashism in clean target
Michal Sojka [Thu, 17 Feb 2011 15:56:35 +0000 (16:56 +0100)]
Clarify documentation about headers and libraries
Michal Sojka [Thu, 17 Feb 2011 15:56:07 +0000 (16:56 +0100)]
Update copyright
Michal Sojka [Fri, 11 Feb 2011 13:59:08 +0000 (14:59 +0100)]
qt: Set DEPENDPATH to generate dependencies on header files
Without this, when some OMK managed hadere has changed, qmake didn't
recompile the QT application and it caused problems. Now, qmake
correctly generate dependencies to headers in _compiled/include.
Michal Sojka [Fri, 10 Dec 2010 18:08:32 +0000 (19:08 +0100)]
wvtest: Link wvtest_PROGRAMS automatically with wvtest library
The name of the library can be specified by WVTEST_LIBRARY variable.
The default value is wvtest.