#1 Add a simple test to make sure installs work
Merged 5 years ago by tstellar. Opened 5 years ago by tstellar.
rpms/ tstellar/clang6.0 simple-test  into  master

file modified
+8 -1
@@ -56,7 +56,7 @@ 

  

  Name:		%pkg_name

  Version:	%{maj_ver}.%{min_ver}.%{patch_ver}

- Release:	6%{?dist}

+ Release:	7%{?dist}

  Summary:	A C language family front-end for LLVM

  

  License:	NCSA
@@ -135,17 +135,21 @@ 

  

  %package libs

  Summary: Runtime library for clang

+ %if !0%{?compat_build}

  Recommends: compiler-rt%{?_isa} >= %{version}

  Recommends: libomp%{_isa} = %{version}

+ %endif

  

  %description libs

  Runtime library for clang.

  

  %package devel

  Summary: Development header files for clang.

+ %if !0%{?compat_build}

  Requires: %{name}%{?_isa} = %{version}-%{release}

  # The clang CMake files reference tools from clang-tools-extra.

  Requires: %{name}-tools-extra%{?_isa} = %{version}-%{release}

+ %endif

  

  %description devel

  Development header files for clang.
@@ -401,6 +405,9 @@ 

  

  %endif

  %changelog

+ * Fri Dec 07 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-7

+ - Fix Requires

+ 

  * Wed Aug 15 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-6

  - Rebuild for f30

  

file added
+14
@@ -0,0 +1,14 @@ 

+ - hosts: localhost

+   roles:

+   - role: standard-test-basic

+     tags:

+       - classic

+     required_packages:

+       - clang6.0-devel

+     tests:

+       # This is a simple test to prove that the package can be installed.

+       # Installation is done before the tests are run, so our test does

+       # not need to do anything.

+       - install-test:

+           dir: ./

+           run: echo "PASS"