Add XML validation check in a build process before building 58/99758/1
authorMyoungJune Park <mj2004.park@samsung.com>
Thu, 24 Nov 2016 05:04:09 +0000 (14:04 +0900)
committerMyoungJune Park <mj2004.park@samsung.com>
Thu, 24 Nov 2016 05:04:09 +0000 (14:04 +0900)
Change-Id: I583dd4660481409cee721865b51008df35629ae4

Makefile
packaging/vconf-internal-keys.spec

index 7e4cba9..afe3f35 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,7 @@ XMLS=$(wildcard data/*.xml)
 
 check:
        echo $(XMLS)
-       $(foreach var, $(XMLS), xmllint --noout --schema check.xsd $(var);)
+       $(foreach var, $(XMLS), xmllint --noout --schema check.xsd $(var) || exit;)
 
 ifneq ($(model), )
 xsltopt=--stringparam target $(MODEL)
index f03a220..98f5bfb 100755 (executable)
@@ -7,6 +7,7 @@ License:    Apache-2.0
 Source0:    %{name}-%{version}.tar.gz
 BuildRequires:  cmake
 BuildRequires:  xsltproc
+BuildRequires:  libxml2-tools
 Requires:  vconf
 Requires:  findutils
 Requires:  vconf-internal-keys-config
@@ -80,6 +81,8 @@ installed to execute vconf configuration for buxton2.
 
 %build
 
+make check
+
 mkdir -p scripts_mobile
 mkdir -p scripts_common
 mkdir -p scripts_tv