Skip to content

Commit 5eee136

Browse files
committed
Very basic test runner.
1 parent 5f6a8d6 commit 5eee136

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

test/linux-components/distro-check_test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/usr/bin/env zsh
22

3-
testSupportedDistrosInDistroCheck() {
3+
testSupportedDistros() {
44
for RELEASE_FILE in files/os-release*; do
55
RELEASE_FILE=$RELEASE_FILE zsh ../linux-components/distro-check
66
assertEquals 0 $?
77
done
88
}
99

10-
testRejectedDistrosInDistroCheck(){
10+
testRejectedDistros(){
1111
RELEASE_FILE=files/bad-os-release zsh ../linux-components/distro-check
1212
assertEquals 1 $?
1313
}

test/run_tests.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env zsh
2+
3+
for testFile in `find ./ -type f -name '*_test.sh'`; do
4+
. $testFile
5+
done

0 commit comments

Comments
 (0)