]> rtime.felk.cvut.cz Git - omk.git/log
omk.git
10 years agoRun tests directly with snippets instead of with the preprocessed rules
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.

10 years agoDocument AM_ variables instead of user variables
Michal Sojka [Tue, 12 Nov 2013 10:34:12 +0000 (11:34 +0100)]
Document AM_ variables instead of user variables

10 years agoSplit Linux rules to user and kernel parts
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.

10 years agoConvert clean pass to "double-colon rules"
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.

10 years agoRemove OCERA specific stuff
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.

10 years agoCorrect comment
Michal Sojka [Tue, 12 Nov 2013 09:50:34 +0000 (10:50 +0100)]
Correct comment

10 years agoSimplify CFLAGS test and check for CFLAGS overriding AM_CFLAGS
Michal Sojka [Tue, 12 Nov 2013 09:20:49 +0000 (10:20 +0100)]
Simplify CFLAGS test and check for CFLAGS overriding AM_CFLAGS

10 years agoDocument AM_*FLAGS and relation to *FLAGS
Michal Sojka [Tue, 12 Nov 2013 09:51:36 +0000 (10:51 +0100)]
Document AM_*FLAGS and relation to *FLAGS

10 years agoPut leaf makefile to the test by default
Michal Sojka [Tue, 12 Nov 2013 09:14:30 +0000 (10:14 +0100)]
Put leaf makefile to the test by default

10 years agoUse synctex to ease documentation editting
Michal Sojka [Tue, 12 Nov 2013 08:30:26 +0000 (09:30 +0100)]
Use synctex to ease documentation editting

10 years agoUpdate introduction
Michal Sojka [Tue, 12 Nov 2013 08:20:10 +0000 (09:20 +0100)]
Update introduction

10 years agoWhitespace and copyright
Michal Sojka [Tue, 12 Nov 2013 07:47:15 +0000 (08:47 +0100)]
Whitespace and copyright

10 years agoRun test first for Linux, then other platforms
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.

10 years agoOmkize target always creates Makefile wherever Makefile.omk exists
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.

10 years agoImprove QT tests to check for the error fixed by Pavel recently
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

10 years agoRun subtests in a separate directory
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.

10 years agoQT: Fix bug in *.pro search which prevent QT_SUBDIRS to work for other than direct...
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>
10 years agoRun one QT test verbosely
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.

10 years agoFix qt-qmake test that failed
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.

10 years agoSimplify manual execution of QT test
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.

10 years agoFix strange behaviour of $(dir) function
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

10 years agoFreeBSD compatibility: Don't use GNU specific cmp and install options
Michal Sojka [Fri, 4 Oct 2013 12:46:43 +0000 (14:46 +0200)]
FreeBSD compatibility: Don't use GNU specific cmp and install options

11 years agoReport failed commands in tests (under bash only)
Michal Sojka [Tue, 30 Apr 2013 14:13:27 +0000 (16:13 +0200)]
Report failed commands in tests (under bash only)

11 years agoPut qt test to a single file
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.

11 years agoFix failures in programs-cxxflags tests
Michal Sojka [Tue, 30 Apr 2013 14:10:34 +0000 (16:10 +0200)]
Fix failures in programs-cxxflags tests

11 years agoFix failure in cmetric test
Michal Sojka [Tue, 30 Apr 2013 14:06:37 +0000 (16:06 +0200)]
Fix failure in cmetric test

It was caused by undefined locale.

11 years agoIgnore temporary directories created by running tests
Michal Sojka [Tue, 30 Apr 2013 13:37:01 +0000 (15:37 +0200)]
Ignore temporary directories created by running tests

11 years agoWhitespace
Michal Sojka [Tue, 30 Apr 2013 13:36:11 +0000 (15:36 +0200)]
Whitespace

11 years agoFix error in test runner
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.

11 years agoObey CXXFLAGS variable when set
Michal Sojka [Tue, 16 Oct 2012 02:28:58 +0000 (04:28 +0200)]
Obey CXXFLAGS variable when set

11 years agoAdd test for CXXFLAGS
Michal Sojka [Tue, 16 Oct 2012 02:11:10 +0000 (04:11 +0200)]
Add test for CXXFLAGS

11 years agoAdd support for .cpp extension of C++ sources
Michal Sojka [Mon, 9 Jul 2012 17:05:28 +0000 (19:05 +0200)]
Add support for .cpp extension of C++ sources

11 years agoFix parallel make test
Michal Sojka [Mon, 9 Jul 2012 17:02:19 +0000 (19:02 +0200)]
Fix parallel make test

11 years agoFix cmetric 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.

12 years agoLinux 3.x kernal KBUILD can be examined by samerules as 2.6.x
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

12 years agoReport which version is too old
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.

