|
12 | 12 | test \ |
13 | 13 | unused \ |
14 | 14 | cov \ |
15 | | - clean \ |
16 | | - build-integration \ |
17 | | - clean-integration \ |
18 | | - fetch-rdb \ |
19 | | - fetch-redis \ |
20 | | - diff-cveid \ |
21 | | - diff-package \ |
22 | | - diff-server-rdb \ |
23 | | - diff-server-redis \ |
24 | | - diff-server-rdb-redis |
| 15 | + clean |
25 | 16 |
|
26 | 17 | SRCS = $(shell git ls-files '*.go') |
27 | 18 | PKGS = $(shell go list ./...) |
|
69 | 60 | clean: |
70 | 61 | echo $(PKGS) | xargs go clean || exit; |
71 | 62 | echo $(PKGS) | xargs go clean || exit; |
72 | | - |
73 | | -PWD := $(shell pwd) |
74 | | -BRANCH := $(shell git symbolic-ref --short HEAD) |
75 | | -build-integration: |
76 | | - @ git stash save |
77 | | - $(GO) build -ldflags "$(LDFLAGS)" -o integration/goval-dict.new |
78 | | - git checkout $(shell git describe --tags --abbrev=0) |
79 | | - @git reset --hard |
80 | | - $(GO) build -ldflags "$(LDFLAGS)" -o integration/goval-dict.old |
81 | | - git checkout $(BRANCH) |
82 | | - @ git stash apply stash@{0} && git stash drop stash@{0} |
83 | | - |
84 | | -clean-integration: |
85 | | - -pkill goval-dict.old |
86 | | - -pkill goval-dict.new |
87 | | - -rm integration/goval-dict.old integration/goval-dict.new integration/oval.old.sqlite3 integration/oval.new.sqlite3 |
88 | | - -rm -rf integration/diff |
89 | | - -docker kill redis-old redis-new |
90 | | - -docker rm redis-old redis-new |
91 | | - |
92 | | -fetch-rdb: |
93 | | - integration/goval-dict.old fetch debian --dbpath=$(PWD)/integration/oval.old.sqlite3 7 8 9 10 11 12 13 |
94 | | - integration/goval-dict.old fetch ubuntu --dbpath=$(PWD)/integration/oval.old.sqlite3 14.04 16.04 18.04 20.04 22.04 24.04 24.10 25.04 |
95 | | - integration/goval-dict.old fetch redhat --dbpath=$(PWD)/integration/oval.old.sqlite3 5 6 7 8 9 |
96 | | - integration/goval-dict.old fetch oracle --dbpath=$(PWD)/integration/oval.old.sqlite3 5 6 7 8 9 |
97 | | - integration/goval-dict.old fetch amazon --dbpath=$(PWD)/integration/oval.old.sqlite3 1 2 2022 2023 |
98 | | - integration/goval-dict.old fetch alpine --dbpath=$(PWD)/integration/oval.old.sqlite3 3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 3.10 3.11 3.12 3.13 3.14 3.15 3.16 3.17 |
99 | | - integration/goval-dict.old fetch suse --dbpath=$(PWD)/integration/oval.old.sqlite3 --suse-type opensuse 10.2 10.3 11.0 11.1 11.2 11.3 11.4 12.1 12.2 12.3 13.1 13.2 tumbleweed |
100 | | - integration/goval-dict.old fetch suse --dbpath=$(PWD)/integration/oval.old.sqlite3 --suse-type opensuse-leap 42.1 42.2 42.3 15.0 15.1 15.2 15.3 15.4 15.5 15.6 |
101 | | - integration/goval-dict.old fetch suse --dbpath=$(PWD)/integration/oval.old.sqlite3 --suse-type suse-enterprise-server 9 10 11 12 15 |
102 | | - integration/goval-dict.old fetch suse --dbpath=$(PWD)/integration/oval.old.sqlite3 --suse-type suse-enterprise-desktop 10 11 12 15 |
103 | | - integration/goval-dict.old fetch fedora --dbpath=$(PWD)/integration/oval.old.sqlite3 32 33 34 35 36 37 38 39 40 |
104 | | - |
105 | | - integration/goval-dict.new fetch debian --dbpath=$(PWD)/integration/oval.new.sqlite3 7 8 9 10 11 12 13 |
106 | | - integration/goval-dict.new fetch ubuntu --dbpath=$(PWD)/integration/oval.new.sqlite3 14.04 16.04 18.04 20.04 22.04 24.04 24.10 25.04 |
107 | | - integration/goval-dict.new fetch redhat --dbpath=$(PWD)/integration/oval.new.sqlite3 5 6 7 8 9 |
108 | | - integration/goval-dict.new fetch oracle --dbpath=$(PWD)/integration/oval.new.sqlite3 5 6 7 8 9 |
109 | | - integration/goval-dict.new fetch amazon --dbpath=$(PWD)/integration/oval.new.sqlite3 1 2 2022 2023 |
110 | | - integration/goval-dict.new fetch alpine --dbpath=$(PWD)/integration/oval.new.sqlite3 3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 3.10 3.11 3.12 3.13 3.14 3.15 3.16 3.17 |
111 | | - integration/goval-dict.new fetch suse --dbpath=$(PWD)/integration/oval.new.sqlite3 --suse-type opensuse 10.2 10.3 11.0 11.1 11.2 11.3 11.4 12.1 12.2 12.3 13.1 13.2 tumbleweed |
112 | | - integration/goval-dict.new fetch suse --dbpath=$(PWD)/integration/oval.new.sqlite3 --suse-type opensuse-leap 42.1 42.2 42.3 15.0 15.1 15.2 15.3 15.4 15.5 15.6 |
113 | | - integration/goval-dict.new fetch suse --dbpath=$(PWD)/integration/oval.new.sqlite3 --suse-type suse-enterprise-server 9 10 11 12 15 |
114 | | - integration/goval-dict.new fetch suse --dbpath=$(PWD)/integration/oval.new.sqlite3 --suse-type suse-enterprise-desktop 10 11 12 15 |
115 | | - integration/goval-dict.new fetch fedora --dbpath=$(PWD)/integration/oval.new.sqlite3 32 33 34 35 36 37 38 39 40 |
116 | | - |
117 | | -fetch-redis: |
118 | | - docker run --name redis-old -d -p 127.0.0.1:6379:6379 redis |
119 | | - docker run --name redis-new -d -p 127.0.0.1:6380:6379 redis |
120 | | - |
121 | | - integration/goval-dict.old fetch debian --dbtype redis --dbpath "redis://127.0.0.1:6379/0" 7 8 9 10 11 12 13 |
122 | | - integration/goval-dict.old fetch ubuntu --dbtype redis --dbpath "redis://127.0.0.1:6379/0" 14.04 16.04 18.04 20.04 22.04 24.04 24.10 25.04 |
123 | | - integration/goval-dict.old fetch redhat --dbtype redis --dbpath "redis://127.0.0.1:6379/0" 5 6 7 8 9 |
124 | | - integration/goval-dict.old fetch oracle --dbtype redis --dbpath "redis://127.0.0.1:6379/0" 5 6 7 8 9 |
125 | | - integration/goval-dict.old fetch amazon --dbtype redis --dbpath "redis://127.0.0.1:6379/0" 1 2 2022 2023 |
126 | | - integration/goval-dict.old fetch alpine --dbtype redis --dbpath "redis://127.0.0.1:6379/0" 3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 3.10 3.11 3.12 3.13 3.14 3.15 3.16 3.17 |
127 | | - integration/goval-dict.old fetch suse --dbtype redis --dbpath "redis://127.0.0.1:6379/0" --suse-type opensuse 10.2 10.3 11.0 11.1 11.2 11.3 11.4 12.1 12.2 12.3 13.1 13.2 tumbleweed |
128 | | - integration/goval-dict.old fetch suse --dbtype redis --dbpath "redis://127.0.0.1:6379/0" --suse-type opensuse-leap 42.1 42.2 42.3 15.0 15.1 15.2 15.3 15.4 15.5 15.6 |
129 | | - integration/goval-dict.old fetch suse --dbtype redis --dbpath "redis://127.0.0.1:6379/0" --suse-type suse-enterprise-server 9 10 11 12 15 |
130 | | - integration/goval-dict.old fetch suse --dbtype redis --dbpath "redis://127.0.0.1:6379/0" --suse-type suse-enterprise-desktop 10 11 12 15 |
131 | | - integration/goval-dict.old fetch fedora --dbtype redis --dbpath "redis://127.0.0.1:6379/0" 32 33 34 35 36 37 38 39 40 |
132 | | - |
133 | | - integration/goval-dict.new fetch debian --dbtype redis --dbpath "redis://127.0.0.1:6380/0" 7 8 9 10 11 12 13 |
134 | | - integration/goval-dict.new fetch ubuntu --dbtype redis --dbpath "redis://127.0.0.1:6380/0" 14.04 16.04 18.04 20.04 22.04 24.04 24.10 25.04 |
135 | | - integration/goval-dict.new fetch redhat --dbtype redis --dbpath "redis://127.0.0.1:6380/0" 5 6 7 8 9 |
136 | | - integration/goval-dict.new fetch oracle --dbtype redis --dbpath "redis://127.0.0.1:6380/0" 5 6 7 8 9 |
137 | | - integration/goval-dict.new fetch amazon --dbtype redis --dbpath "redis://127.0.0.1:6380/0" 1 2 2022 2023 |
138 | | - integration/goval-dict.new fetch alpine --dbtype redis --dbpath "redis://127.0.0.1:6380/0" 3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 3.10 3.11 3.12 3.13 3.14 3.15 3.16 3.17 |
139 | | - integration/goval-dict.new fetch suse --dbtype redis --dbpath "redis://127.0.0.1:6380/0" --suse-type opensuse 10.2 10.3 11.0 11.1 11.2 11.3 11.4 12.1 12.2 12.3 13.1 13.2 tumbleweed |
140 | | - integration/goval-dict.new fetch suse --dbtype redis --dbpath "redis://127.0.0.1:6380/0" --suse-type opensuse-leap 42.1 42.2 42.3 15.0 15.1 15.2 15.3 15.4 15.5 15.6 |
141 | | - integration/goval-dict.new fetch suse --dbtype redis --dbpath "redis://127.0.0.1:6380/0" --suse-type suse-enterprise-server 9 10 11 12 15 |
142 | | - integration/goval-dict.new fetch suse --dbtype redis --dbpath "redis://127.0.0.1:6380/0" --suse-type suse-enterprise-desktop 10 11 12 15 |
143 | | - integration/goval-dict.new fetch fedora --dbtype redis --dbpath "redis://127.0.0.1:6380/0" 32 33 34 35 36 37 38 39 40 |
144 | | - |
145 | | -diff-cveid: |
146 | | - @ python integration/diff_server_mode.py --sample-rate 0.01 cveid debian 7 8 9 10 11 12 13 |
147 | | - @ python integration/diff_server_mode.py --sample-rate 0.01 cveid ubuntu 14.04 16.04 18.04 20.04 22.04 24.04 24.10 25.04 |
148 | | - @ python integration/diff_server_mode.py --sample-rate 0.01 cveid redhat 5 6 7 8 9 |
149 | | - @ python integration/diff_server_mode.py --sample-rate 0.01 cveid oracle 5 6 7 8 9 |
150 | | - @ python integration/diff_server_mode.py --sample-rate 0.01 --arch x86_64 cveid oracle 5 6 7 8 9 |
151 | | - @ python integration/diff_server_mode.py --sample-rate 0.01 cveid amazon 1 2 2022 2023 |
152 | | - @ python integration/diff_server_mode.py --sample-rate 0.01 --arch x86_64 cveid amazon 1 2 2022 2023 |
153 | | - @ python integration/diff_server_mode.py --sample-rate 0.01 --arch aarch64 cveid amazon 2 2022 2023 |
154 | | - @ python integration/diff_server_mode.py --sample-rate 0.01 cveid alpine 3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 3.10 3.11 3.12 3.13 3.14 3.15 3.16 3.17 |
155 | | - @ python integration/diff_server_mode.py --sample-rate 0.01 cveid suse --suse-type opensuse 10.2 10.3 11.0 11.1 11.2 11.3 11.4 12.1 12.2 12.3 13.1 13.2 tumbleweed |
156 | | - @ python integration/diff_server_mode.py --sample-rate 0.01 cveid suse --suse-type opensuse.leap 42.1 42.2 42.3 15.0 15.1 15.2 15.3 15.4 15.5 15.6 |
157 | | - @ python integration/diff_server_mode.py --sample-rate 0.01 cveid suse --suse-type suse.linux.enterprise.server 9 10 11 12 15 |
158 | | - @ python integration/diff_server_mode.py --sample-rate 0.01 cveid suse --suse-type suse.linux.enterprise.desktop 10 11 12 15 |
159 | | - @ python integration/diff_server_mode.py --sample-rate 0.01 cveid fedora 32 33 34 35 36 37 38 39 40 |
160 | | - |
161 | | - |
162 | | -diff-package: |
163 | | - @ python integration/diff_server_mode.py --sample-rate 0.01 package debian 7 8 9 10 11 12 13 |
164 | | - @ python integration/diff_server_mode.py --sample-rate 0.01 package ubuntu 14.04 16.04 18.04 20.04 22.04 24.04 24.10 25.04 |
165 | | - @ python integration/diff_server_mode.py --sample-rate 0.01 package redhat 5 6 7 8 9 |
166 | | - @ python integration/diff_server_mode.py --sample-rate 0.01 package oracle 5 6 7 8 9 |
167 | | - @ python integration/diff_server_mode.py --sample-rate 0.01 --arch x86_64 package oracle 5 6 7 8 9 |
168 | | - @ python integration/diff_server_mode.py --sample-rate 0.01 package amazon 1 2 2022 2023 |
169 | | - @ python integration/diff_server_mode.py --sample-rate 0.01 --arch x86_64 package amazon 1 2 2022 2023 |
170 | | - @ python integration/diff_server_mode.py --sample-rate 0.01 --arch aarch64 package amazon 2 2022 2023 |
171 | | - @ python integration/diff_server_mode.py --sample-rate 0.01 package alpine 3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 3.10 3.11 3.12 3.13 3.14 3.15 3.16 3.17 |
172 | | - @ python integration/diff_server_mode.py --sample-rate 0.01 package suse --suse-type opensuse 10.2 10.3 11.0 11.1 11.2 11.3 11.4 12.1 12.2 12.3 13.1 13.2 tumbleweed |
173 | | - @ python integration/diff_server_mode.py --sample-rate 0.01 package suse --suse-type opensuse.leap 42.1 42.2 42.3 15.0 15.1 15.2 15.3 15.4 15.5 15.6 |
174 | | - @ python integration/diff_server_mode.py --sample-rate 0.01 package suse --suse-type suse.linux.enterprise.server 9 10 11 12 15 |
175 | | - @ python integration/diff_server_mode.py --sample-rate 0.01 package suse --suse-type suse.linux.enterprise.desktop 10 11 12 15 |
176 | | - @ python integration/diff_server_mode.py --sample-rate 0.01 package fedora 32 33 34 35 36 37 38 39 40 |
177 | | - |
178 | | -diff-server-rdb: |
179 | | - integration/goval-dict.old server --dbpath=$(PWD)/integration/oval.old.sqlite3 --port 1325 > /dev/null 2>&1 & |
180 | | - integration/goval-dict.new server --dbpath=$(PWD)/integration/oval.new.sqlite3 --port 1326 > /dev/null 2>&1 & |
181 | | - make diff-cveid |
182 | | - make diff-package |
183 | | - pkill goval-dict.old |
184 | | - pkill goval-dict.new |
185 | | - |
186 | | -diff-server-redis: |
187 | | - integration/goval-dict.old server --dbtype redis --dbpath "redis://127.0.0.1:6379/0" --port 1325 > /dev/null 2>&1 & |
188 | | - integration/goval-dict.new server --dbtype redis --dbpath "redis://127.0.0.1:6380/0" --port 1326 > /dev/null 2>&1 & |
189 | | - make diff-cveid |
190 | | - make diff-package |
191 | | - pkill goval-dict.old |
192 | | - pkill goval-dict.new |
193 | | - |
194 | | -diff-server-rdb-redis: |
195 | | - integration/goval-dict.new server --dbpath=$(PWD)/integration/oval.new.sqlite3 --port 1325 > /dev/null 2>&1 & |
196 | | - integration/goval-dict.new server --dbtype redis --dbpath "redis://127.0.0.1:6380/0" --port 1326 > /dev/null 2>&1 & |
197 | | - make diff-cveid |
198 | | - make diff-package |
199 | | - pkill goval-dict.new |
0 commit comments