[test-suite] r254125 - Change bitbench test to not have its own source as input

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 25 19:29:32 PST 2015


Author: matze
Date: Wed Nov 25 21:29:32 2015
New Revision: 254125

URL: http://llvm.org/viewvc/llvm-project?rev=254125&view=rev
Log:
Change bitbench test to not have its own source as input

My last commit broke the uuencode test because it actually had its own
sourcecode as reference input, this should fix this.

Added:
    test-suite/trunk/MultiSource/Benchmarks/BitBench/uuencode/input.txt
      - copied, changed from r254124, test-suite/trunk/MultiSource/Benchmarks/BitBench/uuencode/uuencode.c
Modified:
    test-suite/trunk/MultiSource/Benchmarks/BitBench/uuencode/CMakeLists.txt
    test-suite/trunk/MultiSource/Benchmarks/BitBench/uuencode/Makefile
    test-suite/trunk/MultiSource/Benchmarks/BitBench/uuencode/uuencode.c

Modified: test-suite/trunk/MultiSource/Benchmarks/BitBench/uuencode/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/BitBench/uuencode/CMakeLists.txt?rev=254125&r1=254124&r2=254125&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/BitBench/uuencode/CMakeLists.txt (original)
+++ test-suite/trunk/MultiSource/Benchmarks/BitBench/uuencode/CMakeLists.txt Wed Nov 25 21:29:32 2015
@@ -6,7 +6,7 @@ set(PARALLEL_DIRS)
 set(LEVEL ../../../..)
 set(PROG uuencode)
 set(LDFLAGS )
-set(RUN_OPTIONS ${CMAKE_CURRENT_SOURCE_DIR}/uuencode.c)
+set(RUN_OPTIONS ${CMAKE_CURRENT_SOURCE_DIR}/input.txt)
 llvm_multisource()
 
 llvm_add_subdirectories(${DIRS} ${PARALLEL_DIRS})

Modified: test-suite/trunk/MultiSource/Benchmarks/BitBench/uuencode/Makefile
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/BitBench/uuencode/Makefile?rev=254125&r1=254124&r2=254125&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/BitBench/uuencode/Makefile (original)
+++ test-suite/trunk/MultiSource/Benchmarks/BitBench/uuencode/Makefile Wed Nov 25 21:29:32 2015
@@ -2,5 +2,5 @@ LEVEL = ../../../..
 
 PROG     = uuencode
 LDFLAGS  = 
-RUN_OPTIONS = $(PROJ_SRC_DIR)/uuencode.c
+RUN_OPTIONS = $(PROJ_SRC_DIR)/input.txt
 include $(LEVEL)/MultiSource/Makefile.multisrc

Copied: test-suite/trunk/MultiSource/Benchmarks/BitBench/uuencode/input.txt (from r254124, test-suite/trunk/MultiSource/Benchmarks/BitBench/uuencode/uuencode.c)
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/BitBench/uuencode/input.txt?p2=test-suite/trunk/MultiSource/Benchmarks/BitBench/uuencode/input.txt&p1=test-suite/trunk/MultiSource/Benchmarks/BitBench/uuencode/uuencode.c&r1=254124&r2=254125&rev=254125&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/BitBench/uuencode/uuencode.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/BitBench/uuencode/input.txt Wed Nov 25 21:29:32 2015
@@ -55,7 +55,6 @@
 
 #include <stdio.h>
 #include <stdlib.h>
-#include <string.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/time.h>

Modified: test-suite/trunk/MultiSource/Benchmarks/BitBench/uuencode/uuencode.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/BitBench/uuencode/uuencode.c?rev=254125&r1=254124&r2=254125&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/BitBench/uuencode/uuencode.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/BitBench/uuencode/uuencode.c Wed Nov 25 21:29:32 2015
@@ -187,7 +187,8 @@ int main(int argc, char *argv[])
   size = read_data(in, inbuf);
   gettimeofday(&pre,0);
   for(i=0;i<1000;i++){
-    outsize = do_encode(inbuf,outbuf, size, mybasename(argv[1]));
+    char *infilename = "uuencode.c";
+    outsize = do_encode(inbuf,outbuf, size, infilename);
    
   }
 




More information about the llvm-commits mailing list