[LLVMdev] qmtest problem

Vladimir Merzliakov wanderer at rsu.ru
Sun Jun 20 12:58:00 PDT 2004


I attempt install and use qmtest for run LLVM testsuit at FreeBSD, but
without success.

I have installed qm-2.2 (latest and single version accessable from
http://www.codesourcery.com/qmtest/download.html in sources)

When I start qmtest for LLVM ("make qmtest" in <llvm-obj-dir>/test
directory - right?) error printed:

---8X---------------
QMTEST_CLASS_PATH=/usr/home/wanderer/pkg/build/llvm/obj/test/QMTest
qmtest -D /home/wanderer/pkg/build/llvm/src/llvm/test run -O
/home/wanderer/pkg/build/llvm/src/llvm/test/QMTest/expectations.unknown.qmr 
-c "srcroot=/home/wanderer/pkg/build/llvm/src/llvm" -c
"buildroot=/usr/home/wanderer/pkg/build/llvm/obj" -c "buildtype=Debug" -c
"tmpdir=/usr/home/wanderer/pkg/build/llvm/obj/test/tmp" -c "coresize=0" -c
"cc=gcc" -c "cxx=g++" -c
"llvmgcc=PATH=/usr/home/wanderer/pkg/build/llvm/obj/tools/Debug:/sbin:/bin:/
usr/sbin:/home/wanderer/bin:/home/wanderer/pkg/gcc/bin:/home/wanderer/pkg/bi
nutils/bin:/home/wanderer/pkg/gdb/bin:/home/wanderer/pkg/qmtest/bin:/home/wa
nderer/pkg/valgrind/bin:/usr/bin:/usr/local/sbin:/usr/local/bin
/home/wanderer/pkg/llvm_cfe/bin/gcc" -c
"llvmgxx=PATH=/usr/home/wanderer/pkg/build/llvm/obj/tools/Debug:/sbin:/bin:/
usr/sbin:/home/wanderer/bin:/home/wanderer/pkg/gcc/bin:/home/wanderer/pkg/bi
nutils/bin:/home/wanderer/pkg/gdb/bin:/home/wanderer/pkg/qmtest/bin:/home/wa
nderer/pkg/valgrind/bin:/usr/bin:/usr/local/sbin:/usr/local/bin
/home/wanderer/pkg/llvm_cfe/bin/g++" -c "make=gmake"
Traceback (most recent call last):
  File "/home/wanderer/pkg/qmtest/bin/qmtest", line 190, in ?
    exit_code = main()
  File "/home/wanderer/pkg/qmtest/bin/qmtest", line 168, in main
    exit_code = command.Execute()
  File "/home/wanderer/pkg/qmtest/lib/qm/test/cmdline.py", line 649, in
Execute
    return method()
  File "/home/wanderer/pkg/qmtest/lib/qm/test/cmdline.py", line 1310, in
__ExecuteRun
    test_ids, test_suites \
  File "/home/wanderer/pkg/qmtest/lib/qm/test/database.py", line 922, in
ExpandIds
    if self.HasSuite(id):
  File "/home/wanderer/pkg/qmtest/lib/qm/test/database.py", line 685, in
HasSuite
    self.GetSuite(suite_id)
  File "/usr/home/wanderer/pkg/build/llvm/obj/test/QMTest/llvmdb.py", line
224, in GetSuite
    suitepath = self.dbpath + '/' + self.LabelToPath (suite_id)
  File "/home/wanderer/pkg/qmtest/lib/qm/extension.py", line 113, in
__getattr__
    raise AttributeError, name
AttributeError: LabelToPath

---X8---------------

I check qmtest/lib/qm/test/database.py file for method LabelToPath and not
found it.

Single reference to this method i find in ChangeLog file in QMTest source:

---8X---------------
2002-11-01  Mark Mitchell  <mark at codesourcery.com>

 * qm/test/database.py (Database._LabelToPath): Rename to ...
 (Database.LabelToPath): ... this.
 * qm/test/file_database.py (FileDatabase._GetPathFromLabel):
 Adjust.
 (ExtensionDatabase._GetPathFromLabel): Likewise.
 * qm/test/classes/xml_database.py
 (XMLDatabase.__MakeDataFilePath): Likewise.
---X8---------------

Base at current implementation FileDatabase._GetPathFromLabel,
i think in last qmtest version LabelToPath use replaced by
_GetRelativeLabelPath.

May be i must use specific QMTest version ?

Vladimir






More information about the llvm-dev mailing list