[llvm-commits] [zorg] r101763 - /zorg/trunk/lnt/lnt/tests/nt.py

Daniel Dunbar daniel at zuster.org
Sun Apr 18 20:59:58 PDT 2010


Author: ddunbar
Date: Sun Apr 18 22:59:58 2010
New Revision: 101763

URL: http://llvm.org/viewvc/llvm-project?rev=101763&view=rev
Log:
LNT: Tweak 'nt' to report tests in using old schema, at least for now.

Modified:
    zorg/trunk/lnt/lnt/tests/nt.py

Modified: zorg/trunk/lnt/lnt/tests/nt.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/tests/nt.py?rev=101763&r1=101762&r2=101763&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/tests/nt.py (original)
+++ zorg/trunk/lnt/lnt/tests/nt.py Sun Apr 18 22:59:58 2010
@@ -231,16 +231,20 @@
         program = record['Program']
         if opts.only_test is not None:
             program = os.path.join(opts.only_test, program)
-        test_base_name = 'nt.%s' % program.replace('.','_')
+        test_base_name = 'nightlytest.%s' % program.replace('.','_')
         for name,key,tname in sample_keys:
-            test_name = '%s.%s.%s' % (test_base_name, name, tname)
+            test_name = '%s.%s' % (test_base_name, name)
             value = record[key]
+
+            # FIXME: Move to simpler and more succinct format, using .failed.
             if value == '*':
                 test_samples.append(lnt.testing.TestSamples(
                         test_name + '.success', [0], test_info))
             else:
                 test_samples.append(lnt.testing.TestSamples(
-                        test_name, [float(value)], test_info))
+                        test_name + '.success', [1], test_info))
+                test_samples.append(lnt.testing.TestSamples(
+                        test_name + '.' + tname, [float(value)], test_info))
 
     report_file.close()
 
@@ -262,7 +266,7 @@
 
     # FIXME: We aren't getting the LLCBETA options.
     run_info = {}
-    run_info['tag'] = 'nt'
+    run_info['tag'] = 'nightlytest'
     run_info.update(cc_info)
 
     # FIXME: Hack, use better method of getting versions. Ideally, from binaries





More information about the llvm-commits mailing list