[LNT] r249034 - Add files I forgot to svn add for r249026 - Add support for storing hash of test binaries.

Kristof Beyls via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 1 10:09:48 PDT 2015


Author: kbeyls
Date: Thu Oct  1 12:09:48 2015
New Revision: 249034

URL: http://llvm.org/viewvc/llvm-project?rev=249034&view=rev
Log:
Add files I forgot to svn add for r249026 - Add support for storing hash of test binaries.


Added:
    lnt/trunk/lnt/server/db/migrations/upgrade_6_to_7.py
    lnt/trunk/tests/runtest/Inputs/test-suite-nohash/
    lnt/trunk/tests/runtest/Inputs/test-suite-nohash/Makefile
    lnt/trunk/tests/runtest/Inputs/test-suite-nohash/README.txt
    lnt/trunk/tests/runtest/Inputs/test-suite-nohash/configure
    lnt/trunk/tests/runtest/Inputs/test-suite-nohash/fake-report.simple.csv
    lnt/trunk/tests/runtest/Inputs/test-suite-nohash/subtest/
    lnt/trunk/tests/runtest/Inputs/test-suite-nohash/subtest/Makefile

Added: lnt/trunk/lnt/server/db/migrations/upgrade_6_to_7.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/db/migrations/upgrade_6_to_7.py?rev=249034&view=auto
==============================================================================
--- lnt/trunk/lnt/server/db/migrations/upgrade_6_to_7.py (added)
+++ lnt/trunk/lnt/server/db/migrations/upgrade_6_to_7.py Thu Oct  1 12:09:48 2015
@@ -0,0 +1,54 @@
+# Version 7 adds a "hash" Sample type & adds a sample field of
+# this type for the NTS test suite.
+
+import os
+import sys
+
+import sqlalchemy
+
+###
+# Upgrade TestSuite
+
+# Import the original schema from upgrade_0_to_1 since upgrade_6_to_7 does not
+# change the actual schema.
+from lnt.server.db.migrations.upgrade_0_to_1 \
+  import SampleType, TestSuite, SampleField
+
+
+def upgrade(engine):
+    # Create a session.
+    session = sqlalchemy.orm.sessionmaker(engine)()
+
+    session.add(SampleType(name="Hash"))
+    session.commit()
+
+    status_sample_type = session.query(SampleType).\
+        filter_by(name="Status").first()
+    hash_sample_type = session.query(SampleType).\
+        filter_by(name="Hash").first()
+
+    ts = session.query(TestSuite).filter_by(name='nts').first()
+    hash_status_field = SampleField(name="hash_status",
+                                    type=status_sample_type,
+                                    info_key=".hash.status",)
+    hash_field = SampleField(name="hash",
+                             type=hash_sample_type,
+                             info_key=".hash",
+                             status_field=hash_status_field)
+    ts.sample_fields.append(hash_status_field)
+    ts.sample_fields.append(hash_field)
+    session.add(ts)
+    session.commit()
+
+    session.connection().execute("""
+ALTER TABLE "NT_Sample"
+ADD COLUMN "hash_status" INTEGER
+""")
+    # For MD5 hashes, 32 characters is enough to store the full has.
+    # Assume that for hashing schemes producing longer hashes, storing
+    # just the first 32 characters is good enough for our use case.
+    session.connection().execute("""
+ALTER TABLE "NT_Sample"
+ADD COLUMN "hash" VARCHAR(32)
+""")
+    session.commit()

Added: lnt/trunk/tests/runtest/Inputs/test-suite-nohash/Makefile
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/tests/runtest/Inputs/test-suite-nohash/Makefile?rev=249034&view=auto
==============================================================================
--- lnt/trunk/tests/runtest/Inputs/test-suite-nohash/Makefile (added)
+++ lnt/trunk/tests/runtest/Inputs/test-suite-nohash/Makefile Thu Oct  1 12:09:48 2015
@@ -0,0 +1,13 @@
+# Fake makefile
+
+include Makefile.config
+
+tools:
+	echo "This is a fake tools build."
+
+report:
+	echo "This is a fake report build."
+.PHONY: report
+
+report.simple.csv: report
+	cp ${PROJ_SRC_ROOT}/fake-report.simple.csv $@

