[clug] Updated version of VICI

Brenton Ross rossb at fwi.net.au
Mon May 7 09:11:41 UTC 2018


Duncan, 

On Mon, 2018-05-07 at 18:11 +1000, Duncan Roe via linux wrote:

> 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).

The reason it stopped is because it failed a test in cfi. In practice
there isn't much point in continuing if the infrastructure component is
broken.
In this case it appears to be a problem finding a plug-in library -
something that is used in a lot of the subsequent tests

> 
> >
> > 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.

This is how it should be set up once it has been built and installed. 
This part of the guide shows how it should be set up on a running system
- with VICI installed.
It's good to have someone else looking at the docs - if you
misunderstood, then its likely that others will as well, so I will have
to add a bit more context to those sections.

> 
> > 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.

OK, good.

> 
> > 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]
> 

This is strange. If you look at lines 48-50 of vici-dev.xml you will see
the paths it tries to find the library. Can you confirm that there is no
libplugtest.so in any of them - and do you have one, anywhere ???


> 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]
> 

Much the same as the above error - it has failed to find the plug-in
libraries.


> 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

Can you send me the end of $VICI/logs/test.log - from "Test of
vici-scripts ..." ?


> 
> 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'.
> 

Thanks for doing this testing - it is much appreciated.

Cheers
Brenton



More information about the linux mailing list