c62209c195
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/kmod#bddd48bb1f02b70118e3a0b652848567edac13b0
47 lines
1.5 KiB
Makefile
47 lines
1.5 KiB
Makefile
# SPDX-License-Identifier: LGPL-2.1+
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
#
|
|
# Makefile of /CoreOS/libkmod
|
|
# Description: Test if libkmod working ok
|
|
# Author: Susant Sahani<susant@redhat.com>
|
|
#
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
export TEST=/CoreOS/libkmod
|
|
export TESTVERSION=1.0
|
|
|
|
OBJS = test-libkmod.c
|
|
CFLAG = -Wall -g3
|
|
CC = gcc
|
|
LIBS = -lkmod -lcmocka
|
|
|
|
test-libkmod:${OBJ}
|
|
${CC} ${CFLAGS} ${INCLUDES} -o $@ ${OBJS} ${LIBS}
|
|
|
|
run: test-libkmod
|
|
./runtest.sh
|
|
clean:
|
|
-rm -f test-libkmod
|
|
|
|
.c.o:
|
|
${CC} ${CFLAGS} ${INCLUDES} -c $<
|
|
|
|
CC = gcc
|
|
|
|
include /usr/share/rhts/lib/rhts-make.include
|
|
$(METADATA): Makefile
|
|
@echo "Owner: Susant Sahani<susant@redhat.com>" > $(METADATA)
|
|
@echo "Name: $(TEST)" >> $(METADATA)
|
|
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
|
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
|
@echo "Description: Test libkmod works ok" >> $(METADATA)
|
|
@echo "Type: Sanity" >> $(METADATA)
|
|
@echo "TestTime: 5m" >> $(METADATA)
|
|
@echo "RunFor: libkmod" >> $(METADATA)
|
|
@echo "Requires: libkmod libkmod-devel" >> $(METADATA)
|
|
@echo "Priority: Normal" >> $(METADATA)
|
|
@echo "License: GPLv2" >> $(METADATA)
|
|
@echo "Confidential: no" >> $(METADATA)
|
|
@echo "Destructive: no" >> $(METADATA)
|
|
@echo "Releases: -Fedora 29" >> $(METADATA)
|
|
rhts-lint $(METADATA)
|