12 years agoAdd test for IDL
Michal Sojka [Mon, 18 Jul 2011 12:59:28 +0000 (14:59 +0200)]
Add test for IDL

12 years agotests: Only include .files file if it exists
Michal Sojka [Mon, 18 Jul 2011 12:59:13 +0000 (14:59 +0200)]
tests: Only include .files file if it exists

12 years agoAttempt to fix IDL compilation for RTEMS
Michal Sojka [Mon, 18 Jul 2011 12:18:38 +0000 (14:18 +0200)]
Attempt to fix IDL compilation for RTEMS

12 years agoLinux kernel modules build support adapted for KBUILD 2.6.36+ changes.
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>
12 years agoAllow to define if default compiler provided startup file is linked into binary.
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>
13 years agoAllow use alternative to default system SED program - SED4OMK.
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>
13 years agotest: Update test_PROGRAMS test
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.

13 years agortems: Fix compilation of test_PROGRAMS
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.

13 years agotest: Allow testing only a single type of 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>

13 years agoFix a few tests to work correctly with rtems rules
Michal Sojka [Sat, 12 Mar 2011 15:31:17 +0000 (16:31 +0100)]
Fix a few tests to work correctly with rtems rules

13 years agoAdd fixes for keil51 rules to pass the tests
Michal Sojka [Sat, 12 Mar 2011 15:18:06 +0000 (16:18 +0100)]
Add fixes for keil51 rules to pass the tests

13 years agotest: Add check for cygpath command which is needed for testing keil16x rules
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

13 years agoPartially fix cmetric test for keil16x
Michal Sojka [Sat, 12 Mar 2011 15:12:37 +0000 (16:12 +0100)]
Partially fix cmetric test for keil16x

13 years agoTests can by run also by "make test"
Michal Sojka [Sat, 12 Mar 2011 11:07:04 +0000 (12:07 +0100)]
Tests can by run also by "make test"

13 years agortmes: Add fallback rule to create timestamp
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.

13 years agortems: Copy cmetric rules from linux snippet
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).

13 years agotests: Fix quoting in heredoc
Michal Sojka [Fri, 11 Mar 2011 22:19:56 +0000 (23:19 +0100)]
tests: Fix quoting in heredoc

13 years agoFix the test to work correctly with RTEMS rules
Michal Sojka [Fri, 11 Mar 2011 21:18:40 +0000 (22:18 +0100)]
Fix the test to work correctly with RTEMS rules

13 years agoAdd omk-get-var target to get values of OMK variables
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

13 years agoRemove unused canttest macro
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.

13 years agoUse rules-specific environment for tests
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.

13 years agowvtestrun produces nicer (and more readable) output
Michal Sojka [Sat, 12 Mar 2011 14:37:56 +0000 (15:37 +0100)]
wvtestrun produces nicer (and more readable) output

13 years agowvtest: Visually delimit the output of failed tests
Michal Sojka [Sat, 12 Mar 2011 11:05:24 +0000 (12:05 +0100)]
wvtest: Visually delimit the output of failed tests

13 years agotest: Use bash's conditional expression
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 [ ].

13 years agortems: Add support for EXTRA_RULES_SUBDIRS
Michal Sojka [Fri, 11 Mar 2011 15:15:53 +0000 (16:15 +0100)]
rtems: Add support for EXTRA_RULES_SUBDIRS

13 years agortems: Add support for IDL compilation
Michal Sojka [Fri, 11 Mar 2011 14:52:43 +0000 (15:52 +0100)]
rtems: Add support for IDL compilation

13 years agowvtest: Output "Test function header"
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.

13 years agoDocument bin_SCRIPTS
Michal Sojka [Tue, 22 Feb 2011 16:14:55 +0000 (17:14 +0100)]
Document bin_SCRIPTS

13 years agoFix compilation of manual
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.

13 years agoCall submakes with --no-builtin-rules switch
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).

13 years agoAdd test for bug in bin_SCRIPTS handling
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.

13 years agoDo not use WVSTART in test scripts - it is called automatically
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

13 years agoFirst converted test to run under wvtest
Michal Sojka [Mon, 21 Feb 2011 23:06:48 +0000 (00:06 +0100)]
First converted test to run under wvtest

13 years agoRun test scripts via bash to have better location reporting
Michal Sojka [Mon, 21 Feb 2011 22:27:21 +0000 (23:27 +0100)]
Run test scripts via bash to have better location reporting

13 years agoRun all tests via Makefile
Michal Sojka [Mon, 21 Feb 2011 22:26:11 +0000 (23:26 +0100)]
Run all tests via Makefile

13 years agoFix functions.sh
Michal Sojka [Mon, 21 Feb 2011 22:21:51 +0000 (23:21 +0100)]
Fix functions.sh

