enable tests

epel9
T.C. Hollingsworth 12 years ago
parent e328d9348c
commit afe9e4bbc8

@ -1,5 +1,5 @@
#enable/disable tests in case the deps aren't there #enable/disable tests in case the deps aren't there
%global enable_tests 0 %global enable_tests 1
Name: uglify-js Name: uglify-js
Version: 2.2.4 Version: 2.2.4
@ -63,6 +63,9 @@ ln -sf ../lib/node_modules/uglify-js/bin/uglifyjs %{buildroot}%{_bindir}/uglifyj
%if 0%{?enable_tests} %if 0%{?enable_tests}
%check %check
mkdir -p node_modules
ln -sf %{nodejs_sitelib}/source-map node_modules/source-map
ln -sf %{nodejs_sitelib}/optimist node_modules/optimist
%__nodejs test/run-tests.js %__nodejs test/run-tests.js
%endif %endif
@ -82,6 +85,7 @@ rm -rf %buildroot
%changelog %changelog
* Wed Feb 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 2.2.4-2 * Wed Feb 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 2.2.4-2
- install tools dir - install tools dir
- enable tests
* Wed Feb 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 2.2.4-1 * Wed Feb 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 2.2.4-1
- new upstream release 2.2.4 - new upstream release 2.2.4

Loading…
Cancel
Save