Commit 3ceaa463 authored by Rui Chen's avatar Rui Chen

[Zxing] zxing works concurrently now, however, verify the result is a problem now

parent 31d98efe
Pipeline #3115 failed with stage
in 15 minutes and 41 seconds
...@@ -51,11 +51,11 @@ ...@@ -51,11 +51,11 @@
<property name="data" value="${resources-base}/dat"/> <property name="data" value="${resources-base}/dat"/>
<mkdir dir="${data}"/> <mkdir dir="${data}"/>
<copy todir="${data}" flatten="true"> <copy todir="${data}">
<fileset dir="${resources}" includes="**/*.png **/*.jpg"/> <fileset dir="${resources}" includes="**/*.png **/*.jpg"/>
</copy> </copy>
<!--totally 208 barcode, all from zxing--> <!--totally 1225 barcode, all from zxing-->
<zip basedir="${resources-base}" includes="dat/**" destfile="${bm-dat}/${bm-name}.zip"/> <zip basedir="${resources-base}" includes="dat/**" destfile="${bm-dat}/${bm-name}.zip"/>
<delete dir="${data}"/> <delete dir="${data}"/>
...@@ -39,19 +39,9 @@ public class Zxing extends Benchmark{ ...@@ -39,19 +39,9 @@ public class Zxing extends Benchmark{
@Override @Override
public void iterate(String size){ public void iterate(String size){
try { try {
String zxingBarcorePath = args[0]; String barcode = args[0];
File f = new File(zxingBarcorePath);
// This part could be changed later. Current data set is from Zxing.
String[] barCodeFileNames = f.list();
// sorting as barCodeFileNames might have different orders for each OS
assert barCodeFileNames != null;
// Complete the path of each barcode // Complete the path of each barcode
for (String barcode : barCodeFileNames) this.method.invoke(null, (Object) new String[] {"--recursive", barcode});
this.method.invoke(null, (Object) new String[] {zxingBarcorePath + barcode});
} catch (Exception e){ } catch (Exception e){
e.printStackTrace(); e.printStackTrace();
} }
...@@ -3,9 +3,7 @@ benchmark zxing ...@@ -3,9 +3,7 @@ benchmark zxing
thread-model per_cpu thread-model per_cpu
jars "javase-3.3.3-jar-with-dependencies.jar"; jars "javase-3.3.3-jar-with-dependencies.jar";
size default args "${SCRATCH}/dat/" size default args "${SCRATCH}/dat/";
stdout digest 0xe6ddad80078430b1cac53ecc9151ade3c210da86;
description description
short "multi-format 1D/2D barcode image processing library", short "multi-format 1D/2D barcode image processing library",
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment