Skip to content

Commit

Permalink
Add dummy test
Browse files Browse the repository at this point in the history
  • Loading branch information
Toaster192 authored and veruu committed Apr 5, 2019
1 parent a2fc60e commit eb9fd3a
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
37 changes: 37 additions & 0 deletions template/dummy-test/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# ~~~~~~~~~~~~~~~~~~~~~
#
# Dummy test Makefile
#
# ~~~~~~~~~~~~~~~~~~~~~

export TEST := template/dummy-test
export TESTVERSION := 1.0

.PHONY: build run clean

FILES := $(METADATA) runtest.sh Makefile

run: $(FILES) build
./runtest.sh

build:
chmod a+x ./runtest.sh

clean:
rm -f $(METADATA)

# Include a global make rules file
include /usr/share/rhts/lib/rhts-make.include

$(METADATA):
touch $(METADATA)
@echo "Owner: Ondrej Kinst <[email protected]>" >$(METADATA)
@echo "Name: $(TEST)" >>$(METADATA)
@echo "Path: $(TEST_DIR)" >>$(METADATA)
@echo "TestVersion: $(TESTVERSION)" >>$(METADATA)
@echo "License: GPLv3" >>$(METADATA)
@echo "Description: Dummy test." >>$(METADATA)
@echo "Architectures: x86_64" >>$(METADATA)
@echo "TestTime: 1m" >>$(METADATA)

rhts-lint $(METADATA)
11 changes: 11 additions & 0 deletions template/dummy-test/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# dummy test
A dummy test to be used in a template folder for reference. \
Test Maintainer: [Ondrej Kinst](mailto:[email protected])

## How to run it
Please refer to the top-level README.md for common dependencies. There are no test-specific dependencies.

### Execute the test
```bash
$ make run
```
9 changes: 9 additions & 0 deletions template/dummy-test/runtest.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

# ~~~~~~~~~~~~~~~~~~~~~~~
#
# This is a dummy test.
#
# ~~~~~~~~~~~~~~~~~~~~~~~

exit $(true)

0 comments on commit eb9fd3a

Please sign in to comment.