forked from cki-project/tests-beaker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a2fc60e
commit eb9fd3a
Showing
3 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
# ~~~~~~~~~~~~~~~~~~~~~~~ | ||
# | ||
# This is a dummy test. | ||
# | ||
# ~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
exit $(true) |