Added: lnt/trunk/tests/runtest/Inputs/test-suite-nohash/README.txt
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/tests/runtest/Inputs/test-suite-nohash/README.txt?rev=249034&view=auto
==============================================================================
--- lnt/trunk/tests/runtest/Inputs/test-suite-nohash/README.txt (added)
+++ lnt/trunk/tests/runtest/Inputs/test-suite-nohash/README.txt Thu Oct  1 12:09:48 2015
@@ -0,0 +1,2 @@
+This is a dummy set of LLVM test-suite sources, just intended for use with
+testing the 'lnt runtest nt' module.

Added: lnt/trunk/tests/runtest/Inputs/test-suite-nohash/configure
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/tests/runtest/Inputs/test-suite-nohash/configure?rev=249034&view=auto
==============================================================================
--- lnt/trunk/tests/runtest/Inputs/test-suite-nohash/configure (added)
+++ lnt/trunk/tests/runtest/Inputs/test-suite-nohash/configure Thu Oct  1 12:09:48 2015
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+SRC_PATH=$(dirname $0)
+
+echo "This is a fake configure script."
+
+echo "Copying in Makefile..."
+cp $SRC_PATH/Makefile .
+cp $SRC_PATH/subtest/Makefile ./subtest/
+
+echo "Creating Makefile.config..."
+echo "PROJ_SRC_ROOT = \"${SRC_PATH}\"" > Makefile.config

