[code] ./testall CUnit - A Unit testing framework for C - Version 2.1-0 http://cunit.sourceforge.net/ ---- filesystem initialization ----- Adding game dir: /usr/local/games/ufoai/base Could not load '/usr/local/games/ufoai/base/0maps.pk3' Could not load '/usr/local/games/ufoai/base/0models.pk3' Could not load '/usr/local/games/ufoai/base/0pics.pk3' Could not load '/usr/local/games/ufoai/base/0snd.pk3' Could not load '/usr/local/games/ufoai/base/0textures.pk3' Could not load '/usr/local/games/ufoai/base/0ufos.pk3' Adding game dir: ./base Could not load './base/0maps.pk3' Could not load './base/0models.pk3' Could not load './base/0pics.pk3' Could not load './base/0snd.pk3' Could not load './base/0textures.pk3' Could not load './base/0ufos.pk3' Adding game dir: /home/leon/.ufoai/2.4/base using /home/leon/.ufoai/2.4/base for writing Adding game dir: ./unittest ---- endianness initialization ----- found little endian system ------ server initialization ------- ----- network initialization ------- couldn't execute filesystem.cfg Suite: EventsTests Test: testRange ... passed Test: testEvents ... Remove pending event 1 Remove pending event 2 Remove pending event 3 Remove pending event 4 passed Test: testScheduler ... passed ---- filesystem initialization ----- Adding game dir: /usr/local/games/ufoai/base Could not load '/usr/local/games/ufoai/base/0maps.pk3' Could not load '/usr/local/games/ufoai/base/0models.pk3' Could not load '/usr/local/games/ufoai/base/0pics.pk3' Could not load '/usr/local/games/ufoai/base/0snd.pk3' Could not load '/usr/local/games/ufoai/base/0textures.pk3' Could not load '/usr/local/games/ufoai/base/0ufos.pk3' Adding game dir: ./base Could not load './base/0maps.pk3' Could not load './base/0models.pk3' Could not load './base/0pics.pk3' Could not load './base/0snd.pk3' Could not load './base/0textures.pk3' Could not load './base/0ufos.pk3' Adding game dir: /home/leon/.ufoai/2.4/base using /home/leon/.ufoai/2.4/base for writing Adding game dir: ./unittest ---- endianness initialization ----- found little endian system ------ server initialization ------- ----- network initialization ------- couldn't execute filesystem.cfg Suite: GenericTests Test: testStringHunks ... passed Test: testConstInt ... passed Test: testLinkedList ... passed Test: testLinkedListIterator ... passed Test: testLinkedListIteratorRemove ... Found string: test1 Found string: test2 Found string: test3 passed Test: testPrependStringList ... passed Test: testLinkedListStringSort ... passed Test: testFileSystemBuildLists ... passed Test: testInfoStrings ... Can't use keys or values with a \ passed Test: testCvars ... testGeneric_cvar is write protected. passed Test: testStringFunctions ... passed Test: testStringCopiers ... 10000 copies with Q_strncpyz: 11 ms 10000 copies with UTF8_strncpyz: 10 ms 10000 copies with Com_sprintf: 110 ms passed Test: testHttpHelperFunctions ... passed Test: testNetResolv ... passed Test: testUnsignedIntToBinary ... passed Test: testStringCheckFunctions ... passed Test: testEntitiesDef ... FAILED 1. src/tests/test_generic.c:574 - ED_Parse: Zero entity definitions found 2. src/tests/test_generic.c:576 - CU_ASSERT_TRUE(numEntityDefs > 0) 3. src/tests/test_generic.c:596 - CU_ASSERT_TRUE(worldSpawnFound) ---- filesystem initialization ----- Adding game dir: /usr/local/games/ufoai/base Could not load '/usr/local/games/ufoai/base/0maps.pk3' Could not load '/usr/local/games/ufoai/base/0models.pk3' Could not load '/usr/local/games/ufoai/base/0pics.pk3' Could not load '/usr/local/games/ufoai/base/0snd.pk3' Could not load '/usr/local/games/ufoai/base/0textures.pk3' Could not load '/usr/local/games/ufoai/base/0ufos.pk3' Adding game dir: ./base Could not load './base/0maps.pk3' Could not load './base/0models.pk3' Could not load './base/0pics.pk3' Could not load './base/0snd.pk3' Could not load './base/0textures.pk3' Could not load './base/0ufos.pk3' Adding game dir: /home/leon/.ufoai/2.4/base using /home/leon/.ufoai/2.4/base for writing Adding game dir: ./unittest ---- endianness initialization ----- found little endian system ------ server initialization ------- ----- network initialization ------- couldn't execute filesystem.cfg Suite: ParserTests Test: testParser ... passed Test: testParserWithFunctionScriptToken ... passed Test: testParserWithUnParse ... passed Test: testParserWithEntity ... passed Test: testParserCommonType ... FAILED 1. src/tests/test_parser.c:288 - CU_ASSERT_EQUAL(fvalue,1.1f) 2. src/tests/test_parser.c:294 - CU_ASSERT_EQUAL(fvalue,9.8f) ---- filesystem initialization ----- Adding game dir: /usr/local/games/ufoai/base Could not load '/usr/local/games/ufoai/base/0maps.pk3' Could not load '/usr/local/games/ufoai/base/0models.pk3' Could not load '/usr/local/games/ufoai/base/0pics.pk3' Could not load '/usr/local/games/ufoai/base/0snd.pk3' Could not load '/usr/local/games/ufoai/base/0textures.pk3' Could not load '/usr/local/games/ufoai/base/0ufos.pk3' Adding game dir: ./base Could not load './base/0maps.pk3' Could not load './base/0models.pk3' Could not load './base/0pics.pk3' Could not load './base/0snd.pk3' Could not load './base/0textures.pk3' Could not load './base/0ufos.pk3' Adding game dir: /home/leon/.ufoai/2.4/base using /home/leon/.ufoai/2.4/base for writing Adding game dir: ./unittest ---- endianness initialization ----- found little endian system ------ server initialization ------- ----- network initialization ------- couldn't execute filesystem.cfg Suite: UITests Test: testTimerDataStructure ... passed ---- filesystem initialization ----- Adding game dir: /usr/local/games/ufoai/base Could not load '/usr/local/games/ufoai/base/0maps.pk3' Could not load '/usr/local/games/ufoai/base/0models.pk3' Could not load '/usr/local/games/ufoai/base/0pics.pk3' Could not load '/usr/local/games/ufoai/base/0snd.pk3' Could not load '/usr/local/games/ufoai/base/0textures.pk3' Could not load '/usr/local/games/ufoai/base/0ufos.pk3' Adding game dir: ./base Could not load './base/0maps.pk3' Could not load './base/0models.pk3' Could not load './base/0pics.pk3' Could not load './base/0snd.pk3' Could not load './base/0textures.pk3' Could not load './base/0ufos.pk3' Adding game dir: /home/leon/.ufoai/2.4/base using /home/leon/.ufoai/2.4/base for writing Adding game dir: ./unittest ---- endianness initialization ----- found little endian system ------ server initialization ------- ----- network initialization ------- couldn't execute filesystem.cfg Allocate 3 megabytes for the ui hunk Suite: UILevel2Tests Test: testKnownBehaviours ... passed Test: testActions ... Load "ufos/uitest/test_action.ufo": 1 script file(s) R_GetFont: Could not find font: f_small. Return NULL R_GetFont: Could not find font: f_small. Return NULL R_GetFont: Could not find font: f_small. Return NULL R_GetFont: Could not find font: f_small. Return NULL ---> passed Test: testActions2 ... Load "ufos/uitest/test_action2.ufo": 1 script file(s) ---> passed Test: testConditions ... Load "ufos/uitest/test_condition.ufo": 1 script file(s) node:root.testNodeFooString@string aaabbb node:root.testNodeFooString2@string aaabbbccc ---> passed Test: testFunctions ... Load "ufos/uitest/test_function.ufo": 1 script file(s) ---> passed Test: testSetters ... Load "ufos/uitest/test_setter.ufo": 1 script file(s) ---> passed Test: testCvars ... Load "ufos/uitest/test_cvar.ufo": 1 script file(s) ---> passed Test: testComponents ... Load "ufos/uitest/test_component.ufo": 1 script file(s) ---> passed Test: testInheritedConfunc ... Load "ufos/uitest/test_inheritedconfunc.ufo": 1 script file(s) ---> passed Test: testRuntimeError ... Load "ufos/uitest/test_runtimeerror.ufo": 1 script file(s) UI_NodeSetPropertyFromRAW: type 32768 expected, but @min type 33029 found. Property setter to 'test_runtimeerror.foo1@min' skipped UI_ExecuteSetAction: property "root.foo1@foo__nothing__bar" doesn't exist (source: test_runtimeerror) UI_GetFloatFromParam: Property wasn't found; '0' returned UI_GetNodeFromExpression: Node 'root.foo__nothing__1@min' wasn't found; NULL returned UI_GetFloatFromParam: Node wasn't found; '0' UI_ParseSetAction: sprite 'icons/bordered_magnifying_glass' not found (test_runtimeerror.foo2) ok ---> passed Test: testVideo ... Load "ufos/uitest/test_video.ufo": 1 script file(s) ---> passed Test: testBinding ... passed Test: testCvarListener ... Load "ufos/uitest/test_cvarlistener.ufo": 1 script file(s) Could not register change listener, cvar 'test_cvarlistener_cvar2' wasn't found Node test_cvarlistener.test_cvarlistener_cvar2 is not binded: cvar test_cvarlistener_cvar2 not found Could not register change listener, cvar 'test_cvarlistener_cvar3' wasn't found Node test_cvarlistener.test_cvarlistener_cvar3 is not binded: cvar test_cvarlistener_cvar3 not found Could not register change listener, cvar 'test_cvarlistener_cvar3' wasn't found Node test_cvarlistener.foo1.test_cvarlistener_cvar3 is not binded: cvar test_cvarlistener_cvar3 not found Could not register change listener, cvar 'test_cvarlistener_cvar3' wasn't found Node test_cvarlistener.foo2.test_cvarlistener_cvar3 is not binded: cvar test_cvarlistener_cvar3 not found ---> passed Test: testSamples ... Load "ufos/uisample/*.ufo": 18 script file(s) UI_ParseProperty: sprite 'buttons/blue2-1' not found (object button_1) UI_ParseProperty: sprite 'icons/number_1' not found (object button_1) UI_ParseProperty: sprite 'buttons/blue2-1' not found (object button_2) UI_ParseProperty: sprite 'icons/number_2' not found (object button_2) UI_ParseProperty: sprite 'buttons/blue2-1' not found (object button_3) UI_ParseProperty: sprite 'icons/number_3' not found (object button_3) UI_ParseProperty: sprite 'buttons/blue2-1' not found (object button_4) UI_ParseProperty: sprite 'icons/number_4' not found (object button_4) UI_ParseProperty: sprite 'buttons/blue2-1' not found (object button_5) UI_ParseProperty: sprite 'icons/number_5' not found (object button_5) UI_ParseProperty: sprite 'buttons/blue2-1' not found (object button_6) UI_ParseProperty: sprite 'icons/number_6' not found (object button_6) UI_ParseProperty: sprite 'buttons/blue2-1' not found (object button_7) UI_ParseProperty: sprite 'icons/number_7' not found (object button_7) UI_ParseProperty: sprite 'buttons/blue2-1' not found (object button_8) UI_ParseProperty: sprite 'icons/number_8' not found (object button_8) UI_ParseProperty: sprite 'test/spinner' not found (object myFunkySpinner) UI_ParseProperty: sprite 'test/spinner_top' not found (object myFunkySpinner) UI_ParseProperty: sprite 'test/spinner_bottom' not found (object myFunkySpinner) passed ---- filesystem initialization ----- Adding game dir: /usr/local/games/ufoai/base Could not load '/usr/local/games/ufoai/base/0maps.pk3' Could not load '/usr/local/games/ufoai/base/0models.pk3' Could not load '/usr/local/games/ufoai/base/0pics.pk3' Could not load '/usr/local/games/ufoai/base/0snd.pk3' Could not load '/usr/local/games/ufoai/base/0textures.pk3' Could not load '/usr/local/games/ufoai/base/0ufos.pk3' Adding game dir: ./base Could not load './base/0maps.pk3' Could not load './base/0models.pk3' Could not load './base/0pics.pk3' Could not load './base/0snd.pk3' Could not load './base/0textures.pk3' Could not load './base/0ufos.pk3' Adding game dir: /home/leon/.ufoai/2.4/base using /home/leon/.ufoai/2.4/base for writing Adding game dir: ./unittest ---- endianness initialization ----- found little endian system ------ server initialization ------- ----- network initialization ------- couldn't execute filesystem.cfg SDL_ttf version 2.0.11 - we need at least 2.0.7 Allocate 3 megabytes for the ui hunk ----------- parse scripts ---------- 0 script files ======start====== OS Info: Linux leon-linux-aspire-one 3.5.0-22-generic #34-Ubuntu SMP Tue Jan 8 21:41:11 UTC 2013 i686 Linux RELEASE, cpu: IA-32, version: 2.4 ./testall[0x81830f3] ./testall[0x8182e32] ./testall[0x80f14d3] ./testall[0x805e044] /usr/lib/libcunit.so.1(+0x2881)[0xb774c881] /usr/lib/libcunit.so.1(CU_run_all_tests+0x97)[0xb774cdc7] /usr/lib/libcunit.so.1(CU_basic_run_tests+0x47)[0xb774e9a7] ./testall[0x804f69e] /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0xb717a4d3] ./testall[0x804e9c1] Loaded libraries: [0x3077873664x-0x3077918940x] /usr/lib/libcunit.so.1 [0x3077705728x-0x3077865920x] /lib/i386-linux-gnu/libpng12.so.0 [0x3077550080x-0x3077694168x] /usr/lib/i386-linux-gnu/libjpeg.so.62 [0x3077517312x-0x3077540508x] /usr/lib/i386-linux-gnu/libSDL_ttf-2.0.so.0 [0x3076890624x-0x3077517112x] /usr/lib/i386-linux-gnu/libSDL-1.2.so.0 [0x3076562944x-0x3076887424x] /usr/lib/i386-linux-gnu/libSDL_mixer-1.2.so.0 [0x3076177920x-0x3076566796x] /usr/lib/i386-linux-gnu/mesa/libGL.so.1 [0x3075768320x-0x3076178196x] /usr/lib/i386-linux-gnu/libcurl.so.4 [0x3075411968x-0x3075763964x] /usr/lib/i386-linux-gnu/libtheora.so.0 [0x3075379200x-0x3075402268x] /usr/lib/i386-linux-gnu/libogg.so.0 [0x3074060288x-0x3075380468x] /usr/lib/i386-linux-gnu/libxvidcore.so.4 [0x3073880064x-0x3074050692x] /usr/lib/i386-linux-gnu/libvorbis.so.0 [0x3073695744x-0x3073868911x] /lib/i386-linux-gnu/libm.so.6 [0x3073658880x-0x3073691540x] /usr/lib/libmxml.so.1 [0x3073548288x-0x3073654483x] /lib/i386-linux-gnu/libpthread.so.0 [0x3073527808x-0x3073538003x] /lib/i386-linux-gnu/libdl.so.2 [0x3073425408x-0x3073519544x] /lib/i386-linux-gnu/libz.so.1 [0x3071676416x-0x3073453427x] /lib/i386-linux-gnu/libc.so.6 [0x3071045632x-0x3071690412x] /usr/lib/i386-linux-gnu/libfreetype.so.6 [0x3070054400x-0x3071071688x] /usr/lib/i386-linux-gnu/libasound.so.2 [0x3070033920x-0x3070045528x] /usr/lib/i386-linux-gnu/libpulse-simple.so.0 [0x3069714432x-0x3070032948x] /usr/lib/i386-linux-gnu/libpulse.so.0 [0x3068440576x-0x3069725004x] /usr/lib/i386-linux-gnu/libX11.so.6 [0x3068366848x-0x3068435752x] /usr/lib/i386-linux-gnu/libXext.so.6 [0x3067531264x-0x3068364100x] /usr/lib/i386-linux-gnu/libcaca.so.0 [0x3067211776x-0x3067529704x] /usr/lib/i386-linux-gnu/libmikmod.so.2 [0x3067170816x-0x3067202188x] /usr/lib/i386-linux-gnu/libvorbisfile.so.3 [0x3066839040x-0x3067165828x] /usr/lib/i386-linux-gnu/libFLAC.so.8 [0x3066740736x-0x3066829768x] /usr/lib/i386-linux-gnu/libmad.so.0 [0x3066650624x-0x3066742716x] /usr/lib/i386-linux-gnu/libglapi.so.0 [0x3066634240x-0x3066640528x] /usr/lib/i386-linux-gnu/libXdamage.so.1 [0x3066605568x-0x3066623300x] /usr/lib/i386-linux-gnu/libXfixes.so.3 [0x3066589184x-0x3066591568x] /usr/lib/i386-linux-gnu/libX11-xcb.so.1 [0x3066490880x-0x3066590496x] /usr/lib/i386-linux-gnu/libxcb-glx.so.0 [0x3066351616x-0x3066485104x] /usr/lib/i386-linux-gnu/libxcb.so.1 [0x3066327040x-0x3066344096x] /usr/lib/i386-linux-gnu/libXxf86vm.so.1 [0x3066273792x-0x3066321368x] /usr/lib/i386-linux-gnu/libdrm.so.2 [0x3066060800x-0x3066264188x] /usr/lib/i386-linux-gnu/libidn.so.11 [0x3065999360x-0x3066052784x] /usr/lib/i386-linux-gnu/liblber-2.4.so.2 [0x3065667584x-0x3066002848x] /usr/lib/i386-linux-gnu/libldap_r-2.4.so.2 [0x3065630720x-0x3065661243x] /lib/i386-linux-gnu/librt.so.1 [0x3065380864x-0x3065630024x] /usr/lib/i386-linux-gnu/libgssapi_krb5.so.2 [0x3065024512x-0x3065376868x] /lib/i386-linux-gnu/libssl.so.1.0.0 [0x3063271424x-0x3065114748x] /lib/i386-linux-gnu/libcrypto.so.1.0.0 [0x3063160832x-0x3063265508x] /usr/lib/i386-linux-gnu/librtmp.so.0 [0x3078062080x-0x3078196564x] /lib/ld-linux.so.2 [0x3062751232x-0x3063160592x] /usr/lib/i386-linux-gnu/pulseaudio/libpulsecommon-2.1.so [0x3062706176x-0x3062738068x] /usr/lib/i386-linux-gnu/libjson.so.0 [0x3062403072x-0x3062708116x] /lib/i386-linux-gnu/libdbus-1.so.3 [0x3061161984x-0x3062423156x] /lib/i386-linux-gnu/libslang.so.2 [0x3060961280x-0x3061156052x] /lib/i386-linux-gnu/libncursesw.so.5 [0x3060834304x-0x3060962868x] /lib/i386-linux-gnu/libtinfo.so.5 [0x3060813824x-0x3060822240x] /usr/lib/i386-linux-gnu/libXau.so.6 [0x3060785152x-0x3060804080x] /usr/lib/i386-linux-gnu/libXdmcp.so.6 [0x3060690944x-0x3060782567x] /lib/i386-linux-gnu/libresolv.so.2 [0x3060580352x-0x3060686716x] /usr/lib/i386-linux-gnu/libsasl2.so.2 [0x3060334592x-0x3060576968x] /usr/lib/i386-linux-gnu/libgssapi.so.3 [0x3059527680x-0x3060350584x] /usr/lib/i386-linux-gnu/libgnutls.so.26 [0x3058987008x-0x3059532628x] /lib/i386-linux-gnu/libgcrypt.so.11 [0x3058143232x-0x3059015508x] /usr/lib/i386-linux-gnu/libkrb5.so.3 [0x3057979392x-0x3058143524x] /usr/lib/i386-linux-gnu/libk5crypto.so.3 [0x3057958912x-0x3057968869x] /lib/i386-linux-gnu/libcom_err.so.2 [0x3057917952x-0x3057947168x] /usr/lib/i386-linux-gnu/libkrb5support.so.0 [0x3057876992x-0x3057911036x] /lib/i386-linux-gnu/libwrap.so.0 [0x3057401856x-0x3057879476x] /usr/lib/i386-linux-gnu/libsndfile.so.1 [0x3057373184x-0x3057391812x] /usr/lib/i386-linux-gnu/libasyncns.so.0 [0x3057340416x-0x3057364440x] /usr/lib/i386-linux-gnu/libheimntlm.so.0 [0x3056807936x-0x3057341324x] /usr/lib/i386-linux-gnu/libkrb5.so.26 [0x3056156672x-0x3056816920x] /usr/lib/i386-linux-gnu/libasn1.so.8 [0x3055943680x-0x3056156820x] /usr/lib/i386-linux-gnu/libhcrypto.so.4 [0x3055857664x-0x3055939364x] /usr/lib/i386-linux-gnu/libroken.so.18 [0x3055783936x-0x3055849556x] /usr/lib/i386-linux-gnu/libtasn1.so.3 [0x3055697920x-0x3055772120x] /usr/lib/i386-linux-gnu/libp11-kit.so.0 [0x3055677440x-0x3055689360x] /lib/i386-linux-gnu/libgpg-error.so.0 [0x3055661056x-0x3055670320x] /lib/i386-linux-gnu/libkeyutils.so.1 [0x3055554560x-0x3055653683x] /lib/i386-linux-gnu/libnsl.so.1 [0x3054014464x-0x3055614288x] /usr/lib/i386-linux-gnu/libvorbisenc.so.2 [0x3053842432x-0x3054003640x] /usr/lib/i386-linux-gnu/libwind.so.0 [0x3053780992x-0x3053835836x] /usr/lib/i386-linux-gnu/libheimbase.so.1 [0x3053498368x-0x3053784840x] /usr/lib/i386-linux-gnu/libhx509.so.5 [0x3052785664x-0x3053507976x] /usr/lib/i386-linux-gnu/libsqlite3.so.0 [0x3052584960x-0x3052777199x] /lib/i386-linux-gnu/libcrypt.so.1 [0x2999226368x-0x2999273223x] /lib/i386-linux-gnu/libnss_files.so.2 [0x2995953664x-0x2996067584x] /lib/i386-linux-gnu/libgcc_s.so.1 ======end======== Error: Could not find version string for script files [/code]