13 years agoFix omk_config test output to be nicer (with newlines)
Michal Sojka [Mon, 21 Feb 2011 22:16:09 +0000 (23:16 +0100)]
Fix omk_config test output to be nicer (with newlines)

13 years agoInclude functions.sh from the correct directory
Michal Sojka [Mon, 21 Feb 2011 22:15:42 +0000 (23:15 +0100)]
Include functions.sh from the correct directory

13 years agoMove all tests to the root directory
Michal Sojka [Mon, 21 Feb 2011 22:06:15 +0000 (23:06 +0100)]
Move all tests to the root directory

13 years agoConvert functions.sh to make the old scripts runable with wvtest
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

13 years agoManually fix all_omk_subdirs test
Michal Sojka [Mon, 21 Feb 2011 22:01:09 +0000 (23:01 +0100)]
Manually fix all_omk_subdirs test

13 years agogit shoule ignore generated Makefile.rules
Michal Sojka [Mon, 21 Feb 2011 21:48:02 +0000 (22:48 +0100)]
git shoule ignore generated Makefile.rules

13 years agoRename runtest file according to the containing directory
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.

13 years agoConvert test files to scripts that recreate them
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)

13 years agoRemove support for testing from snippets
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.

13 years agoCovnert tests to wvtest and add test for bin_scripts
Michal Sojka [Mon, 21 Feb 2011 17:28:36 +0000 (18:28 +0100)]
Covnert tests to wvtest and add test for bin_scripts

13 years agoAdd wvtest scripts
Michal Sojka [Mon, 21 Feb 2011 16:06:42 +0000 (17:06 +0100)]
Add wvtest scripts

13 years agoAdd bin_SCRIPTS variable that causes files to be compied to _compiled/bin
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

13 years agowvtest: Set PATH and LD_LIBRARY_PATH as documented in manual
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.

13 years agodoc: Complete wvtest documentation
Michal Sojka [Thu, 17 Feb 2011 23:09:16 +0000 (00:09 +0100)]
doc: Complete wvtest documentation

13 years agodoc: Do not convert png images to pdf
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.

13 years agodoc/Makefile: Correct dependencies on .version
Michal Sojka [Thu, 17 Feb 2011 20:39:28 +0000 (21:39 +0100)]
doc/Makefile: Correct dependencies on .version

13 years agodoc: Change how is the version number included
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.

13 years agodoc: Add skeleton of documentation for wvtest integration
Michal Sojka [Thu, 17 Feb 2011 16:25:53 +0000 (17:25 +0100)]
doc: Add skeleton of documentation for wvtest integration

13 years agoUpdate menus and nodes
Michal Sojka [Thu, 17 Feb 2011 16:25:09 +0000 (17:25 +0100)]
Update menus and nodes

13 years agodoc/Makefile: Remove bashism in clean target
Michal Sojka [Thu, 17 Feb 2011 16:24:38 +0000 (17:24 +0100)]
doc/Makefile: Remove bashism in clean target

13 years agoClarify documentation about headers and libraries
Michal Sojka [Thu, 17 Feb 2011 15:56:35 +0000 (16:56 +0100)]
Clarify documentation about headers and libraries

13 years agoUpdate copyright
Michal Sojka [Thu, 17 Feb 2011 15:56:07 +0000 (16:56 +0100)]
Update copyright

13 years agoqt: Set DEPENDPATH to generate dependencies on header files
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.

13 years agowvtest: Link wvtest_PROGRAMS automatically with wvtest library
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.

13 years agodoc: Reformulation of "Dependency Tracking"
Michal Sojka [Tue, 21 Sep 2010 20:38:24 +0000 (22:38 +0200)]
doc: Reformulation of "Dependency Tracking"

13 years agodoc: Minor correction
Michal Sojka [Tue, 21 Sep 2010 20:34:41 +0000 (22:34 +0200)]
doc: Minor correction

13 years agotester.py: Do not import nonexistent rulesdef
Michal Sojka [Thu, 29 Jul 2010 22:02:32 +0000 (00:02 +0200)]
tester.py: Do not import nonexistent rulesdef

rulesdef.py is not used for some time, but tester.py still depended on it.
This change recreates the data structuere provided by rulesdef.py on the
fly from the compiled Makefile.rules files.

I had a stale rulesdef.pyc on my laptop so I didn't discover this bug
until I recently upgraded to newer python version (2.6).

13 years agoRemove -C flag from install command
Michal Sojka [Thu, 29 Jul 2010 21:06:07 +0000 (23:06 +0200)]
Remove -C flag from install command

This flag is now useless, as the comparison must be (and is) done
before calling install. The -C flag was not available in older
versions of install (e.g. on Debian Lenny) so this change allows OMK
to be run on older systems.