Added: lnt/trunk/tests/runtest/Inputs/test-suite-nohash/fake-report.simple.csv
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/tests/runtest/Inputs/test-suite-nohash/fake-report.simple.csv?rev=249034&view=auto
==============================================================================
--- lnt/trunk/tests/runtest/Inputs/test-suite-nohash/fake-report.simple.csv (added)
+++ lnt/trunk/tests/runtest/Inputs/test-suite-nohash/fake-report.simple.csv Thu Oct  1 12:09:48 2015
@@ -0,0 +1,131 @@
+Program,CC,CC_Time,Exec,Exec_Time
+2002-04-17-PrintfChar,pass, 0.0056,pass, 0.0003
+2002-05-02-ArgumentTest,pass, 0.0058,pass, 0.0003
+2002-05-02-CastTest,pass, 0.0131,pass, 0.0003
+2002-05-02-CastTest1,pass, 0.0049,pass, 0.0003
+2002-05-02-CastTest2,pass, 0.0104,pass, 0.0003
+2002-05-02-CastTest3,pass, 0.0055,pass, 0.0003
+2002-05-02-ManyArguments,pass, 0.0090,pass, 0.0003
+2002-05-03-NotTest,pass, 0.0087,pass, 0.0003
+2002-05-19-DivTest,pass, 0.0082,pass, 0.0003
+2002-08-02-CastTest,pass, 0.0072,pass, 0.0003
+2002-08-02-CastTest2,pass, 0.0066,pass, 0.0003
+2002-08-19-CodegenBug,pass, 0.0097,pass, 0.0003
+2002-10-09-ArrayResolution,pass, 0.0077,pass, 0.0003
+2002-10-12-StructureArgs,pass, 0.0075,pass, 0.0003
+2002-10-12-StructureArgsSimple,pass, 0.0073,pass, 0.0003
+2002-10-13-BadLoad,pass, 0.0055,pass, 0.0003
+2002-12-13-MishaTest,pass, 0.0095,pass, 0.0003
+2003-04-22-Switch,pass, 0.0090,pass, 0.0003
+2003-05-02-DependentPHI,pass, 0.0083,pass, 0.0003
+2003-05-07-VarArgs,pass, 0.0166,pass, 0.0003
+2003-05-12-MinIntProblem,pass, 0.0075,pass, 0.0003
+2003-05-14-AtExit,pass, 0.0100,pass, 0.0003
+2003-05-26-Shorts,pass, 0.0100,pass, 0.0003
+2003-05-31-CastToBool,pass, 0.0119,pass, 0.0003
+2003-05-31-LongShifts,pass, 0.0081,pass, 0.0003
+2003-07-06-IntOverflow,pass, 0.0112,pass, 0.0003
+2003-07-08-BitOpsTest,pass, 0.0079,pass, 0.0003
+2003-07-09-LoadShorts,pass, 0.0122,pass, 0.0003
+2003-07-09-SignedArgs,pass, 0.0166,pass, 0.0003
+2003-07-10-SignConversions,pass, 0.0080,pass, 0.0003
+2003-08-05-CastFPToUint,pass, 0.0104,pass, 0.0003
+2003-08-11-VaListArg,pass, 0.0227,pass, 0.0003
+2003-08-20-FoldBug,pass, 0.0076,pass, 0.0003
+2003-09-18-BitFieldTest,pass, 0.0076,pass, 0.0003
+2003-10-13-SwitchTest,pass, 0.0072,pass, 0.0003
+2003-10-29-ScalarReplBug,pass, 0.0072,pass, 0.0003
+2004-02-02-NegativeZero,pass, 0.0056,pass, 0.0003
+2004-06-20-StaticBitfieldInit,pass, 0.0072,pass, 0.0003
+2004-11-28-GlobalBoolLayout,pass, 0.0108,pass, 0.0003
+2005-05-11-Popcount-ffs-fls,pass, 0.0200,pass, 0.0003
+2005-05-12-Int64ToFP,pass, 0.0085,pass, 0.0003
+2005-05-13-SDivTwo,pass, 0.0084,pass, 0.0003
+2005-07-15-Bitfield-ABI,pass, 0.0072,pass, 0.0003
+2005-07-17-INT-To-FP,pass, 0.0107,pass, 0.0005
+2005-11-29-LongSwitch,pass, 0.0078,pass, 0.0003
+2006-01-23-UnionInit,pass, 0.0129,pass, 0.0003
+2006-01-29-SimpleIndirectCall,pass, 0.0075,pass, 0.0003
+2006-02-04-DivRem,pass, 0.0084,pass, 0.0003
+2006-12-01-float_varg,pass, 0.0070,pass, 0.0003
+2006-12-04-DynAllocAndRestore,pass, 0.0069,pass, 0.0003
+2006-12-07-Compare64BitConstant,pass, 0.0115,pass, 0.0003
+2006-12-11-LoadConstants,pass, 0.0474,pass, 0.0003
+2007-01-04-KNR-Args,pass, 0.0086,pass, 0.0003
+2007-03-02-VaCopy,pass, 0.0088,pass, 0.0003
+2007-04-10-BitfieldTest,pass, 0.0094,pass, 0.0003
+2008-04-18-LoopBug,pass, 0.0082,pass, 0.0003
+2008-04-20-LoopBug2,pass, 0.0129,pass, 0.0003
+2008-07-13-InlineSetjmp,pass, 0.0079,pass, 0.0003
+2009-04-16-BitfieldInitialization,pass, 0.0114,pass, 0.0003
+2009-12-07-StructReturn,pass, 0.0073,pass, 0.0003
+2010-05-24-BitfieldTest,pass, 0.0074,pass, 0.0003
+AtomicOps,pass, 0.0076,pass, 0.0003
+DefaultInitDynArrays,pass, 0.0159,pass, 0.0003
+FloatPrecision,pass, 0.0078,pass, 0.0003
+ObjC++/Hello,pass, 0.3348,pass, 0.0032
+ObjC++/property-reference,pass, 0.4295,pass, 0.0060
+ObjC++/property-reference-object,pass, 0.3569,pass, 0.0031
+ObjC++/reference-in-block-args,pass, 0.0127,pass, 0.0030
+ObjC/bitfield-access,pass, 0.0171,pass, 0.0030
+ObjC/bitfield-access-2,pass, 0.0171,pass, 0.0030
+ObjC/block-byref-aggr,pass, 0.3288,pass, 0.0030
+ObjC/constant-strings,pass, 0.0072,pass, 0.0031
+ObjC/dot-syntax,pass, 0.0223,pass, 0.0030
+ObjC/dot-syntax-1,pass, 0.0264,pass, 0.0031
+ObjC/dot-syntax-2,pass, 0.0136,pass, 0.0032
+ObjC/exceptions,pass, 0.2270,pass, 0.0032
+ObjC/exceptions-2,pass, 0.2062,pass, 0.0030
+ObjC/exceptions-3,pass, 0.2097,pass, 0.0031
+ObjC/exceptions-4,pass, 0.2103,pass, 0.0048
+ObjC/for-in,pass, 0.2147,pass, 0.0034
+ObjC/instance-method-metadata,pass, 0.2126,pass, 0.0030
+ObjC/messages,pass, 0.0193,pass, 0.0030
+ObjC/messages-2,pass, 0.0356,pass, 0.0030
+ObjC/parameter-passing,pass, 0.2268,pass, 0.0031
+ObjC/predefined-expr-in-method,pass, 0.0115,pass, 0.0031
+ObjC/property,pass, 0.2239,pass, 0.0031
+ObjC/protocols,pass, 0.0193,pass, 0.0030
+ObjC/synchronized,pass, 0.2094,pass, 0.1217
+ObjC/trivial-interface,pass, 0.2071,pass, 0.0031
+SignlessTypes/Large/cast,pass, 0.0314,pass, 0.0087
+SignlessTypes/cast-bug,pass, 0.0061,pass, 0.0003
+SignlessTypes/cast2,pass, 0.0085,pass, 0.0003
+SignlessTypes/ccc,pass, 0.0160,pass, 0.0003
+SignlessTypes/div,pass, 0.0139,pass, 0.0003
+SignlessTypes/factor,pass, 0.0169,pass, 0.0003
+SignlessTypes/rem,pass, 0.0599,pass, 0.0009
+SignlessTypes/shr,pass, 0.0139,pass, 0.0003
+StructModifyTest,pass, 0.0062,pass, 0.0003
+TestLoop,pass, 0.0088,pass, 0.0003
+Vector/SSE/sse.expandfft,pass, 0.0652,pass, 0.2459
+Vector/SSE/sse.isamax,pass, 0.0388,pass, 0.0003
+Vector/SSE/sse.shift,pass, 0.0217,pass, 0.0003
+Vector/SSE/sse.stepfft,pass, 0.0524,pass, 0.3313
+Vector/build,pass, 0.0121,pass, 0.0003
+Vector/build2,pass, 0.0159,pass, 1.1560
+Vector/divides,pass, 0.0090,pass, 0.0003
+Vector/multiplies,pass, 0.0169,pass, 1.8812
+Vector/simple,pass, 0.0134,pass, 0.0003
+Vector/sumarray,pass, 0.0099,pass, 0.0003
+Vector/sumarray-dbl,pass, 0.0107,pass, 0.0003
+block-byref-cxxobj-test,pass, 0.0148,pass, 0.0003
+block-byref-test,pass, 0.0080,pass, 0.0003
+block-call-r7674133,pass, 0.0072,pass, 0.0003
+block-copied-in-cxxobj,pass, 0.0186,pass, 0.0003
+block-copied-in-cxxobj-1,pass, 0.0165,pass, 0.0003
+blockstret,pass, 0.0089,pass, 0.0003
+byval-alignment,pass, 0.0079,pass, 0.0003
+conditional-gnu-ext,pass, 0.0066,pass, 0.0003
+conditional-gnu-ext-cxx,pass, 0.0082,pass, 0.0003
+initp1,pass, 0.0240,pass, 0.0003
+member-function-pointers,pass, 0.0120,pass, 0.0003
+ms_struct-bitfield,pass, 0.0053,pass, 0.0003
+ms_struct-bitfield-1,pass, 0.0049,pass, 0.0003
+ms_struct-bitfield-init,pass, 0.0100,pass, 0.0003
+ms_struct-bitfield-init-1,pass, 0.0119,pass, 0.0003
+ms_struct_pack_layout,pass, 0.0111,pass, 0.0003
+ms_struct_pack_layout-1,pass, 0.0046,pass, 0.0003
+printargs,pass, 0.0085,pass, 0.0003
+stmtexpr,pass, 0.0090,pass, 0.0003
+vla,pass, 0.0194,pass, 0.0003

Added: lnt/trunk/tests/runtest/Inputs/test-suite-nohash/subtest/Makefile
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/tests/runtest/Inputs/test-suite-nohash/subtest/Makefile?rev=249034&view=auto
==============================================================================
--- lnt/trunk/tests/runtest/Inputs/test-suite-nohash/subtest/Makefile (added)
+++ lnt/trunk/tests/runtest/Inputs/test-suite-nohash/subtest/Makefile Thu Oct  1 12:09:48 2015
@@ -0,0 +1,13 @@
+# Fake makefile
+
+include ../Makefile.config
+
+tools:
+	echo "This is a fake tools build."
+
+report:
+	echo "This is a fake report build."
+.PHONY: report
+
+report.simple.csv: report
+	cp ${PROJ_SRC_ROOT}/fake-report.simple.csv $@




More information about the llvm-commits mailing list