Browse code

Add %check for json_spirit

Change-Id: I32ad7e65d295419315aac0458a5c5ebe4403d75b
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/6235
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Tapas Kundu <tkundu@vmware.com>

ashwin-h authored on 2018/11/26 08:13:45
Showing 1 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	A C++ JSON Parser/Generator
2 2
 Name:		json_spirit
3 3
 Version:	4.08
4
-Release:	2%{?dist}
4
+Release:	3%{?dist}
5 5
 License:	MIT
6 6
 URL:		https://www.codeproject.com/Articles/20027/JSON-Spirit-A-C-JSON-Parser-Generator-Implemented
7 7
 Source0:	https://www.codeproject.com/KB/recipes/JSON_Spirit/json_spirit_v4.08.zip
... ...
@@ -50,6 +50,11 @@ cd build
50 50
 make DESTDIR=%{buildroot} install
51 51
 install -v -D json_spirit/libjson_spirit.so -t %{buildroot}/usr/lib/
52 52
 
53
+%check
54
+cd build
55
+#Test waits for key press in the end.
56
+json_test/json_test <<< "key_press\n"
57
+
53 58
 %files
54 59
 %defattr(-,root,root)
55 60
 %{_libdir}/libjson_spirit.so*
... ...
@@ -60,6 +65,8 @@ install -v -D json_spirit/libjson_spirit.so -t %{buildroot}/usr/lib/
60 60
 %{_libdir}/libjson_spirit.a
61 61
 
62 62
 %changelog
63
+*    Sun Nov 25 2018 Ashwin H <ashwinh@vmware.com> 4.08-3
64
+-    Add %check
63 65
 *    Thu Jun 1  2017 Bo Gan <ganb@vmware.com> 4.08-2
64 66
 -    Fix file paths
65 67
 *    Sat Mar 25 2017 Vinay Kulkarni <kulkarniv@vmware.com> 4.08-1