[Fuego] [PATCH 03/11] vuls: rename all_version to versions

Daniel Sangorrin daniel.sangorrin at toshiba.co.jp
Wed Dec 27 06:32:47 UTC 2017


versions referes to the distro version. E.g. for debian it
could be 7, 8 etc.

Signed-off-by: Daniel Sangorrin <daniel.sangorrin at toshiba.co.jp>
---
 engine/tests/Benchmark.vuls/fuego_test.sh | 4 ++--
 engine/tests/Benchmark.vuls/spec.json     | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/engine/tests/Benchmark.vuls/fuego_test.sh b/engine/tests/Benchmark.vuls/fuego_test.sh
index d7d298e..8a434f1 100644
--- a/engine/tests/Benchmark.vuls/fuego_test.sh
+++ b/engine/tests/Benchmark.vuls/fuego_test.sh
@@ -66,12 +66,12 @@ function test_build {
         for i in `seq 2002 $(date +"%Y")`; do
             go-cve-dictionary fetchnvd -http-proxy=$http_proxy -years $i
         done
-        goval-dictionary fetch-${BENCHMARK_VULS_DISTRO} ${BENCHMARK_VULS_ALL_VERSION} -http-proxy ${http_proxy}
+        goval-dictionary fetch-${BENCHMARK_VULS_DISTRO} ${BENCHMARK_VULS_VERSIONS} -http-proxy ${http_proxy}
     else
         for i in `seq 2002 $(date +"%Y")`; do
             go-cve-dictionary fetchnvd -years $i
         done
-        goval-dictionary fetch-${BENCHMARK_VULS_DISTRO} ${BENCHMARK_VULS_ALL_VERSION}
+        goval-dictionary fetch-${BENCHMARK_VULS_DISTRO} ${BENCHMARK_VULS_VERSIONS}
     fi
 
     # Create config.toml file
diff --git a/engine/tests/Benchmark.vuls/spec.json b/engine/tests/Benchmark.vuls/spec.json
index 60e0d8a..89befeb 100644
--- a/engine/tests/Benchmark.vuls/spec.json
+++ b/engine/tests/Benchmark.vuls/spec.json
@@ -4,13 +4,13 @@
         "default": {
             "gitrepo": "https://github.com/future-architect/vuls.git",
             "distro": "debian",
-            "all_version": "7 8 9 10",
+            "versions": "7 8 9 10",
             "isdeep": "false"
         },
         "ubuntu": {
             "gitrepo": "https://github.com/future-architect/vuls.git",
             "distro": "ubuntu",
-            "all_version": "12 14 16",
+            "versions": "12 14 16",
             "isdeep": "false"
         }
     }
-- 
2.7.4




More information about the Fuego mailing list