[clug] Updated version of VICI

Duncan Roe duncan_roe at optusnet.com.au
Mon May 7 08:11:43 UTC 2018


On Sat, May 05, 2018 at 12:30:15AM +1000, linux wrote: [...]
>
> Duncan,
>
> You do realise that VICI has 14 sub-projects, 8 of which have
> significant tests ? You have only reported on the first project (cfi).

I ran "make check" at the top level, expecting it would run all tests. But it
only ran cfi.

Instead ran 'make -i check' and 8 tests ran (appended).

>
> Its taken me a while to work out what happened, but I think I have it
> now:
> When you reset $VICI to point into the stage directory it meant that it
> was unable to find the configuration file that has the test stuff in it.

vici-user-guide.pdf says that $VICI should point to the dir containing bin,
docs, include and so on. The only such that I could find was $PWD/stage/usr.

> It is supposed to be using $VICI/src/persist/vici-dev.xml. This has all
> the plug-in stuff for testing.

I changed $VICI: export VICI=$PWD. This is contrary to the pdf, but seems to
work still, and now uses the right config.

> The make check defines the TEST_ENVIRONMENT variable to set the
> VICI_CONF variable to this file.
>
> Note that "make check" should work before "make install".
>
> You should not not need to go near the stage directory.
[...]

===================================

Here are the results from running 'make -i check'. This is a condensed copy of
the output from make, with test-suite.log files inserted appropriately

------8<------8<------8<------8<------8<------8<------8<------8<------

Making check in src
Making check in cfi
Making check in libcfi
make[3]: Nothing to be done for 'check'.
Making check in libcdi
make[3]: Nothing to be done for 'check'.
Making check in include
make[3]: Nothing to be done for 'check'.
Making check in logger
make[3]: Nothing to be done for 'check'.
Making check in trc2dot
make[3]: Nothing to be done for 'check'.
Making check in UnitTest
make  cditest plugintest cfitest
make  check-TESTS
PASS: cfitest
PASS: cditest
FAIL: plugintest
make[6]: Nothing to be done for 'all'.
============================================================================
Testsuite summary for vici 0.10
============================================================================
# TOTAL: 3
# PASS:  2
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See UnitTest/test-suite.log
============================================================================

15:09:02$ c src/cfi/UnitTest/test-suite.log
========================================
   vici 0.10: UnitTest/test-suite.log
========================================

# TOTAL: 3
# PASS:  2
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: plugintest
================

Using config: /tmp/DRbuilds/vici-0.10/src/persist/vici-dev.xml
Exception: Alert: Cannot find a file matching /VICI-CONFIG/PlugIns/PlugIn/name[text()='plugtest']/../path [xini.cpp:271]

Makefile:852: recipe for target 'test-suite.log' failed
make[5]: [test-suite.log] Error 1 (ignored)
Making check in gth
Making check in libgth
make[3]: Nothing to be done for 'check'.
Making check in libgui
make[3]: Nothing to be done for 'check'.
Making check in include
make[3]: Nothing to be done for 'check'.
Making check in TestProgram

15:09:11$ c ./src/ebnf/TestProgram/test-suite.log
===========================================
   vici 0.10: TestProgram/test-suite.log
===========================================

# TOTAL: 2
# PASS:  2
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

Making check in images
make[4]: Nothing to be done for 'check'.
make  gthTest
make  check-TESTS
../test-driver: line 95:  7988 Aborted                 (core dumped) "$@" > $log_file 2>&1
FAIL: gthTest
XINI Config is /tmp/DRbuilds/vici-0.10/src/persist/vici-dev.xml
terminate called after throwing an instance of 'VICI::vxt<VICI::vici_class>'
  what():  Alert: Cannot find a file matching /VICI-CONFIG/PlugIns/PlugIn/name[text()='gthtest']/../path [xini.cpp:271]

Making all in images
make[8]: Nothing to be done for 'all'.
make[8]: Nothing to be done for 'all-am'.
============================================================================
Testsuite summary for vici 0.10
============================================================================
# TOTAL: 1
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See TestProgram/test-suite.log
============================================================================

15:12:03$ c src/gth/TestProgram/test-suite.log
===========================================
   vici 0.10: TestProgram/test-suite.log
===========================================

# TOTAL: 1
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: gthTest
=============

Makefile:970: recipe for target 'test-suite.log' failed
make[6]: [test-suite.log] Error 1 (ignored)
Making check in editor
make[3]: Nothing to be done for 'check'.
Making check in persist
make[2]: Nothing to be done for 'check'.
Making check in interfaces
Making check in include
make[3]: Nothing to be done for 'check'.
Making check in libifstubs
make[3]: Nothing to be done for 'check'.
Making check in libcc
make[3]: Nothing to be done for 'check'.
Making check in libconfig
make[3]: Nothing to be done for 'check'.
Making check in Tests
make  cctest uctest
make  check-TESTS
PASS: cctest
PASS: uctest
make[6]: Nothing to be done for 'all'.
============================================================================
Testsuite summary for vici 0.10
============================================================================
# TOTAL: 2
# PASS:  2
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
============================================================================
Making check in ebnf
Making check in libebnf
make[3]: Nothing to be done for 'check'.
Making check in include
make[3]: Nothing to be done for 'check'.
Making check in TestProgram
make  ebnfTest ebnfIfTest
make  check-TESTS
PASS: ebnfTest
PASS: ebnfIfTest
make[6]: Nothing to be done for 'all'.
============================================================================
Testsuite summary for vici 0.10
============================================================================
# TOTAL: 2
# PASS:  2
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
============================================================================
Making check in syntax
Making check in libsyntax
make[3]: Nothing to be done for 'check'.
Making check in include
make[3]: Nothing to be done for 'check'.
Making check in demo
make[3]: Nothing to be done for 'check'.
Making check in TestProgram
make  syntaxGth
/usr/lib64/qt5/bin/moc syngth.h -o moc_syngth.cpp
make  check-TESTS
PASS: syntaxGth
make[6]: Nothing to be done for 'all'.
============================================================================
Testsuite summary for vici 0.10
============================================================================
# TOTAL: 1
# PASS:  1
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
============================================================================
Making check in admin
Making check in libadmin
make[3]: Nothing to be done for 'check'.
Making check in include
make[3]: Nothing to be done for 'check'.
Making check in src
make[3]: Nothing to be done for 'check'.
Making check in TestProgram
make  test-admin
make  check-TESTS
PASS: test-admin
make[6]: Nothing to be done for 'all'.
============================================================================
Testsuite summary for vici 0.10
============================================================================
# TOTAL: 1
# PASS:  1
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
============================================================================
Making check in search
Making check in libsearch
make[3]: Nothing to be done for 'check'.
Making check in include
make[3]: Nothing to be done for 'check'.
Making check in TestProgram
make  searchtest searchiftest
/usr/lib64/qt5/bin/moc searchtest.h -o moc_searchtest.cpp
/usr/lib64/qt5/bin/moc searchiftest.h -o moc_searchiftest.cpp
make  check-TESTS
PASS: searchtest
PASS: searchiftest
make[6]: Nothing to be done for 'all'.
============================================================================
Testsuite summary for vici 0.10
============================================================================
# TOTAL: 2
# PASS:  2
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
============================================================================
Making check in app
make[3]: Nothing to be done for 'check'.
Making check in command
Making check in libcmnd
make[3]: Nothing to be done for 'check'.
Making check in include
make[3]: Nothing to be done for 'check'.
Making check in TestProgram
make[3]: Nothing to be done for 'check'.
Making check in symbol
Making check in libsymbol
make[3]: Nothing to be done for 'check'.
Making check in include
make[3]: Nothing to be done for 'check'.
Making check in TestProgram
make[3]: Nothing to be done for 'check'.
Making check in canvas
Making check in libcanvas
make[3]: Nothing to be done for 'check'.
Making check in include
make[3]: Nothing to be done for 'check'.
Making check in TestProgram
make[3]: Nothing to be done for 'check'.
Making check in editor
Making check in libeditor
make[3]: Nothing to be done for 'check'.
Making check in include
make[3]: Nothing to be done for 'check'.
Making check in src
make[3]: Nothing to be done for 'check'.
Making check in interpreter
Making check in libvici
make[3]: Nothing to be done for 'check'.
Making check in include
make[3]: Nothing to be done for 'check'.
Making check in TestProgram
make  interptest scriptest
interptest-interptest.o: In function `ProcessTestCase::ProcessTestCase(std::string const&)':
interptest.cpp:(.text+0xf370): warning: the use of `tempnam' is dangerous, better use `mkstemp'
make  check-TESTS
PASS: interptest
FAIL: scriptest
make[6]: Nothing to be done for 'all'.
============================================================================
Testsuite summary for vici 0.10
============================================================================
# TOTAL: 2
# PASS:  1
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See TestProgram/test-suite.log
============================================================================

18:05:40$ c src/interpreter/TestProgram/test-suite.log
===========================================
   vici 0.10: TestProgram/test-suite.log
===========================================

# TOTAL: 2
# PASS:  1
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: scriptest
===============

Using config: /tmp/DRbuilds/vici-0.10/src/persist/vici-dev.xml
/tmp/DRbuilds/vici-0.10/src/interpreter/TestProgram/scripts
test001.vici
test006.vici
test008.vici
test004.vici
test009.vici
test010.vici
test002.vici
test007.vici
test003.vici
test005.vici
scriptest completed with errors

Makefile:802: recipe for target 'test-suite.log' failed
make[5]: [test-suite.log] Error 1 (ignored)
Making check in cli
make[3]: Nothing to be done for 'check'.
Making check in vici
Making check in include
make[3]: Nothing to be done for 'check'.
Making check in libvicigui
make[3]: Nothing to be done for 'check'.
Making check in src
make[3]: Nothing to be done for 'check'.
make[2]: Nothing to be done for 'check-am'.



More information about the linux mailing list