summaryrefslogtreecommitdiff
path: root/test/genvif/Makefile
blob: 566b6bb042d2048a51afe3083059d30cc0f352bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright 2020 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#

CC=gcc
CFLAGS=-O2 -Isrc -I../../include

genvif: ../../util/genvif.c src/helper.c
	@$(CC) -o $@ $^ $(CFLAGS)

test: genvif
	@mkdir vif_output 2>/dev/null
	@./genvif -b test -o vif_output
	@./genvif -b exp_test -o vif_output -n -v vif/exp_test_vif.xml
	@diff vif_output/test_vif.xml vif_output/exp_test_vif.xml
	@./genvif -b test_over -o vif_output -v vif/over_test_vif.xml
	@./genvif -b exp_test_over -o vif_output -n -v vif/exp_test_over_vif.xml
	@diff vif_output/test_over_vif.xml vif_output/exp_test_over_vif.xml

.PHONY: clean
clean:
	@rm -f genvif
	@rm -rf vif_output