Integration Testing
Makerfile
https://github.com/future-architect/vuls/blob/master/GNUmakefile#L85
Diff
Prepare vulnerability databases
$ git clone [email protected]:vulsio/vulsctl.git
$ cd vulsctl/docker
$ ./update-all.sh
$ cd /path/to/future-architect/vuls
$ vim integration/int-config.toml
build binaries
- working-tree
- HEAD
- HEAD^
$ make build-integration
diff between HEAD and working-set
$ ln -s vuls vuls.new
$ ln -s vuls.xxxxx vuls.old
$ make diff
diff between HEAD^ and HEAD
$ ln -s vuls.xxxHEADxxx vuls.new
$ ln -s vuls.yyyHEAD^yyy vuls.old
$ make diff
Diff on Redis-backend
$ docker network create redis-nw
$ docker run --name redis -d --network redis-nw -p 127.0.0.1:6379:6379 redis
$ git clone [email protected]:vulsio/vulsctl.git
$ cd vulsctl/docker
$ ./update-all-redis.sh
$ (or export DOCKER_NETWORK=redis-nw; cd /home/ubuntu/vulsctl/docker; ./update-all.sh --dbtype redis --dbpath "redis://redis/0")
$ vim integration/int-redis-config.toml
$ ln -s vuls vuls.new
$ ln -s oldvuls vuls.old
$ make diff-redis
Diff between Redis-backend and SQLite3
$ make diff-rdb-redis